v2.0.3
Solves the problem when the data object contains both numbers and strings
Example:
let chartData = {
datasets: [
{
label: 'Data One',
backgroundColor: '#f87979',
data: [
{ y: 40, x: 'January' },
{ y: 20, x: 'February' },
{ y: 12, x: 'March' },
{ y: 39, x: 'April' },
{ y: 10, x: 'May' },
{ y: 40, x: 'June' },
{ y: 39, x: 'July' },
{ y: 80, x: 'August' },
{ y: 40, x: 'September' },
{ y: 20, x: 'October' },
{ y: 12, x: 'November' },
{ y: 11, x: 'December' },
],
trendlineLinear: {
colorMin: '#2d9cdb',
colorMax: '#2d9cdb',
lineStyle: 'solid',
width: 2,
},
},
],
}