apexcharts / apexcharts.js

📊 Interactive JavaScript Charts built on SVG
https://apexcharts.com
MIT License
14.41k stars 1.31k forks source link

Click on first legend causes tooltip x value NaN undefined. #829

Closed Sumon-miazi closed 4 years ago

Sumon-miazi commented 5 years ago

In my multiline chart series(xaxis type is datetime and date is same for all three series), if I click on the first legend to hide series this causes tooltip x value NaN undefined problem. But the other legend did not cause this type of problem. now using 3.8.4v. and the older version has the same problem. @junedchhipa

this is my legend configuration:

legend: {
    show: true,
    position: 'top',
    showForNullSeries: false,
    showForZeroSeries: false,
},

made a gif for better understanding deepin-screen-recorder_Select area_20190806165727

kaminilsen commented 5 years ago

You need to define your xaxis categories, see https://apexcharts.com/docs/options/xaxis/

junedchhipa commented 5 years ago

@Sumon-miazi Please create a working codepen to reproduce easily.

junedchhipa commented 4 years ago

Unable to reproduce it, hence closing it.

lucasdcrk commented 4 years ago

Hi! @junedchhipa I encountered the same issue and recreated it on code sandbox See https://codesandbox.io/s/vue-basic-example-qejof?file=/src/components/Chart.component.vue