Client - hide speed chart when checkbox is unchecked - fix #232
This commit is contained in:
		@@ -32,7 +32,7 @@ export const htmlLegendPlugin = {
 | 
			
		||||
    legendItems.forEach((item: LegendItem) => {
 | 
			
		||||
      const li = document.createElement('li')
 | 
			
		||||
      li.onclick = () => {
 | 
			
		||||
        if (item.datasetIndex) {
 | 
			
		||||
        if (item.datasetIndex !== undefined) {
 | 
			
		||||
          chart.setDatasetVisibility(
 | 
			
		||||
            item.datasetIndex,
 | 
			
		||||
            !chart.isDatasetVisible(item.datasetIndex)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user