I now have a load of charts each with multiple measures. I can't be bothered to set up formulas and states for each and every measure so came up with this script to go on chart data change.
Might be of some use to someone. (Is there any way to paste in preformatted code here?)
this.control.series.forEach(function(ds){
//get points
var points = ds.getPoints();
//get max & min
var max = Math.max.apply(Math, points.map(function (i){ return i.yValues[0];}));
var min = Math.min.apply(Math, points.map(function (i){return i.yValues[0];}));
points.forEach(function (dp)
{
if (dp.yValues[0] === min)
{
dp.markerShape = dundas.controls.MarkerShape.TRIANGLEDOWN;
dp.markerWidth = 20;
dp.markerHeight = 20;
dp.markerFill = new dundas.controls.SolidColorBrush("#FFFD7777");
dp.markerStroke = dp.series.fill;
}
else if (dp.yValues[0] === max)
{
dp.markerShape = dundas.controls.MarkerShape.TRIANGLEUP;
dp.markerWidth = 20;
dp.markerHeight = 20;
dp.markerFill = new dundas.controls.SolidColorBrush("#FF00E400");
dp.markerStroke = dp.series.fill;
}
else //just normal
{
dp.markerShape = dundas.controls.MarkerShape.ELLIPSE;
dp.markerWidth = 10;
dp.markerHeight = 10;
dp.markerFill = dp.series.fill;
dp.markerStroke = null;
}
}
);
})