-
-
Notifications
You must be signed in to change notification settings - Fork 13
Closed
Description
There is a significant difference in the API for the Axis
between Svelte Plot and Observable Plot.
By default, the data for an axis mark are tick values sampled from the associated scale’s domain. If desired, you can specify the data explicitly (e.g. as an array of numbers), or use one of the following options:
ticks - the approximate number of ticks to generate, or interval, or array of values
tickSpacing - the approximate number of pixels between ticks (if ticks is not specified)
interval - an interval or time interval
The ticks
option is not present in SveltePlot, which breaks automatic translation of some examples:
- https://observablehq.com/@observablehq/plot-datawrapper-style-date-axis (would use
ticks="3 months"
) - https://observablehq.com/@observablehq/plot-line-chart-percent-change (would use
ticks={12}
)
(This is one of the issues surfaced by #72)
Metadata
Metadata
Assignees
Labels
No labels