A line chart or line graph is a type of chart which helps to displays the information as a series of all data points called ‘markers’ and those markers are connected straight through line segments. It is a basic type of chart common in many fields which shows ascending or descending in a graph. A line chart is often used to visualize a trend in data over intervals of time which helps to represent the graph more effectively. Dimensions in the data are often displayed on the x-axis and y-axis.
Creating Line Chart
1) Simple Line Chart: Simple basic line graphs are used for showing the relationship between two variables in vertical form. Line() method is used to create simple line graphs in Pygal.
line_chart = pygal.Line()
2) Horizontal line chart: Horizontal line graph is the same as a basic line graph but the difference is it shows line horizontally from x-axis to y-axis. Both the variables are shown horizontally.
line_chart = pygal.HorizontalLine()
- Stacked Line chart in Pygal
- How to Create time related line chart in Pygal?
- Solid Gauge Chart in Pygal
- Multi-Series Pie Chart in Pygal
- Pie chart in Pygal
- Donut chart in pygal
- Pyramid chart in pygal
- Gauge Chart in pygal
- Radar chart in pygal
- Half pie chart in Pygal
- Funnel Chart in Pygal
- Bar Chart in Pygal
- Stacked Bar chart in pygal
- Line Chart using Plotly in Python
- Line chart in Matplotlib - Python
- Histogram in Pygal
- Treemap in Pygal
- Styling Graphs in Pygal
- Plotting World Map Using Pygal in Python
- Read a file line by line in Python
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.