c3js / c3js/c3js.org

C3-Bar chart Start Label from 0 to the actual value -increasing from 0 and increment to value

Open
#42 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
HTML
Stars
29
Forks
36
PR merge metrics
No merged PRs in 30d

Description

Is there any way in C3.js to start data labels start from 0 and increment to the value as the bar renders on the chart.
labels:{format : function (v, id, i, j) { return v; }}
transition: {
duration: 2000
}

Using above piece of code renders chart with data labels start directly from final value .
for example my data1 bar value is 60, bar chart should from 0 ,1,2...60 as the bar loads completely.

Codepn url -http://codepen.io/nagasai/pen/BzLapM

Thanks
Sai

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.