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

Formatting the numbers on the chart


If you have noticed the numbers on the chart carefully, you would see 1490000 and 2100000 have been neatly converted to 1.49M and 2.1M respectively, thus making them much easier to read.

FusionCharts automatically formats the number scaling to convert to K (Thousands) and M (Millions). So if the values on your chart are 13300, 14500, and 10000, the chart will automatically convert them to 13.3K, 14.5K and 10K respectively. In case you don't want the numbers getting formatted this way, you can set formatNumberScale='0'. Once you do that, the numbers are displayed as 13,300, 14,500, and 10,000. Commas have been added to make the numbers easier to read. In case you don't want the commas either, you need to set formatNumber='0' as well.

Adding a prefix or suffix to the numbers

Throughout the examples in the book, we have been adding the $ prefix to all the numbers on the chart using numberPrefix='$'. Mostly, currency signs are prefixed to all the numbers on...

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