为了账号安全,请及时绑定邮箱和手机立即绑定

Linechart Highchart中的背景列

Linechart Highchart中的背景列

ITMISS 2021-03-29 14:11:43
我必须做一个这样的图折线图已经创建,带有图例和轴标签。仅缺少列。我不知道该怎么做,你能帮我吗?
查看完整描述

1 回答

?
有只小跳蛙

TA贡献1824条经验 获得超8个赞

我在xAxis上使用plotBands创建类似的东西。将其与您的项目混合应该会返回想要的结果。


xAxis: {

    plotBands: [{

            borderColor: 'grey',

        borderWidth: 3,

        color: '#FCFFC5',

        from: Date.UTC(2019, 02, 2),

        to: Date.UTC(2019, 02, 4)

    }, { // mark the weekend

        color: '#FCFFC5',

        from: Date.UTC(2019, 02, 9),

        to: Date.UTC(2019, 02, 11)

    }, { // mark the weekend

        color: '#FCFFC5',

        from: Date.UTC(2019, 02, 16),

        to: Date.UTC(2019, 02, 18)

    }, { // mark the weekend

        color: '#FCFFC5',

        from: Date.UTC(2019, 02, 23),

        to: Date.UTC(2019, 02, 25)

    }, { // mark the weekend

        color: '#FCFFC5',

        from: Date.UTC(2019, 02, 30),

        to: Date.UTC(2019, 03, 1)

    }],

    tickInterval: 24 * 3600 * 1000, // one day

    type: 'datetime',

},


查看完整回答
反对 回复 2021-04-08
  • 1 回答
  • 0 关注
  • 167 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号