Client - hide speed chart when checkbox is unchecked - fix #232
This commit is contained in:
parent
1d39462f79
commit
11f905cf32
@ -32,7 +32,7 @@ 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) {
|
if (item.datasetIndex !== undefined) {
|
||||||
chart.setDatasetVisibility(
|
chart.setDatasetVisibility(
|
||||||
item.datasetIndex,
|
item.datasetIndex,
|
||||||
!chart.isDatasetVisible(item.datasetIndex)
|
!chart.isDatasetVisible(item.datasetIndex)
|
||||||
|
Loading…
Reference in New Issue
Block a user