如何解决jqplot中的图例中的图表上只能显示3个线系列中的2个吗?
我需要在地块上显示三行,但在图例中只显示三个名称中的两个(请参见下文,“历史销售”必须在地块上,而不能在图例中显示)。 jqplot有可能吗?
var GraphLabels=[];
GraphLabels[0] = {label:'Historical Sales',renderer:$.jqplot.LineRenderer,color:'grey',lineWidth: 2};
GraphLabels[1] = {label:'Your forecast',color:'orange',lineWidth: 2};
GraphLabels[2] = {label:'Actual Sales',lineWidth: 2};
function DrawGraph()
{
$("#GraphNum").html("Graph Number "+(CurrentGraph.Series+1)+" of "+SeriesList.length);
var Data = SeriesList[CurrentGraph.Series];
CurrentGraph.Plot = $.jqplot("chart",[Data.Sales,Data.UpdatedSales,Data.Feedback],{
stackSeries: false,series: GraphLabels,axesDefaults: {tickRenderer: $.jqplot.CanvasAxisTickRenderer,tickOptions: {angle:00,fontSize:'10pt'}},axes:
{
xaxis: {tickInterval:1,min:0,max:30,tickOptions: {angle: 90}},yaxis: {min: 0,max: 450}
},cursor: {show: true,followMouse: true},legend:
{
renderer: $.jqplot.EnhancedLegendRenderer.min,show: true,location: 'ne',placement: 'outside',marginRight: '50px'
}
});
}
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。