Sign in to follow this  
bmcwhorter

Style align on caption not working for javascript renderer

Recommended Posts

Hi,

 

When I try to align the caption in a chart, it works fine in flash, but in javascript, the alignment does not get applied and it is always centered.  Is there some other parameter I need?  Here's an example:

 

 
-<graph enableRotation="1" showValues="1" smartLabelClearance="" enableSmartlabels="1" pieRadius="" plotFillAlpha="100" imageSaveURL="rdTemplate/rdAnimatedChart/FCExporter.aspx" imageSave="1" showBorder="0" chartBottomMargin="" chartTopMargin="" chartRightMargin="" chartLeftMargin="" numberPrefix="" showLabels="1" bgColor="ffffff" Caption="Sales By Category" animation="1" showFCMenuItem="0" unescapeLinks="0">-<styles>-<definition><style type="font" bold="0" color="5b5b5b" size="15" font="Helvetica" name="DataLabelsFontStyle"/><style type="font" bold="1" color="5b5b5b" size="24" font="Helvetica" name="CAPTIONFontStyle" align="left"/></definition>-<application><apply styles="DataLabelsFontStyle" toObject="DataLabels"/><apply styles="CAPTIONFontStyle" toObject="CAPTION"/></application></styles><set color="00558e" name="Beverages" hoverText="" value="103924.3100"/><set color="e54c25" name="Condiments" hoverText="" value="55368.6000"/><set color="84986b" name="Confections" hoverText="" value="82657.7300"/><set color="8f72aa" name="Dairy Products" hoverText="" value="115387.6500"/><set color="e59138" name="Grains/Cereals" hoverText="" value="56871.8200"/><set color="00558e" name="Meat/Poultry" hoverText="" value="80975.1200"/><set color="e54c25" name="Produce" hoverText="" value="54940.7600"/><set color="84986b" name="Seafood" hoverText="" value="66959.2100"/></graph>

Share this post


Link to post
Share on other sites

Hi,

 

The "align" attribute of the style tag for caption is not supported by JavaScript charts. As a workaround, you may try giving spaces after the caption so that it aligns to the left. But this requires giving multiple spaces after the caption to make it align to left.

 

Ref. <chart .. caption="Sales By Category  " >

 

Hope this helps.

Share this post


Link to post
Share on other sites

Hi,

 

That's actually not a workaround.  The number of spaces depends on the chart size and the caption size.  There is no way I can effectively do that.  Why do you support aligning the caption in flash but not javascript?

Share this post


Link to post
Share on other sites
Hi,

 

We have already included the capability of aligning the caption in JavaScript charts in the upcoming release. However, this feature is not present in the current version.We shall update this thread as soon as the new version is released. 

 

Hope this helps.  :)

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