Example of Bar in Javascript Chart Control


This sample visualizes the data about UK trade in food groups of the year 2015 with default bar series in the chart. Data points values are showed by using data label.

More Details...

Source: www.gov.uk

In this example, you can see how to render and configure the bar type charts. Similar to column charts, but the orientation of y axis is horizontal instead of vertical. You can use border, fill properties to customize the data appearance. dataLabel is used to represent individual data and its value. Tooltip is enabled in this example, to see the tooltip in action, hover a point or tap on a point in touch enabled devices. Injecting Module Chart component features are segregated into individual feature-wise modules. To use bar series, we need to inject BarSeries module using Chart.Inject(BarSeries) method. More information on the bar series can be found in this documentation section.