Skip to content

Commit

Permalink
Added support for ChartJS 3.0 and changed version from 0.2.2. to 1.0.…
Browse files Browse the repository at this point in the history
…0. Breaking changes.
  • Loading branch information
Makanz committed Oct 17, 2021
1 parent a21dae6 commit 70e2332
Show file tree
Hide file tree
Showing 9 changed files with 5,117 additions and 177 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# chartjs-plugin-trendline

This plugin draws an linear trendline in your Chart. Made for Chart.js > 2.0
This plugin draws an linear trendline in your Chart. Made for Chart.js 3.X

## Installation

Expand All @@ -9,7 +9,7 @@ This plugin draws an linear trendline in your Chart. Made for Chart.js > 2.0
Load ChartJS first, then the plugin which will automatically register itself with ChartJS

```html
<script src="https://cdn.jsdelivr.net/npm/chart.js/dist/Chart.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/chart.js@3.5.1/dist/chart.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/chartjs-plugin-trendline"></script>
```

Expand Down
2 changes: 1 addition & 1 deletion dist/chartjs-plugin-trendline.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

75 changes: 0 additions & 75 deletions example/ScatterChart.html

This file was deleted.

75 changes: 0 additions & 75 deletions example/XYlineChart.html

This file was deleted.

2 changes: 1 addition & 1 deletion example/barChart.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>BarChart Example</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.9.4/Chart.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/chart.js@3.5.1/dist/chart.min.js"></script>
<script src="../src/chartjs-plugin-trendline.js"></script>
<script>
document.addEventListener("DOMContentLoaded", function(event) {
Expand Down
2 changes: 1 addition & 1 deletion example/lineChart.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>LineChart Example</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.9.4/Chart.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/chart.js@3.5.1/dist/chart.min.js"></script>
<script src="../src/chartjs-plugin-trendline.js"></script>
<script>
document.addEventListener("DOMContentLoaded", function(event) {
Expand Down
Loading

0 comments on commit 70e2332

Please sign in to comment.