Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Sencha Charts Essentials

You're reading from   Sencha Charts Essentials Create stunning charts and visualizations for both web and mobile applications

Arrow left icon
Product type Paperback
Published in May 2015
Publisher
ISBN-13 9781785289767
Length 214 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Ajit Kumar Ajit Kumar
Author Profile Icon Ajit Kumar
Ajit Kumar
Arrow right icon
View More author details
Toc

Creating a periodic table


In this section, you will see how to create a periodic table, shown as follows, where we show the atomic number and symbol for each element.

Note

You can read more about this at http://en.wikipedia.org/wiki/Periodic_table.

The following diagram shows the typical periodic table that we would like to create:

What is this chart all about?

From a charting perspective, our periodic table will have the following requirements:

  • It has 18 columns

  • For each element, we will show the atomic number and symbol

  • Lanthanide and Actinide elements are displayed separately

  • Lanthanides will be shown in green

  • Actinides shall be shown in blue

  • All other elements will be shown in black

With these requirements in place, let's get to the design and implementation of it.

Structuring the design

The following diagram shows the specific classes that we need to implement to create our periodic table and how they are connected with Sencha Charts classes:

The classes highlighted with a gray background are related...

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 $19.99/month. Cancel anytime
Banner background image