vico icon indicating copy to clipboard operation
vico copied to clipboard

Arbitrary timestamps on X-Axis

Open michaelnimbs opened this issue 2 years ago • 1 comments

Hello,

thank you for the library and the recent updates.

I would like to implement the following chart: Temperature on the Y-Axis and timestamp of measurements on the X-Axis with different gaps between the events and ticks for days. temp_chart

This is not possible right now, correct?

michaelnimbs avatar Jul 28 '22 12:07 michaelnimbs

Hello! In simpler cases, this would be possible. For instance, you could set the tick spacing to 7 and display one tick per one week’s worth of data. For days with no data, you’d not include an entry with the corresponding x value in the data set. Vico would space out the points as expected. However, in your case, such an approach would require setting the tick spacing to 86,400 (the number of seconds in a day). This would most likely degrade performance and cause other issues. We’ll be looking into how your use case could be accommodated.

ghost avatar Aug 05 '22 06:08 ghost

Hello! Vico 1.7.0 makes this possible.

patrickmichalik avatar Jul 03 '23 15:07 patrickmichalik