jquery jqplot jqplot.highlighter在multy系列图表中显示系列名称

use*_*208 3 jquery jqplot

我有一个多系列图表,并希望不仅突出xy该点的坐标,也是series名.

可能吗?

Jul*_*ier 5

我发现这样做最简单的方法是这样的:

$.jqplot('chart-id', values, {
    series: [ 
              {
                  highlighter: { formatString: 'serie1: %s, %s'}
              },
              ...
            ]
     axes : {
         xaxis:{
             renderer:$.jqplot.DateAxisRenderer,
             tickOptions:{
                 formatString:'%b %#d'
             }
         },
         yaxis:{
              tickOptions:{
                  formatString:'%.2f'
              }
         }
     },
     highlighter: {
         show: true
     }
  });
Run Code Online (Sandbox Code Playgroud)