-
I'm using plot in an Angular (Typescript) - project. I like to hide ticks in a plot with band scale on x-axis. The label must be visible.
The ticks on x-scale are visible. What is wrong? |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 1 reply
-
Can you share a reproducible case? The following is working for me: https://observablehq.com/@recifs/band-scale-ticksize--support |
Beta Was this translation helpful? Give feedback.
-
Thank you for your fast reply. If I use "Plot.dot" in my tests it works for me, but if I use "Plot.barY" it doesn't. I don't want to see ticks. Is it enough if I show you, how I init the test data or do you need more? |
Beta Was this translation helpful? Give feedback.
-
Even with barY it works for me, as you can see on https://observablehq.com/@recifs/band-scale-ticksize--support Please share a fully-working reproducible example (in an observable notebook or codepen); otherwise I have to do guesswork from incomplete information, and it takes a lot of effort. In particular, please make sure that the syntax is correct—the code above seems to have the definition for x located inside the marks array. |
Beta Was this translation helpful? Give feedback.
-
Here is my example: https://stackblitz.com/edit/observablehq-plot-test-ezsagj?file=src/app/app.component.ts |
Beta Was this translation helpful? Give feedback.
-
you could use tickFormat: () => "" |
Beta Was this translation helpful? Give feedback.
-
Or, if you wanted to display the day in narrow format, this works well.
|
Beta Was this translation helpful? Give feedback.
you could use tickFormat: () => ""