Bug Report T293745
Visible to All Users

Web - Choropleth Map colors are displayed incorrectly

created 9 years ago

[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

Answers approved by DevExpress Support

created 9 years ago (modified 9 years ago)

We have fixed the issue described in this ticket and will include the fix in our next maintenance update. To apply this solution before the official update, request a hotfix by clicking the corresponding link for product versions you require.

Note: Hotfixes may be unavailable for beta versions and updates that are about to be released.

    Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

    Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.