A bar chart is a chart with rectangular bars with lengths proportional to the values that they represent. A bar Chart is useful for comparing dataPoints in one or more dataSeries.
In Bar Chart axisX is Vertical and axisY is Horizontal.
Cannot be combined with: Any chart type except Bar and Stacked Bar charts.
Applies To | Attribute | Type | Default | Options/Examples |
---|---|---|---|---|
dataSeries | bevelEnabled | Boolean | false | true,false |
dataSeries/ dataPoint | indexLabelPlacement | String | “outside” | “inside”,”outside” |
dataSeries/ dataPoint | indexLabelOrientation | String | “horizontal” | “horizontal”,”vertical” |
dataSeries | fillOpacity | Number | 1 | .2,.4,1 etc |
26 Comments
Thanks for creating such a helpful tool. Here am facing an issue, in my application number dataPoints varies and its taking from Database.So how can i set the datapoints(Presently my data is in list of class).
Please help me
Thejus T V
Hi,
Is there any way I can highlight a particular point on a bar chat ? For example the above chart, Say I will have a small red line(vertical) on the first yellow bar with tooltip/label :”Second most gold : 400″.
Does indexLabel with indexLabelPlacement set to “inside” work for you in this case?
I can use it in vertical?
rishi,
Do you mean to say Column Chart? If not, can please explain in detail?
Can we make axisX Horizontal and axisY vertical in this chart, because column chart only shows one bar and I need multiple bars like this
Are you looking for multi-series column chart. If not, please provide any pictorial representation to help us understand your requirement better.
Is there any attribute through which I can show a label on hovering on a bar that is different from labels on x axis??
Nilambu,
Have you considered using ToolTip or StripLine Label for the same? In case you choose to use stripLines, you’ll have to dynamically add/remove them on mouseover/mouseout events.
Yes. I fixed it using dataToolTip attribute. Thanks for your suggestion.
When I need more than 11 labels/data entries in this type of chart, it shows all bars but not all labels in front of the bar.
What can I do about it? Is it a display error?
I already fixed it… I’ve put the ‘interval: 1’ on the Axis-X and it shows all labels now.
Hello,
Actually i want to run two chart in same HTML file, is there any possibility for same.
if yes, then please help me out.
Yes, it is possible. Here is an example.
I can not use the same script in 2 parts
How to show dates in x-axis in bar chart
In Bar Chart axisX is Vertical and axisY is Horizontal. You can set xValueType to show “datetime” on x-axis.
Why is my legend still displaying Data Series 1 and Data Series two even after changing my legendText to something else
Solved! the issue was I had misspelt the work legendText to LegendText
Can i show progress 1 bar with 2 color, start and the end static value ?
Are you looking for stackedBar chart? If not please provide us any pictorial representation of your requirement
yes like that, but not different bar, 1 bar get to progress to full
Yeah, you can achieve this using stackedBar100. Here is an example
Can we make this charts dynamic using php and sql ??
Quick question
Is it possible to put the value of the bar on top of the bar itself
Devy,
Yes it’s possible. You can use indexLabel and indexLabelPlacement to do this. Here is an example.