混合图 · mix
多坐标系混柱、折线、面积和点。type="mix"。Demo 页:/pages/demo/charts/mix。
数据
必须有 categories。每条 series 自己写 type(column / line / area 等)。
示例
<view class="chart-box">
<lingyun-ui-charts
type="mix"
:chartData="chartData"
:opts="chartOpts"
/>
</view>
const chartData = {
categories: ['周一', '周二', '周三', '周四', '周五', '周六', '周日'],
series: [
{ name: '销量', type: 'column', data: [35, 36, 31, 33, 13, 34, 32] },
{ name: '目标', type: 'line', data: [30, 30, 30, 30, 30, 30, 30] },
],
}
const chartOpts = {}
.chart-box {
width: 100%;
height: 280px;
}
接法、属性、事件见 图表总览。