series.arearange.data

本文介绍了在使用区域图系列类型时的数据格式要求。区域图可以通过多种方式定义数据点,包括带有x、low、high值的数组,或者带有更多属性的对象数组。当数据点总数超过turboThreshold时,某些选项将不可用。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

An array of data points for the series. For the arearange series type, points can be given in the following ways:

  1. An array of arrays with 3 or 2 values. In this case, the values
    correspond to x,low,high. If the first value is a string, it is
    applied as the name of the point, and the x value is inferred. The
    x value can also be omitted, in which case the inner arrays should
    be of length 2. Then the x value is automatically calculated,
    either starting at 0 and incremented by 1, or from pointStart and
    pointInterval given in the series options.
    data: [
    [0, 8, 3],
    [1, 1, 1],
    [2, 6, 8]
]
  1. An array of objects with named values. The following snippet shows
    only a few settings, see the complete options set below. If the
    total number of data points exceeds the series’ turboThreshold, this
    option is not available.
data: [{
    x: 1,
    low: 9,
    high: 0,
    name: "Point2",
    color: "#00FF00"
}, {
    x: 1,
    low: 3,
    high: 4,
    name: "Point1",
    color: "#FF00FF"
}]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值