Search icon CANCEL
Subscription
0
Cart icon
Cart
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
FusionCharts Beginner's Guide: The Official Guide for FusionCharts Suite

You're reading from  FusionCharts Beginner's Guide: The Official Guide for FusionCharts Suite

Product type Book
Published in Apr 2012
Publisher Packt
ISBN-13 9781849691765
Pages 252 pages
Edition 1st Edition
Languages
Toc

Table of Contents (16) Chapters close

FusionCharts
Credits
About the Authors
About the Reviewer
www.PacktPub.com
1. Preface
1. Introducing FusionCharts 2. Customizing your Chart 3. JavaScript Capabilities 4. Enabling Drill-down on Charts 5. Exporting Charts 6. Integrating with Server-side Scripts 7. Creating Maps for your Applications 8. Selecting the Right Visualization for your Data 9. Increasing the Usability of your Charts Pop quiz Answers

Time for action — customize the export component attributes


  1. 1. Duplicate the previously created ExportUsingContextMenu.html and save as CustomizeClientSideExport.html.

  2. 2. Open the CustomizeClientSideExport.html file within a text editor of your choice, and replace the export component instantiation code (lines 13 to 14) with the following updated code, essentially passing a third parameter for customizing various aspects of the export component:

    exportComponentObj = new FusionChartsExportObject("exportComponent", "../FusionCharts/FCExporter.swf", { btnSaveTitle: "Save Report", width: "130", height: "22", btnWidth: "100", btnHeight: "22", vMargin: "0" });
    
  3. 3. Within the loadReport function, (at around line 26) delete the line exportComponentObj.Render("exporterContainer");.This prevents the export component from rendering along with the chart. There is a good reason for doing this and we will look into this down the line.

  4. 4. After the end of the loadReport function (around line 27), insert...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}