MCPcopy
hub / github.com/chartjs/Chart.js / newDataset

Function newDataset

test/fixtures/plugin.tooltip/point-style.js:3–12  ·  view source on GitHub ↗
(pointStyle, i)

Source from the content-addressed store, hash-verified

1const pointStyles = ['circle', 'cross', 'crossRot', 'dash', 'line', 'rect', 'rectRounded', 'rectRot', 'star', 'triangle', false];
2
3function 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}
13module.exports = {
14 config: {
15 type: 'line',

Callers 1

point-style.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected