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
puts each point in its proper place. However the axis labels are the timestamps themselves. I would like to print the commit field instead, placed at the proper timestamp (thus possibly irregularly spaced). I have tried a few things such as defining a new scale for the axis and proving a list of values, or registering a new vega.expressionFunction and calling it from a labelExpr, without success. The labelExpr is passed objects with scaled values. The information loss prevents me from easily retrieving the proper label.
I am sure this can be done in vega/vega-lite as this sounds relatively trivial. However I could not figure it out by reading the docs or the examples.
Thanks!
The text was updated successfully, but these errors were encountered:
I should note that this is easy to do with bar charts. The difficulty lies in placing custom text labels at the proper fieldT points in a line or scatter plot. An alternative is doing this directly in d3, but that's something I'd rather avoid for now.
By the way, I would gladly take this discussion elsewhere as it is not an issue per se, but haven't found any support forums or Gitter channel, for example.
Hi,
My data looks like this:
I am trying to plot ordinal values on the x axis using a temporal scale (timestamps). This
puts each point in its proper place. However the axis labels are the timestamps themselves. I would like to print the
commit
field instead, placed at the propertimestamp
(thus possibly irregularly spaced). I have tried a few things such as defining a newscale
for the axis and proving a list ofvalues
, or registering a newvega.expressionFunction
and calling it from alabelExpr
, without success. ThelabelExpr
is passed objects with scaled values. The information loss prevents me from easily retrieving the proper label.I am sure this can be done in vega/vega-lite as this sounds relatively trivial. However I could not figure it out by reading the docs or the examples.
Thanks!
The text was updated successfully, but these errors were encountered: