jQuery UI Widgets › Forums › Chart › Display 0 in Bar chart
This topic contains 10 replies, has 4 voices, and was last updated by Peter Stoev 10 years, 4 months ago.
-
AuthorDisplay 0 in Bar chart Posts
-
Hi,
I have this requirement where I have to show the value of zero(0) on top of a bar chart, just like how excel shows it. However I am unable to do so for the value zero. Any other value more than zero is being displayed on top of the bar. Is there anyway to do so.
Appreciate all the help
Saby
Hello Saby,
Please clarify your requirement. Do you need to create a stacked column chart with a zero value on the top?
Best Regards,
DimitarjQWidgets team
http://www.jqwidgets.com/Yes Dimitar,
That is what is desired.thanks for all your help.
Best Regards
Saby.Forgot to mention that we use “jquery-1.8.2.min.js” version.
Hi Saby,
As shown in the demo Stacked Column Series, a stack with zero value is not displayed (note the second column). This behaviour cannot be altered.
Best Regards,
DimitarjQWidgets team
http://www.jqwidgets.com/Hi Dimitar,
Thanks for the confirmation. I have just one more question. Can the zero(0) be show for Column series. The JQWidgets version remain the same which is “jquery-1.8.2.min.js” version.thanks and regards
Saby.Maybe I was not clear,
I wanted to show the label of the bar values on top. I have set the showLabels=true. But the value of zero is not displayed on top. I wanted to show the label zero(0) on top of the bar. Here is a sample data I want to show the bar chartvar sampleData = [
{ Day: ‘Monday’, Running: 30 },
{ Day: ‘Tuesday’, Running: 25 },
{ Day: ‘Wednesday’, Running: 30},
{ Day: ‘Thursday’, Running: 0},
{ Day: ‘Friday’, Running: 20},
{ Day: ‘Saturday’, Running: 30},
{ Day: ‘Sunday’, Running: 20 }
];For Thursday, no bar is showing but I want to show the label zero(0). For all other days it is showing the label but not for Thursday. I want that to be shown on the bar chart.
Can this be done in JQWidgets “jquery-1.8.2.min.js” version?
Here is the sample graph. Check the 2nd graph. It does not show the value “0” like other graphs
Hi Saby,
Unfortunately, a label is not displayed when the value is 0.
Best Regards,
DimitarjQWidgets team
http://www.jqwidgets.com/Hi,
I want to display text of chart vertical (please click link for more explanation). Look on image GS,GR,L/GX,L/GX2,………with the vertical alignment. I want like this image.Hi Anil Kumar,
Please, avoid posting one request multiple times. Your duplicate post: http://www.jqwidgets.com/community/topic/chart-text-display-in-vertical-vertical-alignment/
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.com/ -
AuthorPosts
You must be logged in to reply to this topic.