2017-03-02 26 views

回答

0

你可以張貼一些源代碼?

無論如何,在jqplot有一種方法來定製標籤打勾。例如,您可以添加一個「格式化程序」功能,以操作刻度數據和格式。像:

... 
    options.axes.xaxis.tickOptions.formatter = function(format,value) { 
       return xAxiformatter(value).toFixed(2); 
      } 
... 
    function xAxiformatter(value) { 
       return -4.57 + xSlope * (value - modMinX); 
      } 
... 

http://www.jqplot.com/docs/files/plugins/jqplot-canvasAxisTickRenderer-js.html# $ .jqplot.CanvasAxisTickRenderer.formatter

您可以使用此格式化功能也使該問題的「解決辦法」的解決方案。