In the Reporting module >, Timeseries chart >, jfree chart scripting, I am trying to change the series color based on a setpoint(s). I could say the script that I use, work to some extent but not quite to the point, it is working as I expected.
For example, my setpoint is at 73, and I need the series color to be RED when values are below the setpoint and BLUE when it is above setpoint.
What is happening at the moment with this script that I use is that values that drop from above setpoint to below setpoint (example 78 to 65) will have a red line drawn all the way (from 78 to 65) as the new value 65 is below the setpoint. This is happening vice versa as well. (from below setpoint to above setpoint).
Let me know if you guys have any suggestions or examples that I could try.