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.