Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trend: Support log x and custom y scales, support for exemplars with x != time #89855

Open
leeoniya opened this issue Jun 27, 2024 · 0 comments
Labels
area/panel/trend area/panel/xychart internal for issues made by grafanistas type/epic Issue made of smaller issues type/feature-request

Comments

@leeoniya
Copy link
Contributor

leeoniya commented Jun 27, 2024

we'd like have Trend and/or XY panel better support reliability analysis, which means Weibull probability plots that have axes scales that are log(x) and log(-log(1-y)).

https://reliability.readthedocs.io/en/latest/Probability%20plots.html

image

i added support to uPlot for custom scales: https://leeoniya.github.io/uPlot/demos/custom-scales.html

image

however, we still need to do some work in Trend panel:

  • Fix support for log(x) scales on the x axis
  • Add support for either custom y scales (tricky, poor UX), or specifically for Weibull plots (probably behind a feature flag due to niche use case?)
  • Handle exemplar dataframes that don't have Time for x axis. this would likely require exposing a configuration which allows selecting which fields of the examplar frame should be used for x and for y.

Alternatively, we can instead support this using XYChart, which can support arbitrary x/y data points without relying on a special Exemplars frame coming through panelData.annotations. a big benefit here is that we won't have to add exemplar-related customization options to Trend, since XYChart already allows mapping of arbitrary x and y fields for each series. however, XYChart does not currently have "fillBelowTo" support for rendering band shading, and generally has a much more limited set of options for sequential/aligned data compared to Trend. ultimately it may be less effort to add series fill and fillBelowTo options to xy,

@leeoniya leeoniya added type/feature-request type/epic Issue made of smaller issues area/panel/xychart internal for issues made by grafanistas area/panel/trend labels Jun 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/panel/trend area/panel/xychart internal for issues made by grafanistas type/epic Issue made of smaller issues type/feature-request
Projects
None yet
Development

No branches or pull requests

1 participant