NatelEnergy / grafana-plotly-panel

Show plotly graph in grafana panel
MIT License
145 stars 58 forks source link

Add bar chart plotting and creating traces from data #81

Open banburybill opened 4 years ago

banburybill commented 4 years ago

I've been looking for an easy way to draw bar charts in Grafana. Since Plotly can do bar charts, I figured adding bar charts to the chart types supported by your rather handy plugin might be good way ahead.

In the process I also ran into a requirement for bar charts where the number of traces depended on the data (e.g. charting the number of each different type of QTYPE in a set of DNS data). So I've also added what I've called 'autotrace' mode. For this, the input data must be 3 columns, respectively trace name, X, Y. A trace is created for each distinct trace name.

ryantxu commented 4 years ago

This looks good -- I will try to give it some attention this week

amychod commented 4 years ago

Tried it out, looks great. Will it be pulled into the master?

banburybill commented 4 years ago

Any thoughts on this PR?

We're close to using it in production here. We did have issues with Plotly panels showing red triangle warnings, but updating to Grafana 6.5.2 and the recent renderingCompleted() fix has made all those go away.

jcerrada commented 4 years ago

Hi! Any update on this PR, I'd be awesome to have it.

mariush2 commented 4 years ago

Hi! Any chance of this getting implemented any time soon? Just started using Plotly and really miss having this feature to create bar charts with table data.

matawed commented 4 years ago

Tried to package this PR by following https://github.com/NatelEnergy/grafana-plotly-panel#building and https://github.com/NatelEnergy/grafana-plotly-panel#releasing on my fork. I would like to check the panel on my local Grafana test setup, but I failed. Package can be found on https://github.com/matawed/grafana-plotly-panel/releases/tag/v0.0.13

Registering the plugin works in Grafana, but if I like to create a new Plotly panel, then Grafana reports

"Dashboard init failed t.onAppEvent is not a function`

Used Grafana version v6.5.1 (1763a0f)

Anybody with the same issue?

xkilian commented 3 years ago

The plugin is broken in newer versions of Grafana. I think @ryantxu has dropped support for it pretty much. Maybe, transferring maintainership of the plugin to someone else might be a good idea so that the plugin can be modernized (dataframes, compatibility, new features, etc.)