22 lines
392 B
JavaScript
22 lines
392 B
JavaScript
new Chartist.Line('.ct-chart', {
|
|
series: [[
|
|
{x: 1, y: 100},
|
|
{x: 2, y: 50},
|
|
{x: 3, y: 25},
|
|
{x: 5, y: 12.5},
|
|
{x: 8, y: 6.25}
|
|
]]
|
|
}, {
|
|
axisX: {
|
|
type: Chartist.AutoScaleAxis,
|
|
onlyInteger: true
|
|
},
|
|
axisY: {
|
|
type: Chartist.FixedScaleAxis,
|
|
ticks: [0, 50, 75, 87.5, 100],
|
|
low: 0
|
|
},
|
|
lineSmooth: Chartist.Interpolation.step(),
|
|
showPoint: false
|
|
});
|