← Back
Editing: line_scriptable_parsed_data.ts
import { Chart } from '../../index.esm'; const chart = new Chart('id', { type: 'line', data: { labels: [], datasets: [{ data: [], backgroundColor: (context) => { return context.parsed.y > 10 ? 'green' : 'red'; } }] }, });
Save File
Cancel