Skip to content

Commit

Permalink
Bump Chart.js from 2.9.4 to 4.2.1 in dashboard examples (#38071)
Browse files Browse the repository at this point in the history
* Bump Chart.js from 2.9.4 to 4.2.1 in dashboard examples

* Rollback myChart var modification

* Add some padding between tooltip color and text

---------

Co-authored-by: XhmikosR <xhmikosr@gmail.com>
  • Loading branch information
julien-deramond and XhmikosR authored Feb 19, 2023
1 parent 3122127 commit 5241b98
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 22 deletions.
16 changes: 7 additions & 9 deletions site/content/docs/5.3/examples/dashboard-rtl/dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,13 @@
}]
},
options: {
scales: {
yAxes: [{
ticks: {
beginAtZero: false
}
}]
},
legend: {
display: false
plugins: {
legend: {
display: false
},
tooltip: {
boxPadding: 3
}
}
}
})
Expand Down
4 changes: 2 additions & 2 deletions site/content/docs/5.3/examples/dashboard-rtl/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
extra_js:
- src: "https://cdn.jsdelivr.net/npm/feather-icons@4.28.0/dist/feather.min.js"
integrity: "sha384-uO3SXW5IuS1ZpFPKugNNWqTZRRglnUJK6UAZ/gxOX80nxEkN9NcGZTftn6RzhGWE"
- src: "https://cdn.jsdelivr.net/npm/chart.js@2.9.4/dist/Chart.min.js"
integrity: "sha384-zNy6FEbO50N+Cg5wap8IKA4M/ZnLJgzc6w2NqACZaK0u0FXfOWRRJOnQtpZun8ha"
- src: "https://cdn.jsdelivr.net/npm/chart.js@4.2.1/dist/chart.umd.min.js"
integrity: "sha384-gdQErvCNWvHQZj6XZM0dNsAoY4v+j5P1XDpNkcM3HJG1Yx04ecqIHk7+4VBOCHOG"
- src: "dashboard.js"
---

Expand Down
16 changes: 7 additions & 9 deletions site/content/docs/5.3/examples/dashboard/dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,13 @@
}]
},
options: {
scales: {
yAxes: [{
ticks: {
beginAtZero: false
}
}]
},
legend: {
display: false
plugins: {
legend: {
display: false
},
tooltip: {
boxPadding: 3
}
}
}
})
Expand Down
4 changes: 2 additions & 2 deletions site/content/docs/5.3/examples/dashboard/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
extra_js:
- src: "https://cdn.jsdelivr.net/npm/feather-icons@4.28.0/dist/feather.min.js"
integrity: "sha384-uO3SXW5IuS1ZpFPKugNNWqTZRRglnUJK6UAZ/gxOX80nxEkN9NcGZTftn6RzhGWE"
- src: "https://cdn.jsdelivr.net/npm/chart.js@2.9.4/dist/Chart.min.js"
integrity: "sha384-zNy6FEbO50N+Cg5wap8IKA4M/ZnLJgzc6w2NqACZaK0u0FXfOWRRJOnQtpZun8ha"
- src: "https://cdn.jsdelivr.net/npm/chart.js@4.2.1/dist/chart.umd.min.js"
integrity: "sha384-gdQErvCNWvHQZj6XZM0dNsAoY4v+j5P1XDpNkcM3HJG1Yx04ecqIHk7+4VBOCHOG"
- src: "dashboard.js"
---

Expand Down

0 comments on commit 5241b98

Please sign in to comment.