Hi, all. I wonder if I can create a json file to specify my requirement in plotly. This is my layout:
{
"font": {
"family": "Open Sans",
"size": 14,
"color": "#555"
},
"autosize": true,
"hovermode": "closest",
"hoverlabel": {
"bgcolor": "#888",
"bordercolor": "#888",
"font": {
"color": "#FFF"
}
},
"margin": {
"l": 60,
"r": 60,
"b": 60,
"t": 35,
"pad": 10
},
"xaxis": {
"zeroline": true,
"fixedrange": true,
"gridcolor": "#d7d7d7",
"zerolinecolor": "#d7d7d7",
"rangeslider": {
"visible": false
},
"showgrid": false,
"title": "Time"
},
"yaxis": {
"fixedrange": true,
"gridcolor": "#d7d7d7",
"zeroline": true,
"zerolinecolor": "#d7d7d7",
"rangemode": "normal",
"title": "dose/PH",
"showgrid": true
},
"showlegend": true
}
this is my datapoint:
{
"connectgaps": true,
"hoverinfo": "none",
"hoveron": "points",
"line": {
"color": "rgba(5, 149, 219, 1)",
"shape": "linear"
},
"mode": "lines+markers",
"name": "PH",
"type": "scatter",
"fill": "none",
"marker": {}
}
I want my datapoint or the series be red, if the PH value is larger than 8, meanwhile, be yellow if smaller then 6
Thanks in advanced
Andes