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

标签 jquery jqplot

我有一个多系列图表,不仅要突出显示点的 xy 坐标,还要突出显示 series 名称。

可能吗?

最佳答案

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

$.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
     }
  });

关于jquery jqplot jqplot.highlighter 在多系列图表中显示系列名称,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8637479/

相关文章:

jqplot - 如何将第一个 X 轴设置为 0

php - jqplot - 使用 php 数组中的值

javascript - 如何改变jquery中的javascript上下文?

javascript - jquery .hide 在这种情况下不起作用

javascript - 上传文件 jquery 时未捕获类型错误

java - 通过表单提交重新加载 struts jqGrid

javascript - 如果 textarea 为空,则防止选中其他复选框

javascript - JQPlot(查看绘图图像)在 Firefox 中中断

jquery - jqplot轴刻度标签带省略号

jquery - jQPLOT - 内存泄漏