bobotime

Styles Caption And Subcaption

Recommended Posts

Hello guys,

how do I apply styles for caption and subcaption with this code?

I tried the code block after the comment, but does not work.

 

10ks :)

 

 

 

$strXML = "<chart caption='".$TitleCaption."'  subCaption='".$TitleSubCaption."' showBorder='1' outCnvBaseFont='Verdana' outCnvBaseFontSize='9' BaseFont='Arial'  BaseFontSize='9' formatNumberScale='0' animation=' " . $animateChart . "' borderColor='CCCCCC' bgColor='EEEEEE'>";

$query= "SELECT var, var1 FROM table";
$result=mysql_query($query) or die("Query fallita".mysql_error()." ".$query);
while($ors = mysql_fetch_array($result)){		
$strXML .= "<set label='" . $ors['var'] . "' value='" . $ors['var1'] . "' />";
}

######################## styles for Caption and SubCaption ################################################
$strXML .= "<styles>
     <definition>
           <style name='MyFirstFontStyle' type='font' face='Verdana' size='12' color='FF0000' bold='1' bgColor='FFFFDD' />
           <style name='MyFirstAnimationStyle' type='animation' param='_xScale' start='0' duration='2' />
           <style name='MyFirstShadow' type='Shadow' color='CCCCCC' />
     </definition>
     <application>
           <apply toObject='Caption' styles='MyFirstFontStyle,MyFirstShadow' />
           <apply toObject='Canvas' styles='MyFirstAnimationStyle' />
           <apply toObject='DataPlot' styles='MyFirstShadow' />
</application>    
</styles>";
####################################################################################################

$strXML .= "</chart>";

echo renderChart("charts/swf/Column3D.swf", "", $strXML, "chart_one", 900, 350, false, false,true);

Share this post


Link to post
Share on other sites
Guest Angshu

Hi,

 

Welcome to FusionCharts Forum!smile.gif

 

Please find the sample file attached for your reference.

 

Hope this helps.smile.gif

Style.php

Share this post


Link to post
Share on other sites
Guest Angshu

Hi,

 

You are always welcome.smile.gif

 

Keep smiling and keep FusionCharting!biggrin.gif

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