Legend step is not working when change legend text font-size
- Dominant language
- JavaScript
- Stars
- 9.3k
- Forks
- 1.4k
- Avg merge
- 6d 16h
- Merged PRs (30d)
- 1
Description
* **C3 version**: 0.7.20
* **D3 version**:
* **Browser**: Chrome
* **OS**: Windows
There is dependency of font-size to calculate step in updateValues(). It should not be depend on font-size of legend text.
Default is 12px and when I changed it to 10px, steps did not work as expected.

```
var chart = c3.generate({
data: {
columns: [
['data1', 30, 200, 100, 400, 150, 250],
['data2', 50, 20, 10, 40, 15, 25],
['data3', 30, 34, 100, 440, 100, 220],
['data4', 50, 20, 9, 40, 75, 30],
['data5', 150, 18, 9, 40, 75, 30],
]
},
legend: {
position: 'inset',
inset: {
step: 3
}
}
});
```
To fix this I have made below changes to work step as expected.


Contributor guide
Assessment
This issue has not been assessed yet.