Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1735
How to use a Rainbow Gradient on the High Density Scatter Series?
posted

We are using the High Density Scatter Series. You can set 2 colors for this series, one for the higher density areas, a "Heat map".

We need to show more than 2 colors, we would like to use a Rainbow Gradient, using different ranges for each color.

For example, from 0 to 1000 use RED, from 1000 to 2000 Orange, from 2000 to 3000 Yellow, etc. And have a smooth interpolation from one color to the other using HSV, 

like this.

Does the Chart offer this capability? Or is there a way we could customize the way points are being colored right now?

Parents
  • 1400
    Offline posted

    Hello Dzyann,

    The High Density Scatter Series does not support more than 2 colors and if you would like to see this feature supported please submit product idea on this website:

    However, if you are planning to plot small number of data points (e.g. <1000) then you should use Bubble Series which supports all your requirements (including HSV interpolation for multiple color ranges) Here an sample of Bubble Series.

    Note that Bubble Series requires 3rd numeric data column (in addition to x/y values) to map to radius of bubbles but you can turn it off by setting the RadiusScale property to:

    BubbleSeries.RadiusScale.MinimumValue = 5;

    BubbleSeries.RadiusScale.MaximumValue = 5;

    This ways, you will get bubbles of the same size for all data points like in your screenshot. Let me know if you have more questions about Data Chart control. 

Reply Children