Skip to content

Releases: Makanz/chartjs-plugin-trendline

v2.1.0

05 Feb 14:41
Compare
Choose a tag to compare

What's Changed

  • Fix some ES6 syntax issue and add support for getting axis keys from options by @elesueur in #85

New Contributors

Full Changelog: v2.0.5...v2.1.0

v2.0.5

25 Sep 20:19
Compare
Choose a tag to compare

Solved issue #81 with lineStyle not working correctly when using multiple datasets

v2.0.4

13 Sep 19:16
b72fb07
Compare
Choose a tag to compare

Solves issue #80

v2.0.3

23 May 20:22
Compare
Choose a tag to compare

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,
            },
        },
    ],
}

v2.0.2

03 May 20:30
Compare
Choose a tag to compare

v2.0.1

30 Mar 18:48
Compare
Choose a tag to compare
  • enable addFitter when there are more than 1 points (@alch3ung)
  • allow timeseries to be identified as a date too (@DavidLemayian)

v2.0.0

23 Aug 18:05
Compare
Choose a tag to compare
  • New feature with gradient support. Thanks to @igor90

v1.0.3

11 Jul 21:02
Compare
Choose a tag to compare

Merged PR

  • fix undefined data point handling #65

v1.0.2

07 Feb 20:46
Compare
Choose a tag to compare

Merged PRs

  • Fix CommonJS exporting #60
  • added trendline projection on x axis #44
  • Changed from afterDraw to afterDatasetsDraw #61

v1.0.0

17 Oct 19:18
Compare
Choose a tag to compare

Added support for ChartJS 3.0 and changed version from 0.2.2. to 1.0.0.
Breaking changes because of dropped support of earlier versions of ChartJS