flot graph, use legend to turn on/off series
I want to be able to use the legend of a flot graph to turn on/off the series of my graph. I found the examples on the flot site and have used the Turning series on/off and Labelformatter from the API to build what I have right now. I can put checkboxes next the legend elements and add a click event to them and its fires. But that calls the plot function again and resets my checkbox values. I have included the full jquery function, sorry its a bit long. <script id="source"> var jsonPath = "JsonPriceHistory/" + getParameterByName("CardId") $(function () { $.getJSON(jsonPath, function (results)