0
votes

I want to add tool tip for my line chart using jqplot. Can u please tell me how to add it.. Here is my code:

  $(document).ready(function(){
    var plot2 = $.jqplot('chart1', [result], {
        seriesColors: [ "#000000", "#ff0000"],

          axes:{
               xaxis:{
                 renderer:$.jqplot.CategoryAxisRenderer
               }
             },
 series:[{lineWidth:4, markerOptions:{style:'square'}}],   });  });

Thanks in advance..

2

2 Answers

0
votes

Try the following code

highlighter: {
        show: true,
        sizeAdjust: 7.5
      }

FIDDLE

0
votes

You can start by Jqplot website :

Find examples here,

Again more examples here,

Especially about tooltip here,

Finally you can find documentations here

I think you can easily find other links doing a search on your favorite web search engine or on stackoverflow.com