microsoft / tsiclient

A JavaScript client for Microsoft Azure Time Series Insights, featuring components for making calls directly to the TSI server, rendering results from the TSI API, and more
https://tsiclientsample.azurewebsites.net/
MIT License
80 stars 66 forks source link

Barchart showing data in a period of time #329

Closed felipebayres closed 3 years ago

felipebayres commented 3 years ago

I´m using TSI UX to show some data in graphs from Time Series Insight Explorer but there is a graph that measures energy consumption, and it is more intuitive if the data is shown in a bar from each specific period of time( days , months , maybe years). Like the example below image

As I saw, Barcharts only have a slider to step through the timestamps of the supplied time series and it can´t show every data at once, or am I wrong?

darsney commented 3 years ago

you aren't wrong, this type of layout is not supported for bar charts. we know that people want it, we just haven't built it. the best way to do this would be to make datagroups that represent the months, and series that represent the channels, and have 1 timestamp. the tooltip would still be ugly because it would show the timestamp, but you could hide the timestamp in the tooltip using CSS. but you probably just want to use a different chart for this instead of hacking the tsiclient chartDataShape to be completely honest.

sorry about that! feedback well taken though, we definitely know folks like this layout for bar charts haha