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
{{ message }}
This repository has been archived by the owner on Jun 26, 2023. It is now read-only.
In the generated code the graph panel has no obvious option to set the unit, as setFieldConfig is not there and trying to solve this another way did not get me what I wanted due to missing documentation how to set an axis for series with a unit configured...
In the end I just copied the setFieldConfig method from the stat panel (panel/stat.libsonnet) in 7.0 into the panel/graph.libsonnet file and it simply produces the necessary output.
As this is generated code I don't think providing a PR is of any use in this case.
The text was updated successfully, but these errors were encountered:
The source is in github.com/grafana/dashboard spec. You can make PRs there.
That codebase stimulated the development of a proper schema, managed by the Grafana team themselves. It'll take a while though, as there is a lot of catchup to do. Then it'll be possible to make a generator from that.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
In the generated code the graph panel has no obvious option to set the unit, as setFieldConfig is not there and trying to solve this another way did not get me what I wanted due to missing documentation how to set an axis for series with a unit configured...
In the end I just copied the setFieldConfig method from the stat panel (panel/stat.libsonnet) in 7.0 into the panel/graph.libsonnet file and it simply produces the necessary output.
As this is generated code I don't think providing a PR is of any use in this case.
The text was updated successfully, but these errors were encountered: