c3js / c3js/c3

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

Open
#1,728 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
9.3k
Forks
1.4k
Avg merge
6d 16h
Merged PRs (30d)
1

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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.