0

I have the following plot, which uses two axes: one for the differences and another for the accumulative differences.

enter image description here

I would like to force that both y axis match on 0, scaling the second faster later (Note that now we have a 0:200 match)

I´ve been checking the documentation, and it seems to include some variables for this purpose: onZero and onZeroAxisIndex. Nevertheless, I didn´t find any successful solution. Currently, my axis code looks as follows:

xAxis: {
    type: "category",
    data: props.dates,
},
yAxis: [
    {
        type: 'value',
        name: 'Discprepancia',
        position: 'left',
        axisLabel: {
            formatter: '{value} °C'
        },
    },
    {
        type: 'value',
        name: 'Discprepancia acumulada',
        position: 'right',
        alignTicks: true,
        axisLabel: {
            formatter: '{value} °C'
        }
    }
]

Edit: I found a similar question in this thread

Rodrigo_V
  • 130
  • 7

0 Answers0