Custom Color Range with OxyPlot ScatterPlot

Viewed 5108

I've been experimenting with implementing a scatter plot with oxyplot on top of my line series. Basically, I would love to color code some points on my scatter plot.

I already have the graph below created with a scatter plot and a line series:

enter image description here

The above point colors are created following tutorial here. Basically, I added a RangeColorAxis. The X-Axis from this graph ranges from 0 to 1 and creates the colors, as below:

        var customAxis = new RangeColorAxis { Key = "customColors" };
        customAxis.AddRange(0, 0.1, OxyColors.Red);
        customAxis.AddRange(0.1, 0.2, OxyColors.Yellow);
        customAxis.AddRange(0.2, 0.3, OxyColors.Green);
        customAxis.AddRange(0.3, 1, OxyColors.Orange);
        customAxis.AddRange(1, 1.1, OxyColors.Blue);
        OxyPlotModel.Axes.Add(customAxis);

But now, I would also like to add some color progression in the graph above. For example, from point 0.0 to 0.1, I would like color to progress from LightRed to DarkRed. From 0.1 to 0.2, I would like to transition from Light Yellow to Bright Yellow. From 0.2 to 0.3, I would like to transition from Light Green to Dark Green. And so on.

Is it possible to do this in Oxyplot? Thanks

1 Answers
Related