售 价:¥
温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印
为你推荐
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...
Cleaning up the code
Using the mousewheel
Centering on zoom
Fix axes
Sending data updates to the graph
Getting ready
How to do it...
How it works...
There's more...
Scrolling data
Random access
Undo
Dispatching and listening for events
Making the points interactive: Hovering
Getting ready
How to do it...
How it works...
There's more...
Attaching data to points
Better display
Selecting data points in the graph
Getting ready
How to do it...
How it works...
There's more...
Selection by clicking
Drawing selected items
Adding to and removing from a selection
A dynamic graph based on an editable table
Getting ready
How to do it...
How it works...
There's more...
Data validation
Zoom/pan on entry
Dragging data points to new values
Getting ready
How to do it...
How it works...
There's more...
Processing the new location
More freedom
Adding and removing points
Linking graphs
Getting ready
How to do it...
How it works...
There's more...
Multiple data sets
Animation
6. Mapping Geographical and Spatial Data
Introduction
Showing a map using the openscales.org API
Getting ready
How to do it...
How it works...
There's more...
Custom controls
Using different maps
Adding points of interest to a map
Getting ready
How to do it...
How it works...
There's more...
Changing the marker
A URL for image
Making the marker interactive
Parsing data to use as region fill
Getting ready
How to do it...
How it works...
There's more...
Checking for errors
See also
Coloring a map
Getting ready
How to do it...
How it works...
There's more...
Using different countries
Using another color range
See also
Adding multiple layers to a map
Getting ready
How to do it...
How it works...
There's more...
Making your own LayerManager control
Animating turning on/off layers
Overlaying a heat map
Getting ready
How to do it...
How it works...
There's more...
Using more precise data
Starting from blue
7. Animating a Graph
Introduction
Animating between two data sets
Getting ready
How to do it...
How it works...
There's more...
Using TweenLite
See also
Animating a meter
Getting ready
How to do it...
How it works...
There's more...
Visualizing easing functions
See also
Automatic updates
Getting ready
How to do it...
How it works...
There's more...
Horizontal axis
See also
Zooming in on a specific data set
Getting ready
How to do it...
How it works...
There's more...
Adding a back button
Reverse animation
See also
Animating subway locations
Getting ready
How to do it...
How it works...
There's more...
Collisions
Playing the sounds
See also
8. Creating a Relational Network
Introduction
Preparing the data
Getting ready
How to do it...
How it works...
There's more...
Links for more theory
See also
Creating the visual for a node
Getting ready
How to do it...
How it works...
There's more...
Styling
Arranging and linking the nodes
Getting ready
How to do it...
How it works...
There's more...
Box2D
Showing more than one level
Navigating through the relational network
Getting ready
How to do it...
How it works...
There's more...
Refactoring
Animating the transitions
Getting ready
How to do it...
How it works...
There's more...
Different animation for navigating to a child
See also
Adding sounds
Getting ready
How to do it...
How it works...
There's more...
Saving space
9. Creating Three-Dimensional Graphs
Introduction
Drawing in 3D: a 3D starter project
Getting ready
How to do it...
How it works...
There's more...
The maths
3D and games
Away3D 3
Creating a 3D column chart
Getting ready
How to do it...
How it works...
There's more...
View3D
Two views
Shadows
Moving around the chart
Getting ready
How to do it...
How it works...
There's more...
Other controllers
Lenses
Other ways of moving
Controllers not just for cameras
Beyond the cube, drawing different shapes
Getting ready
How to do it...
How it works...
There's more...
More shapes
Defining your own geometry
Loading 3D shapes
Graphing tabular data in 3D
Getting ready
How to do it...
How it works...
There's more...
Transparent materials
A more generic Graph3D class
Other shapes and materials
Styling the graph with different materials
Getting ready
How to do it...
How it works...
There's more...
Different image on each cube face
Text
Fine-tuning texture mapping
Graphing a function in three dimensions
Getting ready
How to do it...
How it works...
There's more...
One geometry
Color change based on height
Two-sided surfaces
See also
10. Working with Various 3D Graph Types
Introduction
Mapping keyboard usage in 3D, part 1: The model
Getting ready
How to do it...
How it works...
There's more...
External 3D editor
Manipulating the shadows
See also
Mapping keyboard usage in 3D, part 2: The data
Getting ready
How to do it...
How it works...
There's more...
Key material
Read data directly from Wikipedia
Showing labels on hover
3D world population chart, part 1: The globe
Getting ready
How to do it...
How it works...
See also
3D world population chart, part 2: Dressing up
Getting ready
How to do it...
How it works...
There's more...
Adding effects
Still more effects
3D world population chart, part 3: The data
Getting ready
How to do it...
How it works...
There's more...
Data set picker and loader
See also
Index
买过这本书的人还买过
读了这本书的人还在读
同类图书排行榜