Line Chart
In this article, we will explain how to create and customize a line chart. So let's get started!
Last updated
In this article, we will explain how to create and customize a line chart. So let's get started!
Last updated
A line chart is a graphical representation of a series of data points connected in a linear manner. Line charts are often used to display trends over time, and they can show multiple data series on the same chart.
Here is an example of a line chart. This line chart is used to show the sales trend over time (e.g., months or years). The x-axis represents time, and the y-axis represents the total sales for each time period. Each data point on the chart represents the total sales for a specific time period, and the line connecting the points shows the overall trend in sales.
Sample data:
Time Period | Sales ($) | Profit ($) |
---|---|---|
Jan 2020 | 100,000 | 10,000 |
Feb 2020 | 110,000 | 8,000 |
Mar 2020 | 120,000 | 12,000 |
Apr 2020 | 130,000 | 14,000 |
May 2020 | 140,000 | 8,000 |
Jun 2020 | 150,000 | 6,000 |
Navigate to Add New Chart screen
Select data source
Select "Line Chart" type from gallery
The configuration shown illustrates how to map the time period on the x axis and the profit and sales on the y axis to generate the line chart.
Infinity offers many customization options for your chart. To access these options, click on the customize tab in the chart builder screen. This will display a list of customization options.
Here is a list of notable customization options for the line chart.
Feature | Description |
---|---|
Aggregation | To create an aggregation, click on the data series chip in the data mapping section and choose the desired aggregation. There are various aggregation options available based on the data type. |
Renaming the Data Series | To rename a data series, click on the data series chip in the data mapping section. A pop-up will appear, allowing you to change the name and any aggregation options. |
Dual Axes or Right hand Axes | To enable dual axes, follow these steps:
|
Titles | To change the titles, follow these steps:
|
Chart Background | To change the chart background, follow these steps:
|
Padding and Zoom | To change the padding and zoom, follow these steps:
|
Legend | To customize the legend, follow these steps:
|
Axes | To customize the axes, follow these steps:
|
Gridlines | To change the grid lines, follow these steps:
|
Hints to optimize your line chart
Use a consistent scale for the y-axis to accurately compare data points
Consider using a legend to label multiple data series on the same chart
Use a clear and concise title to describe the data being displayed
Avoid cluttering the chart with too much data or unnecessary elements
Use a meaningful and appropriate time scale for the x-axis (e.g., days, weeks, months, years)
Select the series that you want to plot on the right-hand axes.
You will also have the option to modify the font attributes.
Update/customize the count and colors of the gridlines.