diff options
| author | Julien Déramond <[email protected]> | 2023-02-19 09:34:15 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-02-19 10:34:15 +0200 |
| commit | 5241b988c0156dbcc2c6bdaeb29967141bea567d (patch) | |
| tree | 139712f0c630be3170b5b6a870b90cedfa2b258c /site | |
| parent | 31221272e0bbea1e436699cd5d68f705f37d3361 (diff) | |
| download | bootstrap-5241b988c0156dbcc2c6bdaeb29967141bea567d.tar.xz bootstrap-5241b988c0156dbcc2c6bdaeb29967141bea567d.zip | |
Bump Chart.js from 2.9.4 to 4.2.1 in dashboard examples (#38071)
* 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 <[email protected]>
Diffstat (limited to 'site')
4 files changed, 18 insertions, 22 deletions
diff --git a/site/content/docs/5.3/examples/dashboard-rtl/dashboard.js b/site/content/docs/5.3/examples/dashboard-rtl/dashboard.js index 96e0895bf..d278c628b 100644 --- a/site/content/docs/5.3/examples/dashboard-rtl/dashboard.js +++ b/site/content/docs/5.3/examples/dashboard-rtl/dashboard.js @@ -38,15 +38,13 @@ }] }, options: { - scales: { - yAxes: [{ - ticks: { - beginAtZero: false - } - }] - }, - legend: { - display: false + plugins: { + legend: { + display: false + }, + tooltip: { + boxPadding: 3 + } } } }) diff --git a/site/content/docs/5.3/examples/dashboard-rtl/index.html b/site/content/docs/5.3/examples/dashboard-rtl/index.html index 699586c7f..9b2eb8caf 100644 --- a/site/content/docs/5.3/examples/dashboard-rtl/index.html +++ b/site/content/docs/5.3/examples/dashboard-rtl/index.html @@ -7,8 +7,8 @@ extra_css: extra_js: - src: "https://cdn.jsdelivr.net/npm/[email protected]/dist/feather.min.js" integrity: "sha384-uO3SXW5IuS1ZpFPKugNNWqTZRRglnUJK6UAZ/gxOX80nxEkN9NcGZTftn6RzhGWE" - - src: "https://cdn.jsdelivr.net/npm/[email protected]/dist/Chart.min.js" - integrity: "sha384-zNy6FEbO50N+Cg5wap8IKA4M/ZnLJgzc6w2NqACZaK0u0FXfOWRRJOnQtpZun8ha" + - src: "https://cdn.jsdelivr.net/npm/[email protected]/dist/chart.umd.min.js" + integrity: "sha384-gdQErvCNWvHQZj6XZM0dNsAoY4v+j5P1XDpNkcM3HJG1Yx04ecqIHk7+4VBOCHOG" - src: "dashboard.js" --- diff --git a/site/content/docs/5.3/examples/dashboard/dashboard.js b/site/content/docs/5.3/examples/dashboard/dashboard.js index e1379758b..d190d7961 100644 --- a/site/content/docs/5.3/examples/dashboard/dashboard.js +++ b/site/content/docs/5.3/examples/dashboard/dashboard.js @@ -38,15 +38,13 @@ }] }, options: { - scales: { - yAxes: [{ - ticks: { - beginAtZero: false - } - }] - }, - legend: { - display: false + plugins: { + legend: { + display: false + }, + tooltip: { + boxPadding: 3 + } } } }) diff --git a/site/content/docs/5.3/examples/dashboard/index.html b/site/content/docs/5.3/examples/dashboard/index.html index 6fbf812b1..88ac303ab 100644 --- a/site/content/docs/5.3/examples/dashboard/index.html +++ b/site/content/docs/5.3/examples/dashboard/index.html @@ -6,8 +6,8 @@ extra_css: extra_js: - src: "https://cdn.jsdelivr.net/npm/[email protected]/dist/feather.min.js" integrity: "sha384-uO3SXW5IuS1ZpFPKugNNWqTZRRglnUJK6UAZ/gxOX80nxEkN9NcGZTftn6RzhGWE" - - src: "https://cdn.jsdelivr.net/npm/[email protected]/dist/Chart.min.js" - integrity: "sha384-zNy6FEbO50N+Cg5wap8IKA4M/ZnLJgzc6w2NqACZaK0u0FXfOWRRJOnQtpZun8ha" + - src: "https://cdn.jsdelivr.net/npm/[email protected]/dist/chart.umd.min.js" + integrity: "sha384-gdQErvCNWvHQZj6XZM0dNsAoY4v+j5P1XDpNkcM3HJG1Yx04ecqIHk7+4VBOCHOG" - src: "dashboard.js" --- |
