Sign in to follow this  
heidemeister

Removing The Print Button

Recommended Posts

Hi

 

I have just updated to XT, mainly to have the new JavaScript only rendering (client request) but have a little styling issue:

 

When using JavaScript rendering a small print icon is placed in the upper right corner of the chart, which clashes with the design.

How do I remove this button?

 

 

-michael christensen

Share this post


Link to post
Share on other sites
Guest Sumedh

Hi

 

I have just updated to XT, mainly to have the new JavaScript only rendering (client request) but have a little styling issue:

 

When using JavaScript rendering a small print icon is placed in the upper right corner of the chart, which clashes with the design.

How do I remove this button?

 

 

-michael christensen

 

 

 

Hi,

 

Remove the exportEnabled attribute or set this attribute to 0 in your XML file.

 

Ref. Code:

<chart ... exportEnabled='0'>

 

This would solve your purpose.

Share this post


Link to post
Share on other sites

Hi,

 

Remove the exportEnabled attribute or set this attribute to 0 in your XML file.

 

Ref. Code:

<chart ... exportEnabled='0'>

 

This would solve your purpose.

 

Worked like a charm - thanks a lot :-)

Share this post


Link to post
Share on other sites

smile.gif

 

Maybe I was a bit too fast there! I'm using two types of charts, and "exportEnabled=0" removes the print icon from Stacked3D but not for pie charts :-(

 

Any idea why this does not work in Pie charts?

Share this post


Link to post
Share on other sites

Hi,

 

Can you please send us the screen-shot of issue and chart XML?

 

Once again I posted too fast :P It seems like the print icon cannot be removed from any of the charts I use any more. I did not notice when this problem started, but 2 major fusionchart changes was made to my project lately:

 

1) Upgrade to Fusioncharts XT (v3.2.2)

2) Switched to JS only (that is: no flash charts any more)

 

So: Can that print icon not be removed from Fusionchart XT stackd3d and pie charts when rendering in javascript/html5?

Share this post


Link to post
Share on other sites

Hi,

 

You can actually show 2 general buttons on the JavaScript charts. One is to 'print', to a printer, the chart and the other is to 'export' the chart as JPG/PNG/PDF/SVG.

 

If you have the latest FusionCharts XT (which is version 3.2.2 Service Release 4, released on 6 August, 2012), you will find that you can use the following 2 attributes to show and hide the above mentioned buttons:

 

  1. showPrintMenuItem: Set it to 0 to hide the 'print' button.
  2. exportShowMenuItem: Set it to 0 to hide the 'export' button.

 

Example XML for Pie chart:

 

<chart caption='Company Revenue' exportEnabled='1' showPrintMenuItem='0' exportShowMenuItem='0'>
  <set label='Services' value='26' />
  <set label='Hardware' value='32' />
  <set label='Software' value='42' />
</chart>

Share this post


Link to post
Share on other sites

Hi,

 

You can actually show 2 general buttons on the JavaScript charts. One is to 'print', to a printer, the chart and the other is to 'export' the chart as JPG/PNG/PDF/SVG.

 

If you have the latest FusionCharts XT (which is version 3.2.2 Service Release 4, released on 6 August, 2012), you will find that you can use the following 2 attributes to show and hide the above mentioned buttons:

 

  1. showPrintMenuItem: Set it to 0 to hide the 'print' button.
  2. exportShowMenuItem: Set it to 0 to hide the 'export' button.

 

Example XML for Pie chart:

 

<chart caption='Company Revenue' exportEnabled='1' showPrintMenuItem='0' exportShowMenuItem='0'>
  <set label='Services' value='26' />
  <set label='Hardware' value='32' />
  <set label='Software' value='42' />
</chart>

 

Thanks for the quick reply. I'm using Service Release 3, so I'll get the latest version and try out those new attributes :-)

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