Sign in to follow this  
Cory

remove watermark/add logo/add timestamp

Recommended Posts

Hello I am trying to remove the fusion charts watermark, I upgraded to FusionCharts XT and have no luck.

 

Also I have added a logo to my chart through xml "logoURL=" but when the charts are exported the logo is not there, and I would like to know if there is anyway I could add a TimeStamp to the exported charts.

 

thank you.

 

 

 

this is my php code

<?php
include("FusionCharts/FusionCharts.php");
?>
<html>
<head>
	<title>FusionCharts - Array Example using Single Series Column 3D Chart</title>	
	<script type="text/Javascript" SRC="FusionCharts/FusionCharts.js"></script>
	<script type="text/javascript" LANGUAGE="Javascript" SRC="FusionCharts/jquery.min.js"></script>
	<style type= "text/css" >
		.div1 {
			height:360px;
			width:650px;
			background:#FFF0FF;
			background-repeat:no-repeat;
			border:2px solid #995699;
		}
		.div2 {
			height:35px;
			width:150px;
			background:#FFF0FF;
			background-repeat:no-repeat;
		}
	</style>
	<script type="text/Javascript" >
		function callPrint(){
			window.print();
		}
		
		function callExport(expFormat){
			var chartObject = FusionCharts('myChart');
			if( chartObject.hasRendered() ){
				chartObject.exportChart({ exportAtClient:'1',exportFormat:expFormat});
			}
			else
            alert ( "Please wait till the chart completes rendering..." );
		}
	</script>
</head>
<body>
	<center>
	<h2>FusionCharts Examples</h2>
	<h4>Plotting single series chart from data contained in Array.</h4>
	<div class="div1">
		<div class="div2" align="right">
			<p align="right">
			  <a  href='#' onclick='callPrint();'><img width='30' height='30' title='Click To Print The Chart' src='FusionCharts/print.PNG' border='0'></a>
			  <a  href='#' onClick="callExport('PNG')"><img width='30' height='30' title='Click To Export The Report in PNG' src='FusionCharts/export.PNG' border='0'></a>
			  <a  href='#' onClick="callExport('PDF')"><img width='30' height='30' title='Click To Export The Report in PDF' src='FusionCharts/pdf.png' border='0'></a>
			</p>
		</div>
		<?php


			//Now, we need to convert this data into XML. We convert using string concatenation.
			//Initialize <chart> element
		//	$strXML = "<chart caption='Exam result for CSC113A ' numberPrefix='' formatNumberScale='10' xAxisName='Grades' yAxisName='No Of Students' bgColor='995699,FEEFFF' exportEnabled='1'  exportAtClient='0' exportAction='download'  exportShowMenuItem='1'>";
			//Convert data to XML and append

		//	$strXML .= "<set label='L' value='50'/></chart>";//Comment this line of code to render the data from your database. This line of code is only for testing purpose


			
			//Un-comment the below line of code to render the chart in pure JavaScript forcefully.
			FC_SetRenderer('javascript');
			
			//Create the chart - Column 3D Chart with data contained in strXML
			echo renderChart("FusionCharts/Pie2D.swf", "Data.xml", "", "myChart", 600, 300, false, true);
			
		?>
	</div>
	</center>
</body>
</html>

and this is my xml code

<chart ExportHandler='localhost:8080/FusionCharts_XT/ExportHandlers/PHP/index.php' 
exportFileName='ABI Chart' logoURL='logotipo.png' logoPosition='TL' logoScale='50'
caption='Exam result for CSC113A ' numberPrefix='' formatNumberScale='10' 
xAxisName='Grades' yAxisName='No Of Students' bgColor='995699,FEEFFF' 
exportEnabled='1'  exportAtClient='0' exportAction='download'  
exportShowMenuItem='1'> 
<set label='A' value='50'/>
<set label='B' value='30'/>
<set label='C' value='80'/>
<set label='D' value='20'/>
<set label='E' value='70'/> </chart>

Share this post


Link to post
Share on other sites

 

Hello I am trying to remove the fusion charts watermark, I upgraded to FusionCharts XT and have no luck.

 

Also I have added a logo to my chart through xml "logoURL=" but when the charts are exported the logo is not there, and I would like to know if there is anyway I could add a TimeStamp to the exported charts.

 

thank you.

 

 

 

this is my php code

<?php
include("FusionCharts/FusionCharts.php");
?>
<html>
<head>
	<title>FusionCharts - Array Example using Single Series Column 3D Chart</title>	
	<script type="text/Javascript" SRC="FusionCharts/FusionCharts.js"></script>
	<script type="text/javascript" LANGUAGE="Javascript" SRC="FusionCharts/jquery.min.js"></script>
	<style type= "text/css" >
		.div1 {
			height:360px;
			width:650px;
			background:#FFF0FF;
			background-repeat:no-repeat;
			border:2px solid #995699;
		}
		.div2 {
			height:35px;
			width:150px;
			background:#FFF0FF;
			background-repeat:no-repeat;
		}
	</style>
	<script type="text/Javascript" >
		function callPrint(){
			window.print();
		}
		
		function callExport(expFormat){
			var chartObject = FusionCharts('myChart');
			if( chartObject.hasRendered() ){
				chartObject.exportChart({ exportAtClient:'1',exportFormat:expFormat});
			}
			else
            alert ( "Please wait till the chart completes rendering..." );
		}
	</script>
