update js dependencies
This commit is contained in:
parent
a090c98a08
commit
677897e2bb
@ -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
Loading…
Reference in New Issue
Block a user