Giter Site home page Giter Site logo

plotly-panel example about ae3e-plotly-panel HOT 7 OPEN

ae3e avatar ae3e commented on August 13, 2024
plotly-panel example

from ae3e-plotly-panel.

Comments (7)

ae3e avatar ae3e commented on August 13, 2024 3

Unfortunatly, the last published version of Plotly panel on Grafana Plugin Repository is not compliant with Grafana 7.2.
You have to install manually v0.3.1.

I also did a pull request to publish this latest version but it has to be approuved and merged by the Grafana Team.

from ae3e-plotly-panel.

mertbakir avatar mertbakir commented on August 13, 2024 2

I can confirm that 0.3.1 works fine with 7.3.1.

from ae3e-plotly-panel.

jcrumley avatar jcrumley commented on August 13, 2024 1

Please keep in mind I have only hacked together a simple proof of concept but it was around a Candlestick. The time scale is not changing with the time picker but I think that is unrelated to the information below. This is either from the defaults when the panel is added or modifications from the Plotly javascript candlestick. To figure out the "script" section, it may be help to "inspect" the panel, look at the Panel JavaScript, and then look at the "Data Javascript" to see the structure of the data.

In the Plotly Panel "data" section I have...
[
{
"line": {
"color": "red",
"width": 2
},
"type": "candlestick"
}
]

In the Plotly Panel "layout" section I have...
{
"font": {
"color": "darkgrey"
},
"paper_bgcolor": "rgba(0,0,0,0)",
"plot_bgcolor": "rgba(0,0,0,0)",
"margin": {
"t": 30,
"b": 20
},
"xaxis": {
"type": "date",
"rangeslider": {
"visible": false
}
}
}

In the Plotly Panel "data" section I have...
{
"font": {
"color": "darkgrey"
},
"paper_bgcolor": "rgba(0,0,0,0)",
"plot_bgcolor": "rgba(0,0,0,0)",
"margin": {
"t": 30,
"b": 20
},
"xaxis": {
"type": "date",
"rangeslider": {
"visible": false
}
}
}

In the Plotly Panel "configuration" section I have...
{
"displayModeBar": false
}

In the "Script" section I have...
console.log(data)
r trace5 = {
x: data.series[0].fields[0].values.buffer,
close: data.series[0].fields[1].values.buffer,
high: data.series[1].fields[1].values.buffer,
low: data.series[2].fields[1].values.buffer,
open: data.series[3].fields[1].values.buffer
};

return {data:[trace5],layout:{title:'Fred2 Chart'}};

from ae3e-plotly-panel.

oholimoli avatar oholimoli commented on August 13, 2024

I hope your pull request will be accepted soon. Will it than also work for Grafana 7.3.1?

from ae3e-plotly-panel.

ae3e avatar ae3e commented on August 13, 2024

Not tested yet but it's on the task list..

from ae3e-plotly-panel.

ae3e avatar ae3e commented on August 13, 2024

Thanks for reporting this !

from ae3e-plotly-panel.

AntiTenzor avatar AntiTenzor commented on August 13, 2024

Is it possible to display CandleStick charts (aka OHLCV candles)?
Could you please provide an example how to do this?
How much would you like to get for this feature?
(Currently I use Grafana v7.5.5 )

from ae3e-plotly-panel.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.