-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exporting functionality removing duplicate datapoints in CSV/XLS/View Data Table #17639
Comments
Hello @Sushma58, thanks for creating this ticket! |
Hi @pawellysy thanks for the suggestion, as attached below both the data points belongs to same timestamp value which is a daylight saving hour. Please suggest what needs to be done here. |
Indeed this is a bug in my opinion. What I could advise you to do, is to slightly change one of the points by 1 millisecond, which would make those points not equal. There would not be a lot of difference in rendering, and both points will be preserved. We will try to fix this bug soon, thanks for reporting! Minimal demo, where the issue is reproduced: https://jsfiddle.net/BlackLabel/9b1p5vkn/227/ |
@pawellysy thanks, for the time being I will use this workaround. Can you please also help me with the approximate SLA when your team is planning to release this? |
Sorry, we have no ETA right now, but you can follow this issue, as all info will be posted here! In case of any further questions feel free to contact us via our dedicated support channels! |
Hi @pawellysy, I am now using below code to add 1 extra millisecond to the duplicate timestamp. Although it fixes the issue in CSV/DataTable/Excel but does not generate any data in "PNG/JPEG/SVG/PDF" which I believe is a new bug in HighCharts. var chart = $('#' + divName).highcharts();
I am attaching screenshots of CSV file working but the jpeg/png not working with the same data. Please suggest what needs to be done here as it is affecting our production environment. |
Hello again @Sushma58, could you please share the demo, where the issue is reproduced? You can use this demo as an initial one: https://jsfiddle.net/BlackLabel/9b1p5vkn/227/ |
Hello @pawellysy have added the reproducible issue at https://jsfiddle.net/1zntymkq/7/ , let me know if you need more information. Thanks |
Please don't edit the |
Hi @karolkolodziej thanks the fix worked :) |
Workaround with overriding HC core function: A similar solution will be used in the HC core. |
Problem: Hi Team, In my case I am visualizing some forecasts in the form of hourly chart - 24 data points for a day per hour, the chart works fine for normal scenario.
But when it is a daylight saving day e.g 31st Oct 2021 we receive 25 data points, 2 duplicate data points for 2 am. The visualization works fine on the chart but when I click on Download CSV/XLS/ Data Table the duplicate value is removed which we would like to have.
Let me know if you need more information.
The text was updated successfully, but these errors were encountered: