RevealBi / Reveal.Sdk

Issue tracker - Reveal SDK https://www.revealbi.io/
https://www.revealbi.io/
3 stars 0 forks source link

[BUG]: Time series graph visualization issue #136

Open exscalliber opened 6 months ago

exscalliber commented 6 months ago

SDK Version

1.6.1

Client Framework

HTML/JavaScript

Server Platform

None

Operating System

Linux

Description

When you have data with irregular timestamps, the ticks between the dates are completely incorrect. In the attached images, i have the visualization from reveal that shows the incorrect spacing, and the same exported visualization from excel that shows the time series data with correct spacing/ticks between times. I've even found in the infragistics graphs that the line chart shows the same error, although this looks like a case of bad data which I've also attached (https://www.infragistics.com/products/ignite-ui-react/react/components/charts/types/line-chart#line-chart-data-structure). The reveal visualization should do exactly what excel does and fills in the dates between the ticks otherwise the data gets misrepresented when there are long time gaps between data. This issue affects these charts: Time Series, Stacked Area, Area, Line, Step Area, Step Line, Spline area, Spline, Combo.

Reveal Visualization Screenshot 2023-12-20 at 10 47 49 AM

The reveal visualization exported to Excel showing correct spacing Screenshot 2023-12-20 at 10 56 36 AM copy

Infragistics spacing issue (somewhat related) Screenshot 2023-12-20 at 11 35 49 AM

nerzhei commented 6 months ago

Internal work item AB#28468

gmurray81 commented 6 months ago

More context here from me: From my understanding, Reveal only implements CategoryXAxis or possibly OrdinalTimeXAxis ATM. It should also give an OPTION to use TimeXAxis, and possibly CategoryDateTimeXAxis for the time series specifically. TimeXAxis has some hoops to jump through since it supports different labels at different visible time ranges, so may need some UI work from Reveal. The observed behavior is actually expected and desired behavior for CategoryXAxis (we WANT it to remove areas where there is no data). But to support the desired behavior here they need a true continuous time scale on the x axis like TimeXAxis or CategoryDateTimeXAxis.

CategoryDateTimeXAxis is the quicker hit, since it doesn't automatically support different date/time formats at different visible time ranges, so shouldn't require altering the UI in Reveal that allows for selection of the date format.