-
Notifications
You must be signed in to change notification settings - Fork 62
Description
This example breaks the chart. Also tried to put it at the end, same result.
_ var lineArea4 = new Chartist.Line('#PROGmath', { series: [{ name: '1-10 in Order',
data: [ {x: new Date(1547222400000), y: 1}, {x: new Date(1552492800000), y: 10}, {x: new Date(1554998400000), y: 25}, {x: new Date(1555293180000), y: 100} ] }, { name: 'Point out 0-10',
data: [ {x: new Date(1554982980000), y: 1}, {x: new Date(1573056000000), y: 75}, {x: new Date(1582560000000), y: 100} ] }, { name: '0-10 flash',
data: [ {x: new Date(1554982980000), y: 1}, {x: new Date(1560253380000), y: 100} ] }, { name: 'object math',
data: [ {x: new Date(1550195580000), y: 20}, {x: new Date(1552705020000), y: 30}, {x: new Date(1555383420000), y: 43}, {x: new Date(1573056000000), y: 60}, {x: new Date(1582560000000), y: 100} ] }, { name: 'counts to 20',
data: [ {x: new Date(1571068800000), y: 1}, {x: new Date(1582732800000), y: 100} ] }, { name: 'random 1-20',
data: [ {x: new Date(1571068800000), y: 1}, {x: new Date(1582732800000), y: 100} ] }, { name: 'flash 0-20',
data: [ {x: new Date(1574006400000), y: 1}, {x: new Date(1582732800000), y: 100} ] }, { name: 'basic math',
data: [ {x: new Date(1568649600000), y: 1}, {x: new Date(1582732800000), y: 100} ] }
]
},
plugins: [ Chartist.plugins.legend({ legendNames: ['1-10 in Order', 'Point out 0-10', '0-10 flash', 'object math', 'counts to 20', 'random 1-20', 'flash 0-20', 'basic math'], }) ]
{
axisX: {
type: Chartist.FixedScaleAxis,
divisor: 7,
labelInterpolationFnc: function(value) {
return moment(value).format('MMM D');
}
}
},
);_