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 (将#修改为@)