Bar charts with time scale? #2081
MA-MacDonald
started this conversation in
General
Replies: 1 comment
-
Hi @MA-MacDonald. The example looks very similar to a regular bar chart that can be generated by the existing bar package. The @nivo/bar package would place the ticks at the center of the bars. If you really want the ticks between the bars as in the screenshot, you can implement a custom layer and draw a custom set of ticks. Here is an example. https://codesandbox.io/s/naughty-ritchie-iwx6k9?file=/src/App.js Note that this only "looks" like a time axis, but the package still treats the elements along the horizontal axis as discrete. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is there any plans to support Bar charts with time scale in the future?
This is one of the primary reasons keeping me from switching to this library.
Something like the following
Beta Was this translation helpful? Give feedback.
All reactions