ActionScript Graphing Cookbook
eBook - ePub

ActionScript Graphing Cookbook

  1. 288 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

ActionScript Graphing Cookbook

About this book

In Detail

"A picture is worth a thousand words" has never been more true than when representing large sets of data. Bar charts, heat maps, cartograms, and many more have become important tools in applications and presentations to quickly give insight into complicated issues.

The "ActionScript Graphing Cookbook" shows you how to add your own charts to any ActionScript program. The recipes give step-by-step instructions on how to process the input data, how to create various types of charts and how to make them interactive for even more user engagement.

Starting with basic ActionScript knowledge, you will learn how to develop many different types of charts.

First learn how to import your data, from Excel, web services and more. Next process the data and make it ready for graphical display. Pick one of the many graph options available as the book guides you through ActionScript's drawing functions. And when you're ready for it, branch out into 3D display.

The recipes in the "ActionScript Graphing Cookbook" will gradually introduce you into the world of visualization.

Approach

Step-by-step instructions guide you from your very first graphical program to highly complex 3D presentations.

Although a few recipes explain charts in Flex, this book is firmly focussed on using ActionScript code and data to draw graphs.

Who this book is for

The "ActionScript Graphing Cookbook" is aimed at any ActionScript developer who wants to add data visualization to their skill set. The reader should be familiar with ActionScript basics, but no deep knowledge of any graphical functions is required.

Frequently asked questions

Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription.
No, books cannot be downloaded as external files, such as PDFs, for use outside of Perlego. However, you can download books within the Perlego app for offline reading on mobile or tablet. Learn more here.
Perlego offers two plans: Essential and Complete
  • Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
  • Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Both plans are available with monthly, semester, or annual billing cycles.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, we’ve got you covered! Learn more here.
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Yes! You can use the Perlego app on both iOS or Android devices to read anytime, anywhere — even offline. Perfect for commutes or when you’re on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app.
Yes, you can access ActionScript Graphing Cookbook by Peter Backx, Dominic Gelineau in PDF and/or ePUB format, as well as other popular books in Computer Science & Data Modelling & Design. We have over one million books available in our catalogue for you to explore.

ActionScript Graphing Cookbook


Table of Contents

ActionScript Graphing Cookbook
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers and more
Why Subscribe?
Free Access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Downloading the color images of this book
Errata
Piracy
Questions
1. Getting Started with Graph Drawing
Introduction
Drawing in two dimensions
Getting ready
How to do it...
How it works...
There's more...
Graphics drawing
Coordinate systems and transformations
See also
Building point charts
Getting ready
How to do it...
How it works...
There's more...
Coordinate system
Scaling woes
Adding more parameters
See also
Creating a line graph based on a function
Getting ready
How to do it...
How it works...
There's more...
Improving the Graph class
Using points to draw functions
Curves
See also
Adding labels and axes
Getting ready
How to do it...
How it works...
There's more...
Vertical axis
Screen versus graph coordinates
Error checking and adding parameters
Graphing a spreadsheet
Getting ready
How to do it...
How it works...
There's more...
Two arrays
Associative array
Vectors
Associative array to two-dimensional array conversion
See also
Area charts
Getting ready
How to do it...
How it works...
There's more...
Having the color as a parameter
The fill style
See also
Multiple area charts
Getting ready
How to do it...
How it works...
There's more...
Improving the interface
Styling the fill
Styling a graph
Getting ready
How to do it...
How it works...
There's more...
Transformation
Gradient lines and points, bitmap areas
See also
Adding legends
Getting ready
How to do it...
How it works...
There's more...
TextField customization
A background
See also
Using Flex for charts
Getting ready
How to do it...
How it works...
There's more...
Flex without MXML
ActionScript in Flex
See also
2. Working with Data
Introduction
Preparing your data
Getting ready
How to do it...
How it works...
There's more...
Databases
Embedding CSV files
Getting ready
How to do it...
How it works...
There's more...
CSV parsing
See also
Loading a data file from the Internet
Getting ready
How to do it...
How it works...
There's more...
Other events
Relative URL
Security and cross-domain policies
See also
Loading a file from the local hard drive
Getting ready
How to do it...
How it works...
There's more...
Cancel file browsing
See also
Loading data with XML
Getting ready
How to do it...
How it works...
There's more...
Loading from other sources
Different XML structures
Loading data from Excel files
Getting ready
How to do it...
How it works...
There's more...
as3xls
See also
Consuming the REST services
Getting ready
How to do it...
How it works...
There's more...
More web APIs
Using SOAP services
Exporting data as CSV to import in Excel
Getting ready
How to do it...
How it works...
There's more...
Semicolon or comma
CSV header
Exporting data to a PDF file
Getting ready
How to do it...
How it works...
There's more...
Headers and footers
Adding images
See also
3. Creating Bar Charts
Introduction
Drawing a bar chart with Flex
Getting ready
How to do it...
How it works...
There's more...
Showing data tips
Displaying vertical bars
Adding more bars
See also
Building vertical bar charts
Getting ready
How to do it...
How it works...
There's more...
Styling
Interactivity
Accommodating a wider data range
See also
Creating comparison bar charts
Getting ready
How to do it...
How it works...
There's more...
Adding a legend
See also
Drawing histograms
Getting ready
How to do it...
How it works...
There's more...
Data range
So many bars
See also
Creating sparklines to enrich text content
Getting ready
How to do it...
How it works...
There's more...
Adding the area under the line
Averaging the data
Making 3D bar charts
Getting ready
How to do it...
How it works...
There's more...
Using gradient
Using a real 3D engine
See also
4. Drawing Different Types of Graphs
Introduction
Drawing a pie chart with Flex
Getting ready
How to do it...
How it works...
There's more...
Bevel or not
See also
Creating donut charts
Getting ready
How to do it...
How it works...
There's more...
Labels
Donut chart as a pie chart
See also
Drawing meters and gauges
Getting ready
How to do it...
How it works...
There's more...
Animation
Using the Flash IDE
See also
Making Venn diagrams
Getting ready
How to do it...
How it works...
There's more...
Interactivity
More sets
Building pyramid charts
Getting ready
How to do it...
How it works...
There's more...
Getters and setters
3D!
See also
Drawing bubble charts
Getting ready
How to do it...
How it works...
There's more...
Interactivity
Legends
See also
Creating tag clouds
Getting ready
How to do it...
How it works...
There's more...
Modifying the alpha
Using embedded fonts
Creating a treemap
Getting ready
How to do it...
How it works...
There's more...
Representing small values
Using a tree as data
See also
5. Adding Interaction
Introduction
Zooming and panning around a graph
Getting ready
How to do it...
How it works...
There's more...

Table of contents

  1. ActionScript Graphing Cookbook