On Resize issue
- Dominant language
- JavaScript
- Stars
- 9.3k
- Forks
- 1.4k
- Avg merge
- 6d 16h
- Merged PRs (30d)
- 1
Description
on resize of window c3.js chart scale from its normal width of div.
on reload of window its looking fine.

var splinechart = c3.generate({
size: {
height: 220,
},
bindto: '#fd_chart2',
```
padding: {
top: 10,
right: 15,
bottom: 0,
left: 40,
},
data: {
transition: {
duration: 20000
},
columns: [
['Tx', 300, 350, 300, 0, 0, 0,200],
['Rx', 130, 100, 140, 200, 150, 50,300],
],
types: {
Tx: 'area-spline',
Rx: 'area-spline',
},
colors: {
Tx: '#5cd293',
Rx: '#1a78dd',
},
},
tooltip: {
show: false
},
point: {
show: false
},
axis: {
x: {
type: 'category',
padding: {
left: -0.5,
right: -0.5,
},
categories: ["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],
},
y: {
padding: {bottom: 0},
min: 0,
tick: {
format: d3.format("s")
}
},
}
});
```
Contributor guide
Assessment
This issue has not been assessed yet.