Please Note This forum exists for community support for the Mango product family and the Radix IoT Platform. Although Radix IoT employees participate in this forum from time to time, there is no guarantee of a response to anything posted here, nor can Radix IoT, LLC guarantee the accuracy of any information expressed or conveyed. Specific project questions from customers with active support contracts are asked to send requests to support@radixiot.com.
Set min and max border lines on graph
-
Hi I've got two virtual data points that are set to state the minimum and maximum values that a datapoint's value should be between. This is fine except for the fact that I wish to be able to illustrate this on a graph also.
Has anyone done this or have any advice on how this can be implemented?Thanks
Fox
-
Are you talking about graphs on a custom page on the new UI?
-
@jared-wiltshire Yes sorry for not explaining myself in a more concise manner. Basically, taking the latest datapoint from the virtual source and setting this as a horizontal line across the amchart graph. Hope that makes sense
Fox
-
@MattFox No worries. You can set the guides option for the chart.
options="{guides: [{fillAlpha: 0, value: pointA.value, lineColor: 'red', lineAlpha:0.5 }, {fillAlpha: 0, value: pointB.value, lineColor: 'blue', lineAlpha:0.5 }]}"
-
Never even thought of trying a guide! Thanks Jared I'll give it a go. Will let you know how it turns out.
-
Worked beautifully, thanks Jared!
added the guide inside the first valueAxes object to assign them to the correct axis.