valueColor functions
1 unresolved thread
1 unresolved thread
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;'>∎</span>|Dot:<span style='color: #FF0000; font-size:25px;'>∎</span></p>
Edited by Lan Dam
Merge request reports
Activity
Filter activity
added 2 commits
assigned to @ldam
requested review from @kienle
1 from typing import Optional 2 3 from sohstationviewer.view.util.color import clr 4 5 from sohstationviewer.view.util.plot_func_names import plot_functions 6 7 8 def convert_value_color_str( 9 plot_type: str, old_value_color_str: Optional[str]) -> str: added 1 commit
- ab5ac413 - add test_none to test_convert_value_color_str
mentioned in commit 727a136c