jquery Programming Glossary: pointindex
Programatically set the marker on a plot http://stackoverflow.com/questions/10415683/programatically-set-the-marker-on-a-plot .bind 'jqplotDataClick' function ev seriesIndex pointIndex data returns the data point which I can use to find the relevant.. .bind 'jqplotDataClick' function ev seriesIndex pointIndex data alert data '#button' .bind click function DoSomeThing..
jqplot tooltip on bar chart http://stackoverflow.com/questions/4889464/jqplot-tooltip-on-bar-chart .bind 'jqplotDataHighlight' function ev seriesIndex pointIndex data var mouseX ev.pageX these are going to be how jquery knows.. mouseY ev.pageY '#chartpseudotooltip' .html ticks_array pointIndex ' ' data 1 var cssObj 'position' 'absolute' 'font weight'.. under your mouse as an x category # y value type array. pointIndex has the current highlighted bar #. Basically we will use this..
jqplot Side by Side Stacked Bar Chart http://stackoverflow.com/questions/9270945/jqplot-side-by-side-stacked-bar-chart '#chart3' .bind 'jqplotDataClick' function ev seriesIndex pointIndex data '#info3' .html 'series ' seriesIndex ' point ' pointIndex..
Programatically set the marker on a plot http://stackoverflow.com/questions/10415683/programatically-set-the-marker-on-a-plot In the example below I can do the first requirement. '#chartdiv' .bind 'jqplotDataClick' function ev seriesIndex pointIndex data returns the data point which I can use to find the relevant data grid row. But I'm stuck on the reverse. In my example.. size 10 cursor show true showTooltip true '#chartdiv' .bind 'jqplotDataClick' function ev seriesIndex pointIndex data alert data '#button' .bind click function DoSomeThing plot3 function DoSomeThing plot highlight point in plot..
jqplot tooltip on bar chart http://stackoverflow.com/questions/4889464/jqplot-tooltip-on-bar-chart some of the examples showed. I modified it like this '#mychartdiv' .bind 'jqplotDataHighlight' function ev seriesIndex pointIndex data var mouseX ev.pageX these are going to be how jquery knows where to put the div that will be our tooltip var mouseY.. knows where to put the div that will be our tooltip var mouseY ev.pageY '#chartpseudotooltip' .html ticks_array pointIndex ' ' data 1 var cssObj 'position' 'absolute' 'font weight' 'bold' 'left' mouseX 'px' usually needs more offset here .. the x axis tick strings. jqplot's data has the current data under your mouse as an x category # y value type array. pointIndex has the current highlighted bar #. Basically we will use this to get the tick string. Then I styled the tooltip so that..
jqplot Side by Side Stacked Bar Chart http://stackoverflow.com/questions/9270945/jqplot-side-by-side-stacked-bar-chart
|