</head>
<body>
	<center>
	<h2>FusionCharts Examples</h2>
	<h4>Plotting single series chart from data contained in Array.</h4>
	<div class="div1">
		<div class="div2" align="right">
			<p align="right">
			  <a  href='#' onclick='callPrint();'><img width='30' height='30' title='Click To Print The Chart' src='FusionCharts/print.PNG' border='0'></a>
			  <a  href='#' onClick="callExport('PNG')"><img width='30' height='30' title='Click To Export The Report in PNG' src='FusionCharts/export.PNG' border='0'></a>
			  <a  href='#' onClick="callExport('PDF')"><img width='30' height='30' title='Click To Export The Report in PDF' src='FusionCharts/pdf.png' border='0'></a>
			</p>
		</div>
		<?php


			//Now, we need to convert this data into XML. We convert using string concatenation.
			//Initialize <chart> element
		//	$strXML = "<chart caption='Exam result for CSC113A ' numberPrefix='' formatNumberScale='10' xAxisName='Grades' yAxisName='No Of Students' bgColor='995699,FEEFFF' exportEnabled='1'  exportAtClient='0' exportAction='download'  exportShowMenuItem='1'>";
			//Convert data to XML and append

		//	$strXML .= "<set label='L' value='50'/></chart>";//Comment this line of code to render the data from your database. This line of code is only for testing purpose


			
			//Un-comment the below line of code to render the chart in pure JavaScript forcefully.
			FC_SetRenderer('javascript');
			
			//Create the chart - Column 3D Chart with data contained in strXML
			echo renderChart("FusionCharts/Pie2D.swf", "Data.xml", "", "myChart", 600, 300, false, true);
			
		?>
	</div>
	</center>
</body>
</html>

and this is my xml code

<chart ExportHandler='localhost:8080/FusionCharts_XT/ExportHandlers/PHP/index.php' 
exportFileName='ABI Chart' logoURL='logotipo.png' logoPosition='TL' logoScale='50'
caption='Exam result for CSC113A ' numberPrefix='' formatNumberScale='10' 
xAxisName='Grades' yAxisName='No Of Students' bgColor='995699,FEEFFF' 
exportEnabled='1'  exportAtClient='0' exportAction='download'  
exportShowMenuItem='1'> 
<set label='A' value='50'/>
<set label='B' value='30'/>
<set label='C' value='80'/>
<set label='D' value='20'/>
<set label='E' value='70'/> </chart>

Hi,

 

This is a known issue and would be fixed in the next major upgraded version,

 

We shall update you as soon we come up with the solution.

 

Thank you for your patience. :)

Share this post


Link to post
Share on other sites

why is the title of the chart removed when exporting?

Hi,

 

We have tested a chart with "caption" using the latest version, i.e, FusionCharts v3.4 and we are unable to replicate the issue with the caption removed on exporting.

 

Please check with the attached exported chart image for your reference.

 

post-8144-0-12364900-1406273220_thumb.jpg

 

Hope this helps. :)

Share this post


Link to post
Share on other sites

if i use the default fusioncharts export icon it will work, but if i use the ones i have placed

function callExport(expFormat){
			var chartObject = FusionCharts('myChart');
			if( chartObject.hasRendered() ){
				chartObject.exportChart({ exportAtClient:'1',exportFormat:expFormat});

the title is removed any ideas? I am using the latest version of FusionCharts XT

Share this post


Link to post
Share on other sites

if i use the default fusioncharts export icon it will work, but if i use the ones i have placed

function callExport(expFormat){
			var chartObject = FusionCharts('myChart');
			if( chartObject.hasRendered() ){
				chartObject.exportChart({ exportAtClient:'1',exportFormat:expFormat});

the title is removed any ideas? I am using the latest version of FusionCharts XT

Hi,

 

Please note that the latest version, i.e, FusionCharts v3.4 does not support client-side export on JavaScript charts. It only supports server-side export. It might be the incorrect implementation of client side export on JS charts, which might be causing the issue.

 

Also, currently, the charts can only be exported using the hosted FusionCharts Suite XT Export handler service. We intend to ship a self-hosted Export Handler module next quarter.

 

Hope this clarifies the query. :)

Share this post


Link to post
Share on other sites

Hi,

 

FusionCharts Suite v3.6.0 is released recently and the export embedded images feature has been added as experimental basis (please find the attachment). 
 
To know more you can read the Limitations.txt file in the attached folder.
 
Please try upgrading to the latest version and cross check your samples. 
 
Also, we have released updated plugins, wrappers and export handlers which can be checked from here: http://www.fusioncha...com/extensions/
 
To download the Evaluation version of FusionCharts Suite XT v3.6.0, please visit the link: http://www.fusioncharts.com/download/
 
I hope this helps. If the issue still persists please do drop us a mail.
 
Thanks.

Embedded Image support.zip

Share this post


Link to post
Share on other sites

Hi Cory,

 

Yes, adding two logos at a time and text is possible. Please try out your samples as guided.

 

Please note that this feature is in experimental mode. In order to export external embedded images/Logo you need to use the "exportHandler": "http://export.api3.fusioncharts.com/logo/" as of now.

 

If you have any issues please do drop us a mail.

 

Thanks.

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