Hello
Title explains. Are there any way i can have my bar colours be colour red when value is > 300 ? JSON contains simple dashboard with chart and JSON data in inject node.
This is what i want to achive (here using UIbuilder with ApexCharts) :
[{"id":"fce77c1a380e8201","type":"inject","z":"a790de29c9431247","name":"Bar chart data as JSON","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"[{\"time\":\"04/16\",\"price\":386.12},{\"time\":\"01:00\",\"price\":206.71},{\"time\":\"02:00\",\"price\":77.27},{\"time\":\"03:00\",\"price\":63.79},{\"time\":\"04:00\",\"price\":207.99},{\"time\":\"05:00\",\"price\":420.86},{\"time\":\"06:00\",\"price\":569.36},{\"time\":\"07:00\",\"price\":619.21},{\"time\":\"08:00\",\"price\":685.79},{\"time\":\"09:00\",\"price\":654.88},{\"time\":\"10:00\",\"price\":604.8},{\"time\":\"11:00\",\"price\":536.24},{\"time\":\"12:00\",\"price\":499.18},{\"time\":\"13:00\",\"price\":492.32},{\"time\":\"14:00\",\"price\":502.08},{\"time\":\"15:00\",\"price\":563.9},{\"time\":\"16:00\",\"price\":600.38},{\"time\":\"17:00\",\"price\":639.08},{\"time\":\"18:00\",\"price\":671.96},{\"time\":\"19:00\",\"price\":663.48},{\"time\":\"20:00\",\"price\":659.76},{\"time\":\"21:00\",\"price\":659.06},{\"time\":\"22:00\",\"price\":630.25},{\"time\":\"23:00\",\"price\":608.28}]","payloadType":"json","x":260,"y":1360,"wires":[["c6624545f4820893"]]},{"id":"c6624545f4820893","type":"ui-chart","z":"a790de29c9431247","group":"e23512b61ee4b0a2","name":"Bar chart","label":"Green > 300. Red < 300","order":9007199254740991,"chartType":"bar","category":"time","categoryType":"property","xAxisProperty":"time","xAxisPropertyType":"msg","xAxisType":"category","yAxisProperty":"price","ymin":"","ymax":"","action":"replace","pointShape":"circle","pointRadius":"","showLegend":true,"removeOlder":1,"removeOlderUnit":"3600","removeOlderPoints":"","colors":["#20ac38","#20ac38","#20ac38","#20ac38","#20ac38","#20ac38","#20ac38","#20ac38","#20ac38"],"width":6,"height":8,"className":"","x":460,"y":1360,"wires":[[]]},{"id":"e23512b61ee4b0a2","type":"ui-group","name":"Node red forum chart","page":"22b5519aa675ad88","width":"6","height":"1","order":-1,"showTitle":true,"className":"","visible":"true","disabled":"false"},{"id":"22b5519aa675ad88","type":"ui-page","name":"Bar chart page","ui":"63a3a519fc98ff02","path":"/discourse","icon":"","layout":"grid","theme":"129e99574def90a3","order":-1,"className":"","visible":"true","disabled":"false"},{"id":"63a3a519fc98ff02","type":"ui-base","name":"UI Name","path":"/dashboard"},{"id":"129e99574def90a3","type":"ui-theme","name":"Another Theme","colors":{"surface":"#ffffff","primary":"#0094ce","bgPage":"#eeeeee","groupBg":"#ffffff","groupOutline":"#cccccc"}}]
This is what i have (all is in JSON. Using here Flowfuse Dashboard 2.0) :
BR