Wijmo User Guide > Widgets > BarChart > BarChart Concepts > Clickable Legend |
By default, the bar chart allows users to click a legend entry to toggle the data series it represents in the chart. The first click hides the bars for the data series. The second click toggles the bars for the data series back to visible.
Toggled Off |
Toggled On |
You may not always want to allow this functionality. If you want to disable it, add code like the following to your script, inside the document ready function:
Turn Off Legend Click Function |
Copy Code
|
---|---|
$(".wijchart-legend").click(function () { return false;}); |
The entire script looks something like this: