JSFiddle - React, Tailwind, and code Playground
HTML
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/chartist/0.7.2/chartist.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/chartist/0.7.2/chartist.min.js"></script>
<body>
<div class="ct-chart ct-perfect-fourth" id="myChart" style="width:500px; height:200px"></div>
</body>
JavaScript
new Chartist.Line(
'#myChart',
{
labels: ['Week 1', 'Week 2', 'Week 3', 'Week 4', 'Week 5'],
series: [
{name: 'one', data: [560, 600, 840, 900, 400]},
{name: 'two', data: [500, 510, 740, 300, 300]}
]
},
{
high: 1000,
low: 0,
width: 500,
height: 200,
divisor: 250, // divisor does not work, the breaks are still 200
series: {
'one': {showArea: true},
'two': {showArea: true}
},
lineSmooth: Chartist.Interpolation.simple({
divisor: 10
})
}
);