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) => { legendItems.forEach((item: LegendItem) => {
const li = document.createElement('li') const li = document.createElement('li')
li.onclick = () => { li.onclick = () => {
chart.setDatasetVisibility( if (item.datasetIndex) {
item.datasetIndex, chart.setDatasetVisibility(
!chart.isDatasetVisible(item.datasetIndex) item.datasetIndex,
) !chart.isDatasetVisible(item.datasetIndex)
chart.update() )
chart.update()
}
} }
const checkBox = document.createElement('input') const checkBox = document.createElement('input')

File diff suppressed because it is too large Load Diff