plouc / nivo

nivo provides a rich set of dataviz components, built on top of the awesome d3 and React libraries
https://nivo.rocks
MIT License
13.08k stars 1.02k forks source link

Add date ranges to bullet chart #1736

Closed mohgh closed 2 years ago

mohgh commented 3 years ago

Is it possible to have an array of dates passed as the range parameter in the bullet chart?

plouc commented 3 years ago

@mohgh, no, that's not possible, bullet charts only support numerical values, I'm not sure when dates could be used for a bullet chart, what's your use case?

mohgh commented 3 years ago

I'm using the bullet chart for showing range data. I'm passing an empty array for measures and markers. For example from 00:00 to 7:00 green, 7:00 to 18:00 red, and 18:00 to 24:00 will be yellow. As Nivo is already supporting DateTime type axis it would be useful to be able to pass date type objects as data.

alternatekev commented 3 years ago

I also have this use case, and came here looking primarily to be able to customize the bottom axis showing the labels. Using timestamps works well for the data, I'd just like to easily convert them to dates in the display.

stale[bot] commented 2 years ago

This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. We are sorry that we haven't been able to prioritize it yet. If you have any new additional information, please include it with your comment!

stale[bot] commented 2 years ago

Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please create a new issue with up-to-date information. Thank you!