oksktank / react-native-pure-chart

react-native chart library that not using svg or ART but only using react native pure components.
MIT License
288 stars 132 forks source link

LineChart (Multi Series) - Not showing info of single line series data. #107

Open durgesh94 opened 4 years ago

durgesh94 commented 4 years ago

sampleData = [ { seriesName: 'Series1', data: [ { x: '24-Feb', y: 66 }, { x: '25-Jun', y: 77 }, { x: '26-Oct', y: 44 }, { x: '27-Dec', y: 9 }, { x: '25-Dec', y: 70 } ], color: 'blue', }, { seriesName: 'Series2', data: [ { x: '24-Apr', y: 90 }, { x: '24-Apr', y: 60 } ], color: 'red', }, ];

Woking fine with parallel two series data but not working for single series data. please refer attached screenshots. Screenshot1: working fine. Screenshot2: clicking on the green circle dots, it is not showing info as screenshot1. with above data. screenshot1 screenshot2

HahaHopeless commented 4 years ago

having the same issue. Did you ever find a fix???

HahaHopeless commented 4 years ago

BTW, I think that it supposed to be this way because the data for the specific date can either be 0 or more than 0 and not null. So it makes sense that this works only with parallel data and not with single line in multiple series mode.