Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
File Manager
/
PC-20260403043447
/
PHPClassAPI
:
Adv_chart.html
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?xml version="1.0" encoding="iso-8859-1"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>FusionCharts Free Documentation</title> <link rel="stylesheet" type="text/css" href="../Style.css"> </head> <body> <table width="98%" border="0" cellspacing="0" cellpadding="3" align="center"> <tr> <td><h2 class="pageHeader">FusionCharts PHP Class API > Advanced Usage > Chart Attributes </h2></td> </tr> <tr> <td valign="top" class="text">FusionCharts PHP Class API lets you configure a chart by providing various chart attributes.</td> </tr> <tr> <td valign="top" class="text"><p>All chart attributes are provided using either of the 2 functions - <span class="codeInline">setChartParam </span>or <span class="codeInline">setChartParams. </span></p> <ul> <li><span class="codeInline"><strong>setChartParam </strong></span><span class="text">adds a single attribute, while</span></li> <li><span class="codeInline"><strong>setChartParams </strong></span><span class="text">provides a list of chart attributes separated by delimiter (default delimiter is ;). </span><span class="codeInline"><br /> </span></li> </ul></td> </tr> <tr> <td valign="top" class="text"> </td> </tr> <tr> <td valign="top" class="header">Using<strong> setChartParam</strong></td> </tr> <tr> <td valign="top" class="text">We can use <strong>setChartParam</strong> to set a single chart attribute. We will pass the attribute name and its value as two string parameters. For example, to add <span class="codeInline">caption</span> and <span class="codeInline">subCaption </span> attributes, we will do this: </td> </tr> <tr> <td valign="top" class="codeBlock">$FC->setChartParam("caption","Monthly Sales");<br /> $FC->setChartParam("subCaption","July");</td> </tr> <tr> <td valign="top" class="text"> </td> </tr> <tr> <td valign="top" class="header">Using<strong> setChartParams</strong></td> </tr> <tr> <td valign="top" class="text">We can use <strong>setChartParams</strong> to set any number of chart attributes. The attributes and corresponding values are to be put in a string list, each attribute separated by the delimiter (default is ;). For example, to add <span class="codeInline">caption</span> and <span class="codeInline">subCaption </span> attributes we will do this: </td> </tr> <tr> <td valign="top" class="codeBlock">$FC->setChartParams("caption=Monthly Sales;subCaption=July");</td> </tr> <tr> <td valign="top" class="text"> </td> </tr> <tr> <td valign="top" class="text">Using any of the above two functions you can provide various chart attributes as listed under <span class="codeInline"><chart></span> element in each Chart's page in <span class="text"><strong>Chart XML Reference </strong></span>Secion. </td> </tr> </table> </body> </html>