How can I add my labelsAbove to a Bar chart?

« Back to message list

Enter your email address to get email updates on this topic. You can stop receiving updates by clicking the link in the update email messages.

Posted by Deepak on 12th July 2013

In 100% bar chart I want show label above as (7/10).

where 10=total count
        7=out of 10.

I am using following property for that
    bar4.Set('labels.above', true);
    bar4.Set('labels.above.size', 8);

But it is showing total count.Can you tell me how to show that label.

Thanks and Regards,
Posted by RGraph support on 12th July 2013
Hi there,

You will need to use chart.labels.above.specific and give it the exact label that you want to show:

obj.Set('chart.labels.above.specific', ['(7/10)', ...]);


Add a reply

« Back to message list