Primefaces条形图工具提示

时间:2018-01-08 10:35:22

标签: primefaces tooltip bar-chart jqplot

我想在我的条形图的工具提示中添加自定义数据。

我尝试过使用Extender,但我只得到值y(x得到列号):

enter image description here

我想这样:日期:14-12-2017(字符串格式)而不是日期:5

代码:

function chartExtender(){
            //this = chart widget instance
            //this.cfg = options
            this.cfg.grid = {
               background: '#FFF' //Set background to white
            };
            this.cfg.axes.xaxis.tickOptions.showGridline = false;
            this.cfg.axes.yaxis.tickOptions.showGridline = false;
            this.cfg.axes.xaxis.tickOptions.formatString = '%s';
            this.cfg.axes.yaxis.tickOptions.formatString = '%d';
            this.cfg.series=[
                             { label : "line1",highlighter: {formatString: "<div><span> Date:  %s </span><br/><span>Nombre de notifications : %d</span></div>"} }
                            ],
            this.cfg.highlighter={show: true, useAxesFormatters: false, sizeAdjust: 25.5}
          }

任何帮助?

0 个答案:

没有答案
相关问题