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,12 +32,14 @@ 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 = () => {
if (item.datasetIndex) {
chart.setDatasetVisibility( chart.setDatasetVisibility(
item.datasetIndex, item.datasetIndex,
!chart.isDatasetVisible(item.datasetIndex) !chart.isDatasetVisible(item.datasetIndex)
) )
chart.update() chart.update()
} }
}
const checkBox = document.createElement('input') const checkBox = document.createElement('input')
if (checkBox) { if (checkBox) {

File diff suppressed because it is too large Load Diff