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 currently using uPlot to draw plots with custom markers, e.g. triangles, squares, stars etc, like done in this demo.
It would be useful for users to see these markers in the legend.
If I'm not missing something, it seems the current uPlot api does not allow setting a canvas Path in the legend and relies primarily on CSS for styling the legend markers.
Would it be possible to add something like this to the API?
Alternatives I'm aware of:
maintaining my own legend div (like Grafana)
setting the u-marker div once uPlot has finished drawing
using emoji shapes in the u-label div
drawing these markers using CSS
These options all seem like (possibly hacky) workarounds.
Are there any other reasonable options?
The text was updated successfully, but these errors were encountered:
Thanks for the great library :)
I'm currently using uPlot to draw plots with custom markers, e.g. triangles, squares, stars etc, like done in this demo.
It would be useful for users to see these markers in the legend.
If I'm not missing something, it seems the current uPlot api does not allow setting a canvas Path in the legend and relies primarily on CSS for styling the legend markers.
Would it be possible to add something like this to the API?
Alternatives I'm aware of:
These options all seem like (possibly hacky) workarounds.
Are there any other reasonable options?
The text was updated successfully, but these errors were encountered: