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 — setting up a number scale to understand billions as well


  1. 1. Create a copy of ChartBackground.html and ChartBackground.xml, and rename them to CustomNumScale.html and CustomNumScale.xml respectively.

  2. 2. Add the attributes numberScaleValue='1000,1000,1000' numberScaleUnit='K,M,B' to the<chart> element.

  3. 3. Add three zeroes to each of the three revenue figures so that the new number scale consisting of billions can kick in.

What just happened?

We just created a number scale to convert all the numbers in the chart to K, M, and B. Here's how the conversion works in simpler terms:

1000 = 1K

1000 K=1M

1000 M=1B

The same has been explained to the chart using numberScaleValue='1000,1000,1000' numberScaleUnit='K,M,B'. Essentially, what it means for the chart is, convert any number on the scale of 1000 to K, any number on the scale of 1000x1000 to M (the next value in numberScaleUnit), and any number on the scale of 1000x1000x1000 to B (the last value in numberScaleUnit). The only...

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}