Google Charts - Hide line when clicking legend key

后端 未结 3 1384
挽巷
挽巷 2021-01-19 00:24

I\'d like to be able to show/hide the lines on my line graph when clicking the relevant key in the legend, is this possible?

3条回答
  •  星月不相逢
    2021-01-19 00:33

    If you don't need to include scaling and animation then one option is just hide data using lineWidth and areaOpacity values;

     
        
    
        
    
        
    
    
    
    
        

提交回复
热议问题