Comments (2)
There's 2 ways to do it :
- Update the data field which contains an array. So you can set properties for each serie :
[
{
"type": "scatter",
"mode": "markers",
"line": {
"color": "red",
"width": 2
}
},
{
"type": "scatter",
"mode": "lines",
"line": {
"color": "blue",
"width": 2
}
},
]
- Update your script :
let x1 = data.series[0].fields[1].values.buffer
let y1 = data.series[1].fields[1].values.buffer
let serie1 = {
x : x1,
y : y1,
name : 'M1',
mode : 'markers',
line : {
color : 'red'
}
}
let x2 = data.series[2].fields[1].values.buffer
let y2 = data.series[3].fields[1].values.buffer
let serie2 = {
x : x2,
y : y2,
name : 'M2',
mode : 'lines',
line : {
color : 'blue'
}
}
Hope it helps
from ae3e-plotly-panel.
Thank you very much, that's exactly what I need !
from ae3e-plotly-panel.
Related Issues (20)
- Autoscale plot to fit the panel HOT 1
- Support for Grafana 8 HOT 4
- Click Script gives error and not updating variables HOT 6
- installation broken HOT 1
- Changing timerange or refreshing prompts browser for saving changes when closing dashboard HOT 2
- Just a shout out
- Using Grafana graph-hover to modify input data to graph
- Cannot read properties of undefined (reading 'text') - Grafana 8.0+ - Plotly - Elasticsearch HOT 1
- Sunburst on-click marker expansion not working
- shared_xaxes
- Error when using ad-hoc filters
- JS Library Import HOT 2
- Add maintainer HOT 1
- Grafana Version 7.2
- Support for Localization? HOT 2
- Render plot inside custom div
- [Announcement 📣] Updated fork of project - check link inside!
- -- apologies - deleled comment --
- Is possible to do animation map method?
- Timezone selected in the Grafana time picker dropdown UI is not taken into consideration
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ae3e-plotly-panel.