Column charts represent data with rectangular horizontal bars. The height of the bars is proportional to the values they represent. The numeric values are plotted along the y-axis, and the data labels are plotted along the x-axis. Column charts are best fitted when you want to compare values.
The caption (also called the chart title) is the heading of your chart. You can add custom text for the caption, as well as configure its font properties and cosmetics. Learn more about it
Data plot refers to the pie slices in a pie chart, columns of the column chart, lines in a line chart.
A legend is a chart element used to display the series name for each dataset, in case of multi-series or combination charts. Legends are used to correlate a data plot to its series name using its color.
A tooltip is displayed when the mouse cursor hovers over a particular data point. It denotes valuable information about the data plot hovered.
X-Axis refers to a line on a chart that runs horizontally (left-right).
Y-Axis refers to line or values on a chart that runs vertically (up-down) through zero.
X-Axis labels are the names of the data points that are displayed on the x-axis of a chart.
Refers to title of the x-axis
The title of the y-axis
Export menu is hamburger menu that appears on top-right of the chart, it offers different options to export a chart.You can enable or disable chart export using attribute
exportEnabled. Refer to Exporting Charts to learn more.
Create a Column chart
Let's create column chart showcasing the comparison between quarterly revenue earned for the previous year and the current year. The columns for both datasets, one for the previous year and one for the current year, have been rendered using different colors. This makes it easy to interpret and compare the data.
To create a column chart follow the steps given below:
- In the JSON data, set the attributes and their corresponding values in
- Specify the chart type using the
typeattribute. To render a column chart, set
- Set the container object using
- Specify the dimension of the chart using
- Set the type of data (JSON) you want to pass to the chart object using
For a detailed list of attributes, refer to the column chart attributes page.