Skip to content

valueColor functions

Lan Dam requested to merge i69_valuecolor_newformat_displayformat into master

#69 (closed)

Function to convert value_color_str to new format

  • linesDots: L:G|D:G => Line:#00FF00|Dot:#00FF00
  • upDownDots: 0:R|1:G => Down:#FF0000|Up:#00FF00
  • multiColorDotsEqualOnUpperBound: 0:_|1:Y|2:G|+2:M => <=0:not plot|<=1:#FFFF00|<=2:#00FF00|2<:#FF00FF
  • multiColorDotsEqualOnLowerBound: 3:R|3.3:Y|=3.3:G => <3:#FF0000|<3.3:#FFFF00|=3.3:#00FF00
  • triColorLines: -1:M|0:R|1:G => -1:#FF00FF|0:#FF0000|1:#00FF00

Function to convert value_color_str in new format to html for display Ex: Line:#00FF00|Dot:#FF0000

=> <p>Line:<span style='color: #00FF00; font-size:25px;'>&#8718;</span>|Dot:<span style='color: #FF0000; font-size:25px;'>&#8718;</span></p>

which is displayed as: image

Edited by Lan Dam

Merge request reports

Loading