Skip to content

How does my XY Chart look? #85

Answered by Duologic
esnible asked this question in Q&A
Jul 6, 2023 · 2 comments · 3 replies
Discussion options

You must be logged in to vote

I was unable to define my data source with type safety. I had hoped to both create and use the data source but failed.

Jsonnet is a dynamic language, by default it does not provide type safety.

However, I've been looking into parameter validation a little while ago, it would allow us to validate the input of the functions against the JSON schema. This is promising but very early and immature, I plan to test it in smaller projects first. There is no timeline to implement this in Grafonnet.

I found many TODOs in https://github.com/grafana/grafonnet/blob/main/docs/API/panel/xyChart/index.md which made it hard to understand parameter types.

The docstrings are coming from the upstream sche…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by esnible
Comment options

You must be logged in to vote
3 replies
@Duologic
Comment options

@Duologic
Comment options

@Duologic
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants