Select to view content in your preferred language

Chart Widget Color Question

614
5
04-04-2011 01:31 PM
AlexSanders
Frequent Contributor
Does anyone know how to change the color of the pop up window that appears when you mouse over a field from black to another color.  My text is a darker grey and it blends in with the black.

Alex Sanders
Texas General Land Office
Tags (2)
0 Kudos
5 Replies
MehulChoksey
Esri Contributor
try adding following in UIManager.as
if (numberOfStyleColors > 4)
        {
            var cssStyleDeclarationChartDataTips:CSSStyleDeclaration = new CSSStyleDeclaration();
            cssStyleDeclarationChartDataTips.setStyle("backgroundColor", backgroundColor);
            topLevelStyleManager.setStyleDeclaration("mx.charts.chartClasses.DataTip", cssStyleDeclarationChartDataTips, false);
        }


before this line:

 var cssStyleDeclarationModal:CSSStyleDeclaration = topLevelStyleManager.getStyleDeclaration("global")
0 Kudos
AlexSanders
Frequent Contributor
Mehul,

That worked perfectly, thank you for your help.

Alex Sanders
0 Kudos
MattiasEkström
Frequent Contributor
I Have the same problem, but the solution doesn't work for me. Using the suggested code results in an error:
1120: Access of undefined property numberOfStyleColors.
I'm currently still in Flexviewer 2.1, maybe that's the reason?
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Mattias,

  That is your issue. Try this if statement instead.

if (configData.styleColors.length > 4)
0 Kudos
MattiasEkström
Frequent Contributor
Thanks, that worked for me.
0 Kudos