You must be logged in to post your query.
Home › Forums › Report Bugs › Chart doesn’t work on Mobil Chrome
Tagged: android, chart, iPhone, Line, PC
On my Web the chart doesn’t works on Iphone Chrome, but it works on Android Chrome and Windows PC Chrome.
DEMO
GitHub
Thanks!
@drakehawke,
It seems to be working fine, please refer screenshot below.
To make us understand the scenario better to help you resolve the issue, can you kindly share the OS & Browser versions?
—- Manoj Mohan Team CanvasJS
I keep trying and I found that the problem was in this part of the code (the IF comparing the dates:
const filter = new Date('2020-03-13'); if (new Date(convertDate(caso[0].replace("\"","").replace("\"",""))) > filter ){ /* some code */ }
Where ‘caso[0]’ was like ‘”03/13/20″”‘ litheraly, with one quote at the begining and two quotes at the end. I needed the format ‘2020-03-13’ and I did those things to clean the string to compare those dates to filter empty data from the array. Then i figured out that the dates were the problemn and I fixed it using another control before this part of the code. Using a control on the FOR loop. Commit Fix for IOS
So, the dates are no soported on IOS I think.
Without the IF and date comparison, it worked fine.
THANKS!!!
Glad that you figured it out.
You must be logged in to reply to this topic. Login/Register