-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bar chart for full hour|day|any datetime timeranges #1688
Comments
https://apexcharts.com/docs/options/xaxis/
|
Valid points, I will consider this. |
@junedchhipa Thanks for your consideration. All kudos go towards this fine drawing tool: https://excalidraw.com 👋 |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Any news regarding this? |
Any progress on this? |
I would love to see this, fixed, so the bar starts exactly on the hour, not centered on the hour. |
I worked around this by shifting the chart by 30 minutes now the left side of the column fits the tickmark. |
+1! Please REOPEN! |
this also breaks the zoom behavior -- in the drawn example, if you zoom over 9:00, the returned time range is actually 8:30 - 9:30, when i need 9:00 - 10:00. |
Is your feature request related to a problem? Please describe.
I am struggling to display a bar chart (with
x
being a datetime axis andy
a value axis) in which each bar represents a value for a full-hour time range e.g. "we had 123 visitors in between 9am to 10am". The bars are centered on the full hour, which is confusing for users (Does 10 am mean it's from 10 to 11am or from 9 to 10am or from 9:30 to 10:30?)Describe the solution you'd like
Either a) let me specify a visual alignment property like
barHorizontalAlignment
: as one ofcenter
,left
,right
or b) let me specify astart
andend
timerange for each bar. Please see the following image for explanation:Codepen to play around with: https://codepen.io/cb109/pen/qBbqgvx?editors=1010
Describe alternatives you've considered
I have tried visualizing this using other chart types like
area
, but I'd really prefer having some visual "gap" between values so they are easier to distinguish, and that does not seem to be possible with the area chart.Additional context
Another example on how Google visualizes values in between full hours, that's the kind of diagram I am trying to produce:
The text was updated successfully, but these errors were encountered: