(pointStyle, i)
| 1 | const pointStyles = ['circle', 'cross', 'crossRot', 'dash', 'line', 'rect', 'rectRounded', 'rectRot', 'star', 'triangle', false]; |
| 2 | |
| 3 | function newDataset(pointStyle, i) { |
| 4 | return { |
| 5 | label: '', |
| 6 | data: pointStyles.map(() => i), |
| 7 | pointStyle: pointStyle, |
| 8 | pointBackgroundColor: '#0000ff', |
| 9 | pointBorderColor: '#00ff00', |
| 10 | showLine: false |
| 11 | }; |
| 12 | } |
| 13 | module.exports = { |
| 14 | config: { |
| 15 | type: 'line', |