layerchart
layerchart copied to clipboard
AutoChart component
Consider creating an AutoChart component similar to Observable Plot's auto mark.
See initial discussion for some context.
Some initial thoughts:
- Identify the TooltipContext mode based on data/scales (reference)
- Consider using
getMajorTicks()/formatMajorTicks()(and minor version) to provide Axis ticks for date/time scales (reference)
Reference
- https://observablehq.com/plot/marks/auto
- https://github.com/ankane/blazer?tab=readme-ov-file#charts
Would love to see this!