I have javascript code like:
var plot1 = jQuery.jqplot ('chartdiv', [data], { seriesDefaults: { // Make this a pie chart. renderer: jQuery.jqplot.PieRenderer, rendererOptions: { // Put data labels on the pie slices. // By default, labels show the percentage of the slice. showDataLabels: true, dataLabels: 'value' } }, legend: { show:true, location:'e'} }); var handler = function(ev, gridpos, datapos, neighbor, plot) { if (neighbor) { alert('x:' + neighbor.data[0] + ' y:' + neighbor.data[1]); } }; $.jqplot.eventListenerHooks.push(['jqplotClick', handler]);
Now, using dataLabels: 'value', I can show the values, but the value 51 is shown instead of 50.667. The value is rounded. But I need to show the exact meaning. Like this?
My second question: when I have a mouse pointer on any area of ββthe chart, I want to show something. This will be done using jqplotDataMouseOver. But how to use it? Thanks in advance .Plz immediately responds as urgent.
ryan
source share