¡@

Home 

2014/10/16 ¤W¤È 12:06:24

jquery Programming Glossary: plotaccordingtochoices

flot graph, use legend to turn on/off series

http://stackoverflow.com/questions/4230945/flot-graph-use-legend-to-turn-on-off-series

var i 0 .each results function key val val.color i i var choiceContainer #overviewLegend function plotAccordingToChoices var data alert 'hi' choiceContainer.find input checked .each function var key this .attr name if key results key data.push.. name if key results key data.push results key .plot #placeholder results options choiceContainer.find input .click plotAccordingToChoices var previousPoint null #placeholder .bind plothover function event pos item #x .text pos.x.toFixed 2 #y .text pos.y.toFixed.. left x 15 border '1px solid #fdd' padding '2px' 'background color' '#fee' opacity 0.80 .appendTo body .fadeIn 200 plotAccordingToChoices javascript jquery graph flot share improve this question There's a couple of problem with your code The data you're..