-
Notifications
You must be signed in to change notification settings - Fork 58
Add bar chart plotting and creating traces from data #81
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
base: master
Are you sure you want to change the base?
Conversation
…r stacked. More remains to be done, but this gets us started.
Set the bar marker config to a separate config object. When preparing a trace, make sure we just use trace items appropriate to the graph type. This fixes config confusion where scatter config was leaking into bars meaning, for example, that one had to set the scatter colour to solid to get the bar drawing and avoid errors due to a lookup being done on the value for the ramp colour that is the scatter default.
I guess we really should be somehow measuring the x and y tick label size and using that in the calculation. For now, though...
When autotrace is selected, input must be 3 columns in table mode, each containing trace name, x and y. Automatically generate a trace for each distinct trace name.
For autotrace, this is the order in which traces are created from the data, which in turn is the order in the data. For manual traces, this is the order of the traces.
…t or lasso. You will most end up treating non-time data as timestamps, with hilarious results.
This looks good -- I will try to give it some attention this week |
Tried it out, looks great. Will it be pulled into the master? |
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 |
Hi! Any update on this PR, I'd be awesome to have it. |
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. |
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. Registering the plugin works in Grafana, but if I like to create a new Plotly panel, then Grafana reports "Dashboard init failed Used Grafana version v6.5.1 (1763a0f) Anybody with the same issue? |
Make sure that it won't get overwritten by future updates from upstream.
88ec035
to
45da4cd
Compare
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.) |
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.