update js dependencies

This commit is contained in:
Sam 2022-07-27 08:48:55 +02:00
parent a090c98a08
commit 677897e2bb
2 changed files with 422 additions and 429 deletions

View File

@ -32,11 +32,13 @@ export const htmlLegendPlugin = {
legendItems.forEach((item: LegendItem) => {
const li = document.createElement('li')
li.onclick = () => {
chart.setDatasetVisibility(
item.datasetIndex,
!chart.isDatasetVisible(item.datasetIndex)
)
chart.update()
if (item.datasetIndex) {
chart.setDatasetVisibility(
item.datasetIndex,
!chart.isDatasetVisible(item.datasetIndex)
)
chart.update()
}
}
const checkBox = document.createElement('input')

File diff suppressed because it is too large Load Diff