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 was archived by the owner on Jun 26, 2023. It is now read-only.
We love Grafonnet and use it a lot - thanks for making it. Recently I stumbled across some weird behaviour with table-panels.
What happened:
When using 'tablePanel.new(...)' and not passing styles as props, leaving it to the default value '[]' makes the table render differently after importing to Grafana. Upon inspection of the panel JSON in Grafana I see that the type is set to "table-old", which means it will not render data links and no lines between the cells (completely white background).
Will after compiling and importing to Grafana produce panel json type: "type": "table-old"
What you expected to happen:
I expected the type to be set to "type": "table". Which means it will render with lines between cells, and data links work.
Potential fix
If I pass styles=null in the tablePanel.new(..) params the type is set to "type": "table" after compiling and importing in Grafana. Perhaps defaulting to styles = null instead of styles = [] could be potential fix?
Anything else we need to know?:
This was done in Grafana 7.0.3.
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
Hi!
We love Grafonnet and use it a lot - thanks for making it. Recently I stumbled across some weird behaviour with table-panels.
What happened:
When using 'tablePanel.new(...)' and not passing styles as props, leaving it to the default value '[]' makes the table render differently after importing to Grafana. Upon inspection of the panel JSON in Grafana I see that the type is set to "table-old", which means it will not render data links and no lines between the cells (completely white background).
Example:
Will after compiling and importing to Grafana produce panel json
type: "type": "table-old"
What you expected to happen:
I expected the type to be set to
"type": "table"
. Which means it will render with lines between cells, and data links work.Potential fix
If I pass
styles=null
in thetablePanel.new(..)
params the type is set to"type": "table"
after compiling and importing in Grafana. Perhaps defaulting tostyles = null
instead ofstyles = []
could be potential fix?Anything else we need to know?:
This was done in Grafana 7.0.3.
The text was updated successfully, but these errors were encountered: