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

Feat: Docs clarification on Long/Wide Formats #880

Open
1 of 6 tasks
sarahzinger opened this issue Apr 16, 2024 · 2 comments
Open
1 of 6 tasks

Feat: Docs clarification on Long/Wide Formats #880

sarahzinger opened this issue Apr 16, 2024 · 2 comments
Assignees
Labels
enhancement New feature or request type/docs Changes only affect the documentation

Comments

@sarahzinger
Copy link
Member

sarahzinger commented Apr 16, 2024

Which areas does this feature request relate to

  • Create Plugin
  • Sign Plugin
  • Plugin E2E
  • Documentation

Problem

I'm working on a datasource and reading through the long vs wide data frame section and find myself a bit confused by this line:

"Grafana can detect and convert data frames in long format into wide format."

This doesn't happen automatically right? My understanding is that grafana offers some helper functions to make this easier, perhaps we could add docs for that? Or does the timeseries visualization always convert dataframes to wide?

I think it'd also be good to mention here that if developers want to their dataframes to support alerting they need to use wide dataframes

Solution

Maybe link to the wideToLong and longToWide functions? https://github.com/grafana/grafana-plugin-sdk-go/blob/main/data/time_series.go#L210

Alternatives

No response

Additional context

No response

Are you interested in contributing the solution?

  • Yes
  • No
@sarahzinger sarahzinger added the enhancement New feature or request label Apr 16, 2024
@tolzhabayev tolzhabayev added the type/docs Changes only affect the documentation label Apr 19, 2024
@derek-cadzow
Copy link

@josmperez please have a look and unassign if you are unable to fix this one. Thanks!

@josmperez
Copy link
Contributor

Thanks for pointing this out. I'll take a look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request type/docs Changes only affect the documentation
Projects
Status: 💡 Ideation
Development

No branches or pull requests

4 participants