Custom Axis Keys

Point the fit at your own field names instead of x and y

Configuration Used

The data objects use month and count, not x and y. Without the keys below, the fitter would read every point as missing.

trendlineLinear: {
    xAxisKey: 'month',   // default: 'x'
    yAxisKey: 'count',   // default: 'y'
    colorMin: '#e74c3c',
    width: 2,
    lineStyle: 'dashed',
    label: { text: 'Signups', display: true, displayValue: false },
}