|
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17 System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64 User : nobody ( 99) PHP Version : 5.2.17 Disable Function : NONE Directory : /home/queenjbs/www/FusionChart/Contents/exporting-image/ |
Upload File : |
<?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>Exporting charts as PDF/Images - XML Attributes </title>
<link rel="stylesheet" href="../assets/ui/css/style.css" type="text/css" />
<script type="text/javascript" src="../assets/prettify/prettify.js"></script>
<link rel="stylesheet" type="text/css" href="../assets/prettify/prettify.css" />
<script type="text/javascript" src="../assets/ui/js/jquery.min.js" ></script>
<style type="text/css">
<!--
div.WebHelpPopupMenu { position:absolute;
left:0px;
top:0px;
z-index:4;
visibility:hidden; }
a.whtbtnhide, a.whtbtnshow, a.whtbtnhidenav , a.whtbtnshownav { border-bottom:none !important; }
-->
</style>
<script type="text/javascript" language="javascript1.2" src="../assets/ui/js/whmsg.js"></script>
<script type="text/javascript" language="javascript" src="../assets/ui/js/whver.js"></script>
<script type="text/javascript" language="javascript1.2" src="../assets/ui/js/whproxy.js"></script>
<script type="text/javascript" language="javascript1.2" src="../assets/ui/js/whutils.js"></script>
<script type="text/javascript" language="javascript1.2" src="../assets/ui/js/whlang.js"></script>
<script type="text/javascript" language="javascript1.2" src="../assets/ui/js/whtopic.js"></script>
<script type="text/javascript" src="../assets/ui/js/lib.js"></script>
</head>
<body>
<!-- breadcrumb starts here -->
<div id="breadcrumb"></div>
<script type="text/javascript">
document.write( addFCBreadcrumb( [ "Home|../Introduction/Overview.html", "Exporting as Image/PDF|ECOverview.html", "XML attributes" ] ) );
</script>
<!-- breadcrumb ends here -->
<table width="98%" border="0" cellspacing="0" cellpadding="3" align="center">
<tr>
<td class="pageHeader">XML Attributes </td>
</tr>
<tr>
<td valign="top" class="text"><p>The following XML attributes of <span class="codeInline"><chart></span> element are used to configure all aspects of export chart.</p></td>
</tr>
<tr>
<td valign="top" class="text"><table width="95%" border="0" class="table" cellpadding="2" cellspacing="0">
<tr>
<td width="25%" valign="top" class="header">Attribute Name </td>
<td width="15%" valign="top" class="header">Type</td>
<td valign="top" class="header">Description</td>
</tr>
<tr>
<td colspan="3" valign="top" class="trVeryLightGrayBg"><strong>Core export functionality related attributes</strong></td>
</tr>
<tr>
<td valign="top" class="codeInline">exportEnabled</td>
<td valign="top" class="text">Boolean (0/1) </td>
<td valign="top" class="text">Whether the chart will allow exporting to images/PDFs? </td>
</tr>
<tr>
<td valign="top" class="codeInline">exportShowMenuItem</td>
<td valign="top" class="text">Boolean (0/1) </td>
<td valign="top" class="text">Whether the menu items related to export (for example, Save as JPEG etc.) will appear in the context menu of chart. </td>
</tr>
<tr>
<td valign="top" class="codeInline">exportFormats</td>
<td valign="top" class="text">String</td>
<td valign="top" class="text"><p>List of formats that the chart will show in context menu, along with label for each one.</p>
<p>The attribute value should be a delimiter separated key-value pair. The delimiter character to be used is '|' (pipe character). The syntax for the attribute value is as follows:<br />
<em>KEY=Value</em>[<em>|KEY=Value</em>]*</p>
<p>Example: The code required to enable PNG, JPG and PDF type of export with custom context-menu message for PNG and PDF.</p>
<p><em>exportFormats="PNG=Export as High Quality Image|JPG|PDF=Export as PDF File"</em></p></td>
</tr>
<tr>
<td valign="top" class="codeInline">exportAtClient</td>
<td valign="top" class="text">Boolean (0/1) </td>
<td valign="top" class="text">Whether to use Client-side Export Handlers, or Server-side Export Handlers </td>
</tr>
<tr>
<td valign="top" class="codeInline">exportHandler</td>
<td valign="top" class="text">String</td>
<td valign="top" class="text"><p>In case of Server-side exporting, this refers to the path of the Server-side Export Handler (the ready-to-use scripts that we provide). Make sure to provide the file name along with the path. </p>
<p>In case of Client-side exporting, this refers to the DOM Id of FusionCharts Export Component that is embedded in your web page, along with the chart. </p></td>
</tr>
<tr>
<td valign="top" class="codeInline">exportAction</td>
<td valign="top" class="text">'save' or 'download' </td>
<td valign="top" class="text">In case of Server-side exporting, the action specifies whether the exported image will be sent back to client as download, or whether it will be saved on the server. </td>
</tr>
<tr>
<td valign="top" class="codeInline">exportTargetWindow</td>
<td valign="top" class="text">_self or _blank </td>
<td valign="top" class="text">In case of Server-side exporting and when using download as action, this lets you configure whether the return image/PDF will open in same window (as an attachment for download), or whether it will open in a new window. </td>
</tr>
<tr>
<td valign="top" class="codeInline">exportCallback</td>
<td valign="top" class="text">String</td>
<td valign="top" class="text"><p>Name of JavaScript function that will be called back when export process has finished in case of:</p>
<ul>
<li>Client-side export</li>
<li>Batch export</li>
<li>Server-side export using <span class="codeInline">'save'</span> as action </li>
</ul></td>
</tr>
<tr>
<td valign="top" class="codeInline">exportFileName</td>
<td valign="top" class="text">String</td>
<td valign="top" class="text">Using this attribute you can specify the name (excluding the extension) of the output (export) file. </td>
</tr>
<tr>
<td valign="top" colspan="3"> </td>
</tr>
<tr>
<td colspan="3" valign="top" class="trVeryLightGrayBg"><a name="export"></a><strong>Export Dialog configuration related attributes: </strong></td>
</tr>
<tr>
<td width="25%" valign="top" class="codeInline">showExportDialog</td>
<td width="15%" valign="top" class="text">Boolean (0/1) </td>
<td valign="top" class="text">Whether to show the export dialog during capture phase. If not, the chart starts capturing process without the dialog visible. </td>
</tr>
<tr>
<td width="25%" valign="top" class="codeInline">exportDialogMessage</td>
<td width="15%" valign="top" class="text">String</td>
<td valign="top" class="text">The message to be shown in the dialog box. The default is "Capturing Data : " </td>
</tr>
<tr>
<td width="25%" valign="top" class="codeInline">exportDialogColor</td>
<td width="15%" valign="top" class="text">Hex Color </td>
<td valign="top" class="text">Background color of dialog box. </td>
</tr>
<tr>
<td width="25%" valign="top" class="codeInline">exportDialogBorderColor</td>
<td width="15%" valign="top" class="text">Hex Color </td>
<td valign="top" class="text">Border color of dialog box. </td>
</tr>
<tr>
<td width="25%" valign="top" class="codeInline">exportDialogFontColor</td>
<td width="15%" valign="top" class="text">Hex Color </td>
<td valign="top" class="text">Font color to be used for text in dialog. </td>
</tr>
<tr>
<td valign="top" class="codeInline">exportDialogPBColor</td>
<td valign="top" class="text">Hex Color </td>
<td valign="top" class="text">Color of progress bar in dialog. </td>
</tr>
</table><br /></td>
</tr>
</table>
<!-- footer links starts-->
<div id="fcfooter"></div>
<script type="text/javascript">
document.getElementById("fcfooter").innerHTML = addFCFooter("Terminologies|ECTerminology.html","Server-side export|server-side/ECServerOverview.html");
</script>
<!-- footer links ends -->
<script type="text/javascript" language="javascript1.2">//<![CDATA[
<!--
highlightSearch();
//-->
//]]></script>
</body>
</html>