当maxSeries:0时,amcharts会给出无响应的脚本消息

时间:2015-06-20 10:24:09

标签: amcharts

我正在使用amcharts插件构建图表,烛台类型,数据每分钟更新一次,我的客户端不想对日期进行分组,所以我在categoryAxesSettings配置中使用了“maxSeries:0”。只要我们的工作量少于5000,但每天都有越来越多的数据增长,那么每件事都可以正常工作,它现在会给出“无响应脚本”的警告信息。

panels: [{  
        stockGraphs: [{
            id: "g1",
            title: "Value",
            type: "candlestick",
            openField: "open",
            closeField: "close",
            highField: "high",
            lowField: "low",
            valueField: "close",
            lineColor: "#7f8da9",
            negativeLineColor: "#db4c3c",
            negativeFillColors: "#db4c3c",
            fillAlphas: 0.8,
            useDataSetColors: false,
            legendValueText: "Open:[[open]] Close:[[close]] Low:[[low]] High:[[high]] Volume:[[volume]]",
            showBalloon: true
        }],
        stockLegend: {
            useMarkerColorForValues: true,
            useMarkerColorForLabels: true,
            valueTextRegular: undefined,
            switchable: false,
            horizontalGap: 2,
            align: "left",
            reversedOrder: true,
            valueWidth: 150,
            markerType: "circle"
        },
        valueAxis: {
            gridColor: "#cccccc",
            gridAlpha: 1,
            showLastLabel: true
        }
    }
],
panelsSettings: {
    plotAreaFillColors: "#fff",
    plotAreaFillAlphas: 1,
    marginLeft: 0,
    marginTop: 5,
    marginBottom: 5
},

categoryAxesSettings: {
    parseDates: true,
    minPeriod: "mm",
    gridColor: "#cccccc",
    gridAlpha: 1,
    maxSeries: 0,
    groupToPeriods: ["30mm"]
},

chartCursorSettings: {
    valueLineEnabled:true,
    valueLineBalloonEnabled:true,
    valueBalloonsEnabled: true  
},

chartScrollbarSettings: {
    graph: "g1",
    graphType: "line",
    usePeriod: "30mm"
},

balloon: {
    textAlign: "left",
    offsetY: 10
},

periodSelector: {
    position: "bottom",
    dateFormat: "YYYY-MM-DD JJ:NN:SS",
    periods: [{
        period: "mm",
        count: 30,
        label: "Minutes",
        selected:true
    }, {
        period: "hh",
        count: 12,
        label: "Hours",
        selected:false
    }, {
        period: "DD",
        count: 1,
        label: "1 day",
        selected:false
    }, {
        period: "DD",
        count: 10,
        label: "10 days",
        selected:false
    }, {
        period: "MM",
        count: 1,
        label: "1 month",
        selected:false
    }, {
        period: "MM",
        count: 6,
        label: "6 months",
        selected:false
    }, {
        period: "YYYY",
        count: 1,
        label: "1 year",
        selected:false
    }, {
        period: "YTD",
        label: "YTD",
        selected:false
    }, {
        period: "MAX",
        label: "MAX",
        selected:false
    }]
}

如何在不收到警告信息的情况下取消组合数据?

提前谢谢你,

0 个答案:

没有答案