Skip to content

分时图配置2(成交量):

shaman edited this page Jan 18, 2017 · 1 revision

分时图走势配置2(成交量):

return {
    name: 'time-sharing-b',
    width: 'auto',
    height: 80,
    axis: {
        row: 2,
        col: 4,
        paddingTop: 5,
        paddingBottom: 14,
        paddingLeft: 0,
        paddingRight: 0,
        color: '#cdcdcd'
    },
    xAxis: {
        times: ['09:30', '15:00'],  //左右(开盘,收盘)时间显示,港股,沪深,美股时间有差异
        data: []   //具体时间
    },
    yAxis: [
        {
            type: 'bar',   //柱状
            color: [],     //颜色
            data: [],      //成交量
            showMax: true  //是否显示最大值
        }
    ],
    callback: function (time) {
        var page = getCurrentPages();
        page = page[page.length - 1];
        page.setData({
            ts2RenderTime: time
        });
    }
};
Clone this wiki locally