[DevExpress Support Team: CLONED FROM T293316: Dashboard Choropleth Map does not update colors on build]
I am currently working on a Choropleth map for a dashboard I am creating.
In the dashboard designer, I changed the Map's Value colors to 0=blue, 1=green, 2=yellow, and 3=red.
However, when I build the project, all of the colors were being displayed incorrectly. For example, if a State's value was 1, it should have been colored in green, however it was instead coloring in the state blue.
Below is the code for my map for the colors:
C#customPalette1.Colors.Add(System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255))))));
customPalette1.Colors.Add(System.Drawing.Color.FromArgb(((int)(((byte)(76)))), ((int)(((byte)(175)))), ((int)(((byte)(80))))));
customPalette1.Colors.Add(System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(235)))), ((int)(((byte)(59))))));
customPalette1.Colors.Add(System.Drawing.Color.FromArgb(((int)(((byte)(244)))), ((int)(((byte)(67)))), ((int)(((byte)(54))))));
valueMap1.Palette = customPalette1;
customScale1.IsPercent = false;
customScale1.RangeStops.Add(0D);
customScale1.RangeStops.Add(1D);
customScale1.RangeStops.Add(2D);
customScale1.RangeStops.Add(3D);
However, as I said when a State has a given value, it seems to subtract 1 and present that color instead (i.e: State value = 3, color should be red - however it displays Yellow).
Any help or guidance would be greatly appreciated.
-Patrick