Split two axises

This commit is contained in:
Pig Fang 2019-05-02 16:57:34 +08:00
parent 13b18c2489
commit 9d2bf8ad40

View File

@ -43,6 +43,12 @@ async function createChart(el: HTMLDivElement) {
{
type: 'category',
boundaryGap: false,
position: 'left',
},
{
type: 'category',
boundaryGap: false,
position: 'right',
},
],
series: [
@ -85,6 +91,7 @@ async function createChart(el: HTMLDivElement) {
data: chartData.data[index],
smooth: true,
symbol: 'roundRect',
yAxisIndex: index,
})
),
})