Published
Edited
Apr 8, 2021
2 stars
Insert cell
Insert cell
Insert cell
stylesheet = html`<link rel='stylesheet'
href='https://unpkg.com/chartist@0.11.0/dist/chartist.min.css' />`
Insert cell
Insert cell
Changed in fork
chart = { let container = DOM.element('div');
+
container.appendChild(stylesheet);
container.style.height = `${width / 1.6}px`; new Chartist.Line( container, { labels: [1, 2, 3, 4, 5, 6, 7, 8], series: [ [1, 2, 3, 1, -2, 0, 1, 0], [-2, -1, -2, -1, -2.5, -1, -2, -1], [0, 0, 0, 1, 2, 2.5, 2, 1], [2.5, 2, 1, 0.5, 1, 0.5, -1, -2.5] ] }, { high: 3, low: -3, showArea: true, showLine: false, showPoint: false, fullWidth: true, axisX: { showLabel: false, showGrid: false } } ); return container; }
Insert cell
Insert cell