【发布时间】:2014-06-18 23:32:00
【问题描述】:
我正在使用 jqplot 来显示我的条形字符。
在我添加 tickRenderer 和 tickOptions 之前,条形图工作正常。
现在我收到以下错误:Uncaught TypeError: undefined is not a function
这是我的代码
plot3 = $.jqplot('chart3', [s2, s3], {
stackSeries: true,
seriesDefaults: {
renderer: $.jqplot.BarRenderer,
rendererOptions: {
highlightMouseDown: true
},
pointLabels: {show: true}
},
legend: {
show: true,
location: 'e',
placement: 'outside'
},
axes: {
xaxis: {
renderer: $.jqplot.CategoryAxisRenderer,
ticks: ticks,
tickRenderer: $.jqplot.CanvasAxisTickRenderer ,
tickOptions: {
angle: -90,
fontSize: '10pt'
}
}
}
});
【问题讨论】: