Releases: Makanz/chartjs-plugin-trendline
Releases · Makanz/chartjs-plugin-trendline
v2.1.6
v2.1.5
v2.1.4
What's Changed
- Bump webpack from 5.92.1 to 5.94.0 by @dependabot in #94
- Line Styles added / edited : Dotted, Dashed, DashDot, Solid by @BryceSimtars in #95
New Contributors
- @BryceSimtars made their first contribution in #95
Full Changelog: v2.1.3...v2.1.4
v2.1.3
Full Changelog: v2.1.2...v2.1.3
v2.1.2
v2.1.1
Full Changelog: v2.1.0...v2.1.1
v2.1.0
v2.0.5
v2.0.4
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,
},
},
],
}