How to change default colors in the colorlegend

Posted by: captell on 3 August 2017, 4:04 pm EST

  • Posted 3 August 2017, 4:04 pm EST

    Hi there,
    Is it possible to change the default colours in the colour legend?

    Cheers.
    Adrian.
  • Replied 3 August 2017, 4:04 pm EST

    Thanks Ashish,
    A couple of follow ups.
    1. What about when the colour metric is not discrete, is there any way to set the three colours.
    2. For windows forms is there anyway to do it programmatically. I have an report that allows the user to choose an analysis metric, depending on what the metric is they choose I want the colour to run from red to green or from green to red. Ideally I want to be able to change this when the choose the metric (They do this outside of AA) so I might be able to change themes but ideally I would just change the colours of the legend.

    thanks.

    Adrian.
  • Replied 3 August 2017, 4:04 pm EST

    Just for clarification, I want to be able to ideally programmatically change the options represented by the attached dialog, if it can't be done programmatically then changes in the theme may suffice.

  • Replied 3 August 2017, 4:04 pm EST

    Hello Adrian,

    Unfortunately, there is no way to change the colors programmatically.

    Regards
  • Replied 3 August 2017, 4:04 pm EST

    Is there anyway to set it up in the theme, the defaults of red for low values and blue for high values doesn't really work for me, most of my data is percentages and I need to highlight when they are high.

    Can the ability to programmatically change the colours be added to the development list please.

    Adrian.
  • Replied 3 August 2017, 4:04 pm EST

    Hello Adrain,

    You can change the palette and can refer to the following link describing the same :
    http://helpcentral.componentone.com/nethelp/ActiveAnalysis2WebHelp/webframe.html#Color.html

    Else, you can specify default colors in Theme.

    Win:
    <Theme>
    ...
    <DiscreteLegendColors>
    #0066ff;#ff6600
    </DiscreteLegendColors>
    ...
    </Theme>


    Web:

    Analysis.ThemeSet.theme_Custom = {
    ...
    DiscreteLegendColors: ['#FF8080', '#20FF20']
    ...
    };


    Silverlight:
    <AA:Theme DisplayName="Black" ...>
    ....
    <AA:Theme.DiscreteLegendColors>
    <AA:LegendColor Color="#9c5353" />
    <AA:LegendColor Color="#4F81BD" />
    </AA:Theme.DiscreteLegendColors>
    ...
    </AA:Theme>


    Regards
  • Replied 3 August 2017, 4:04 pm EST

    Hello Adrian,

    I have posted it an enhancement request(175050) to the development team for review.

    Regards
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels