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
Bug in examples for columns and bars - sorting of date series. #54
Comments
Awe, likely a regression from upgrading Layer Cake to 8.0.0 today... |
Yes. Changed my local Layer Cake back to 7.6.0 and the issue date sorting issue disappeared. |
Wondering if these examples should be using scaleTime instead of scaleBand. That would fix the sorting issue, but doing so causes the bars to have width=0. I'm thinking changes are needed to createDimensionGetter. A side benefit is that you could also set the number of ticks. Current the Axis uses the full domain for ticks if it is scaleBand and it gets a bit crowded. layerchart/src/lib/components/Axis.svelte Lines 36 to 40 in ed04294
|
Possibly... I know using a band scale with dates isn't optimal (especially with gaps in the data). Here is some Observable Plot examples, which has an
I opened a LayerCake issue to discuss as well |
@mattlangeman Btw, improving date handling with band/bar charts was something I was tracking in #21 as well |
Updated to |
Fixed by Layer Cake |
The bar and column date series charts are sorting by the date string (day of week).
The text was updated successfully, but these errors were encountered: