Hi Ovilia,

I don't know if it's a bug and am not able to reproduce it on your demo
page. I am using the version 5.3.3 and the renderer is "SVG".  Here is the
sample code.  When I use startValue and endValue for dataZoom, I get these
below console errors.
I posted on stackOverflow as well. But no luck. Any help would be
appreciated.
Error: <path> attribute transform: Expected number,
"matrix(1,0,0,-1,NaN,NaN)".

let base = +new Date(1968, 9, 3);
let oneDay = 24 * 3600 * 1000;
let date = [];

let data = [Math.random() * 300];

for (let i = 1; i < 200; i++) {
  var now = new Date((base += oneDay));
  date.push([now.getFullYear(), now.getMonth() + 1, now.getDate()].join('/'
));
  data.push(Math.round((Math.random() - 0.5) * 20 + data[i - 1]));
}
option = {
  xAxis: {
    type: 'value'
  },
  yAxis: {
    type: 'category',
    inverse: true,
    data: date
  },
  legend: {
    bottom: 20
  },
  grid: {
    left: '3%',
    right: '4%',
    bottom: 75,
    containLabel: true
  },
  dataZoom: [
    {
      type: 'slider',
      yAxisIndex: 0,
      startValue: 0,
      endValue: 5
    }
  ],
  series: [
    {
      data: data,
      type: 'bar'
    }
  ]
};




On Mon, Oct 23, 2023 at 3:26 AM Ovilia <oviliazh...@gmail.com> wrote:

> Hi,
>
> Please open an issue on GitHub and make a minimal demo to reproduce the
> issue.
>
> Thanks
>
> *Ovilia*
>
>
> On Sat, Oct 14, 2023 at 2:25 AM Srividhya Gopalakrishnan <
> srividhya...@gmail.com> wrote:
>
>> I am using apache echarts for react and I am rendering the chart in svg
>> mode. When I use the dataZoom option, I always get these console errors.
>> Error: attribute transform: Expected number, "matrix(1,0,0,-1,NaN,NaN)". I
>> am not sure how to override NaN for the coordinates. Is there any specific
>> dataZoom property to override the same?
>>
>> Thanks in advance
>>
>> --
>> Srividhya G
>>
>

-- 
Srividhya G
Vidhya's Veg Kitchen <http://www.vidhyashomecooking.com/>

Reply via email to