Closed selvavm closed 4 months ago
hey @selvavm ,
grafana does not use uPlot's legend, it creates its own from the dataframe fields and is rendered by the panel code into VizLayout container.
you may want to do the same thing if you want similar behavior and styling. example:
you could instead try to figure out how to portal uPlot's legend into the VizLayout legend area by using the uPlot's legend.mount
callback option and moving the uPlot legend into that portal. u can also restyle uPlot's legend using CSS. all the elements are class-tagged.
Hi,
I came to know recently while digging in Grafana source code about uplot and it is blazing fast. Thanks for the contribution.
I am creating a new grafana panel similar to XYChart but with sync enabled. I was not sure how to override the original XYChart so I am using
uplot-react
Below is my options,
I wanted to have tooltip similar to Grafana so I tried the cursor-tooltip but it does not show the pop-up.
Anyway, I settled with showing the legends as a scrollable table as seen in Grafana. How can I acheive it? Also, I want the font to be smaller (Grafana style) such that there is more space for the chart. How can I achieve this?