使用jqplot的折线图工具提示

时间:2013-06-13 12:04:25

标签: jqplot

我想使用jqplot为我的折线图添加工具提示。 你可以告诉我如何添加它.. 这是我的代码:

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

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

提前致谢..

2 个答案:

答案 0 :(得分:0)

您可以从Jqplot网站开始:

查找示例here

再举几个例子here

特别是关于工具提示here

最后,您可以找到文件here

我认为您可以轻松找到在您最喜爱的网络搜索引擎或stackoverflow.com上搜索的其他链接

答案 1 :(得分:0)

尝试以下代码

highlighter: {
        show: true,
        sizeAdjust: 7.5
      }

FIDDLE