Sign in to follow this  
bmcwhorter

background color of legend in multi series charts

Recommended Posts

Hi,

 

Is it possible to set the background color of the legend?  It seems that it is always white no matter what and does not work well when I use a black background.

 

<?xml version="1.0" encoding="UTF-8"?>
<graph divLineThickness="4" anchorAlpha="0" plotGradientColor="" plotBorderColor="e88622" alternateVGridColor="0f0f0f" alternateHGridColor="0f0f0f" plotFillAlpha="100" plotFillColor="e88622" canvasPadding="0" lineDashed="0" useRoundEdges="0" rotateValues="1" showValues="0" canvasBgColor="0f0f0f" rotateLabels="1" showPlotBorder="1" xaxisname="Month" yaxisname="Sales" bgAlpha="100" imageSaveURL="rdTemplate/rdAnimatedChart/FCExporter.aspx" imageSave="1" toolTipBgColor="0f0f0f" showBorder="0" chartBottomMargin="" chartTopMargin="" chartRightMargin="" chartLeftMargin="" numberPrefix="" showLabels="1" bgColor="0f0f0f" Caption="" animation="1" showFCMenuItem="0" unescapeLinks="0">
<styles>
<definition><style type="font" bold="0" color="000000" size="15" font="Helvetica" name="ToolTipFontStyle"/><style type="font" bold="0" color="ffffff" size="15" font="Helvetica" name="DataLabelsFontStyle"/><style type="font" bold="0" color="ffffff" size="15" font="Helvetica" name="XAXISNAMEFontStyle"/><style type="font" bold="1" color="ffffff" size="24" font="Helvetica" name="CAPTIONFontStyle"/><style type="font" bold="0" color="ffffff" size="15" font="Helvetica" name="YAXISVALUESFontStyle"/><style type="font" bold="0" color="ffffff" size="15" font="Helvetica" name="YAXISNAMEFontStyle"/><style type="font" bold="0" color="ffffff" size="15" font="Helvetica" name="DATAVALUESFontStyle"/><style type="font" bold="0" color="000000" size="15" font="Helvetica" name="LegendFontStyle"/></definition>
<application><apply styles="ToolTipFontStyle" toObject="ToolTip"/><apply styles="DataLabelsFontStyle" toObject="DataLabels"/><apply styles="XAXISNAMEFontStyle" toObject="XAXISNAME"/><apply styles="CAPTIONFontStyle" toObject="CAPTION"/><apply styles="YAXISVALUESFontStyle" toObject="YAXISVALUES"/><apply styles="YAXISNAMEFontStyle" toObject="YAXISNAME"/><apply styles="DATAVALUESFontStyle" toObject="DATAVALUES"/><apply styles="LegendFontStyle" toObject="Legend"/></application></styles>
<categories><category name="Jan 2012"/><category name="Feb 2012"/><category name="Mar 2012"/><category name="Apr 2012"/><category name="May 2012"/><category name="Jun 2012"/><category name="Jul 2012"/><category name="Aug 2012"/><category name="Sep 2012"/><category name="Oct 2012"/><category name="Nov 2012"/><category name="Dec 2012"/></categories>
<dataset plotBorderColor="e88622" showValues="0" color="e88622" alpha="100" seriesName="asdf"><set toolText="" value="35090.61"/><set toolText="" value="9823.34"/><set toolText="" value="23438.26"/><set toolText="" value="10420.74"/><set toolText="" value="36433.73"/><set toolText="" value="18499.6"/><set toolText="" value="18430.1"/><set toolText="" value="29912.59"/><set toolText="" value="20038.44"/><set toolText="" value="47956.35"/><set toolText="" value="11071.8"/><set toolText="" value="29911.10"/></dataset>
<dataset plotBorderColor="28b8d5" showValues="0" color="28b8d5" alpha="100" seriesName="" lineThickness="3.5"><set value="7018.122"/><set value="1964.668"/><set value="4687.652"/><set value="2084.148"/><set value="7286.746"/><set value="3699.92"/><set value="3686.02"/><set value="5982.518"/><set value="4007.688"/><set value="9591.27"/><set value="2214.36"/><set value="5982.220"/></dataset><trendlines/></graph>post-44684-0-59694500-1380823276_thumb.png

Share this post


Link to post
Share on other sites

Hi,

 

Please try using the attribute "legendBgColor" and set it to '000000'. Change the color of "LegendFontStyle" to 'FFFFFF'.

 

Ref. <chart .. legendBgColor='000000' >

 

Please find the attached screenshot.

post-37797-0-34773400-1380889217_thumb.png

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this