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
add index values to data (which already contains timestamp)
set x-axis as (d) => d.index
in tickFormat() do this: tickFormat: (x, index) => formatAsMonth(data[index].timestamp)
EDIT: index will be incorrect if numTicks is modified (index is the index of the tick, not the datapoint), so will need to determine the datapoint index with something like:
tickFormat: (x: number)=>{// workaround for https://github.com/f5/unovis/issues/450if(format.startsWith('date')){constindex=model.data.findIndex(d=>d.index===x)returnformatValue(model.data[index].timestamp,format)}returnformatValue(x,format)},
This gets us over a hump, until hopefully a fix arrives:
Hello,
We're using timestamps as our Datum x-axis values, but it seems to result in misaligned x-axis labels:
Using indices, the labels line up perfectly:
Feels like a bug.
Is it?
The text was updated successfully, but these errors were encountered: