You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm still struggling with migrating our project from v4 to v5 and it's such a mess since so many things are not documented or just don't work as expected, that's so frustating ...
Simple example:
I only want ticks for the labels that are shown on the x axis, but this is what I got:
I v4 the chart itself calculated the number and position of ticks regarding to the number of the formatted labels automatically. Now this doesnÄt work anymore and I have (after hours of trying every constellation of scale ticks, label settings and so) no clue hwo to solve this.
The config of my axis looks more or less like this:
chart.encode('x', 'timestamp').scale('x', {nice:true}).axis(
'x',
{
tickStroke: 'white,
tickLineWidth: 2,
labelFill: white,
labelFontSize: 12,
labelFormatter: (t: string | number | Date | null | undefined) => {
return hasValidTimeStamps
? getTimeString({ timestamp: t, format: chartOptions.dateFormat ?? 'dateAndTime' })
: t;
},
labelAutoHide: true,
title: false,
}
);``
My data contains data series of every 60 minutes, timestamps are like this: "2024-01-04T14:00:00.000Z",
"2024-01-04T15:00:00.000Z" and so on:
How do I manage to show only one tick per label at the correct position?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm still struggling with migrating our project from v4 to v5 and it's such a mess since so many things are not documented or just don't work as expected, that's so frustating ...
Simple example:
I only want ticks for the labels that are shown on the x axis, but this is what I got:
I v4 the chart itself calculated the number and position of ticks regarding to the number of the formatted labels automatically. Now this doesnÄt work anymore and I have (after hours of trying every constellation of scale ticks, label settings and so) no clue hwo to solve this.
The config of my axis looks more or less like this:
chart.encode('x', 'timestamp').scale('x', {nice:true}).axis(
'x',
{
tickStroke: 'white,
tickLineWidth: 2,
"2024-01-04T15:00:00.000Z" and so on:
How do I manage to show only one tick per label at the correct position?
Beta Was this translation helpful? Give feedback.
All reactions