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.

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
  • Display 0 in Bar chart #29411

    Saby
    Member

    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

    Display 0 in Bar chart #29445

    Dimitar
    Participant

    Hello Saby,

    Please clarify your requirement. Do you need to create a stacked column chart with a zero value on the top?

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/

    Display 0 in Bar chart #29495

    Saby
    Member

    Yes Dimitar,
    That is what is desired.

    thanks for all your help.

    Best Regards
    Saby.

    Display 0 in Bar chart #29501

    Saby
    Member

    Forgot to mention that we use “jquery-1.8.2.min.js” version.

    Display 0 in Bar chart #29527

    Dimitar
    Participant

    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,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/

    Display 0 in Bar chart #29557

    Saby
    Member

    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.

    Display 0 in Bar chart #29561

    Saby
    Member

    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 chart

    var 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

    Display 0 in Bar chart #29601

    Dimitar
    Participant

    Hi Saby,

    Unfortunately, a label is not displayed when the value is 0.

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/

    Display 0 in Bar chart #53724

    Anil Kumar
    Participant

    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.

    chart text display with virtical mode

    Display 0 in Bar chart #53725

    Anil Kumar
    Participant

    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.

    Display 0 in Bar chart #53741

    Peter Stoev
    Keymaster

    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 Stoev

    jQWidgets Team
    http://www.jqwidgets.com/

Viewing 11 posts - 1 through 11 (of 11 total)

You must be logged in to reply to this topic.