Create Web Charts. With jqplot. Apress. Fabio Nelli

Similar documents
Index. grouped (see Grouped bar chart) horizontal, jqplot library, 128 stacked bar charts (see Stacked bar charts) Bubble chart,

Introduction. Part I: jquery API 1. Chapter 1: Introduction to jquery 3

jquery Cookbook jquery Community Experts O'REILLY8 Tokyo Taipei Sebastopol Beijing Cambridge Farnham Koln

3D Surface Plots with Groups

jquery in Action Second Edition !II BEAR BIBEAULT YEHUDA KATZ MANNING Greenwich (74 0 w. lang.)

Contents. Tutorials Section 1. About SAS Enterprise Guide ix About This Book xi Acknowledgments xiii

SAS Visual Analytics 8.2: Working with Report Content

Technology Assignment: Scatter Plots

Excel Tutorial 4: Analyzing and Charting Financial Data

Using Inspiration 7 I. How Inspiration Looks SYMBOL PALETTE

Understand and plan a chart Create a chart Move and resize charts and chart objects Apply chart layouts and styles

Introduction to CS graphs and plots in Excel Jacek Wiślicki, Laurent Babout,

From Getting Started with the Graph Template Language in SAS. Full book available for purchase here.

Coding Faster: Getting More Productive with Microsoft Visual

This course is designed for web developers that want to learn HTML5, CSS3, JavaScript and jquery.

The Scope of This Book... xxii A Quick Note About Browsers and Platforms... xxii The Appendices and Further Resources...xxiii

Beyond 20/20. Browser - English. Version 7.0, SP3

Microsoft Excel. Charts

PASS Sample Size Software

Contents. Table of Contents. Table of Contents... iii Preface... xvii. Getting Started iii

Desktop Studio: Charts. Version: 7.3

Pro JavaScript. Development. Coding, Capabilities, and Tooling. Den Odell. Apress"

Chapter 3. Determining Effective Data Display with Charts

Jim Jackson II Ian Gilman

Desktop Studio: Charts

Beginning Google Maps Mashups with Mapplets, KML, and GeoRSS

COPYRIGHTED MATERIAL. Contents. Chapter 1: Creating Structured Documents 1

Excel 2013 Intermediate

Plot Pack Manual Version 2.0

1 Introducing Charts in Excel Customizing Charts. 3 Creating Charts That Show Trends. 4 Creating Charts That Show Differences

Models for Nurses: Quadratic Model ( ) Linear Model Dx ( ) x Models for Doctors:

Excel Manual X Axis Labels Below Chart 2010 Scatter

Using Chart components

COURSE OUTLINE MOC 20480: PROGRAMMING IN HTML5 WITH JAVASCRIPT AND CSS3

HIGHCHARTS - QUICK GUIDE HIGHCHARTS - OVERVIEW

U N I V E R S I T Y O F K E N T U C K Y. efacts 2-click Interactive Building Information Map ~ Help Guide ~ Revised January 20, 2016

Chemistry 30 Tips for Creating Graphs using Microsoft Excel

Classroom Course Description. Course Outline. Tableau Intermediate & Advance. Audience

JavaScript & DHTML Cookbool(

Components for Xcelsius. Micro Components

Section 33: Advanced Charts

HTML5 in Action ROB CROWTHER JOE LENNON ASH BLUE GREG WANISH MANNING SHELTER ISLAND

Automation through Chef Opscode

CONTENTS IN DETAIL. What s in This Book?... xx Who Is This Book For?... xx

Python Scripting for Computational Science

Microsoft Excel 2016 / 2013 Basic & Intermediate

Brenda Lynch TI Summit Algebra 1 October 20, 2012

Excel 2. Module 3 Advanced Charts

BMEGUI Tutorial 1 Spatial kriging

PTC Mathcad Prime 3.0

Creating a Basic Chart in Excel 2007

HTML5, CSS3, JQUERY SYLLABUS

,

GE Fanuc Automation. CIMPLICITY HMI Plant Edition. Trend and XY Chart. CIMPLICITY Monitoring and Control Products.

There are multiple types of charts/graphs: Column, Line, Pie, Bar, Area, Scatter, Stock, Surface, Doughnut, Bubble, and, Radar.

Y8 IT in Science Using Forces

Designed by Jason Wagner, Course Web Programmer, Office of e-learning NOTE ABOUT CELL REFERENCES IN THIS DOCUMENT... 1

chapter two: building your first report... 15

Silverlight Recipes. A Problem-Solution Approach. Apress* Jit Ghosh and Rob Cameron

Working with Charts Stratum.Viewer 6

THIRD EDITION. CSS Cookbook. Christopher Schmitt foreword by Dan Cederholm O'REILLY 8. Beijing Cambridge Farnham Koln Sebastopol Taipei Tokyo

Customizing Content Release 8.2 Version 01M

Pro ASP.NET SignaIR. Real-Time Communication in. Keyvan Nayyeri. .NET with SignaIR 2.1. Apress. Darren White

"Charting the Course... SharePoint 2007 Hands-On Labs Course Summary

Table of Contents. Preface... iii COMPUTER BASICS WINDOWS XP

Pre-Lab Excel Problem

Archi - ArchiMate Modelling. What s New in Archi 4.x

Wakanda Architecture. Wakanda is made up of three main components: Wakanda Server Wakanda Studio Wakanda Client Framework

SAS Web Report Studio 3.1

Excel 2010 Charts and Graphs

Web Development. With PHP. Web Development With PHP

Appendix A: Graph Types Available in OBIEE

ver Wfl Adobe lif Sams Teach Yourself Betsy Bruce Robyn Ness SAMS 800 East 96th Street, Indianapolis, Indiana, USA WlM John Ray ^lg^

Full Stack Web Developer

Python Scripting for Computational Science

Advanced Joomla! Dan Rahmel. Apress*

Spreadsheet and Graphing Exercise Biology 210 Introduction to Research

Detailed Table of Contents

Frontend guide. Everything you need to know about HTML, CSS, JavaScript and DOM. Dejan V Čančarević

Creating and Modifying Charts

PEGACUIS71V1 pegasystems

"Charting the Course... MOC A: Developing with the SharePoint Framework. Course Summary

SAS Visual Analytics 8.2: Getting Started with Reports

Years after US Student to Teacher Ratio

D&B Market Insight Release Notes. November, 2015

ActiveReports 12 Server 1

Course Details. Skills Gained. Who Can Benefit. Prerequisites. View Online URL:

2 Webpage Markup with HTML HTML5 Page Structure Creating a Webpage HTML5 Elements and Entities

COPYRIGHTED MATERIAL. Acknowledgments...v Introduction... xxi

Getting Started. What is SAS/SPECTRAVIEW Software? CHAPTER 1

Practical File Answer key Class X (402)

ESSENTIAL LibreOffice Tutorials for Teachers

SAMLab Tip Sheet #4 Creating a Histogram

Table of Contents. Preface... xiii

Developer's HTML5. Cookbook. AAddison-Wesley. Chuck Hudson. Tom Leadbetter. Upper Saddle River, NJ Boston Indianapolis San Francisco

The Metro Map Maker TM0 Software Requirements Specification

GO! with Microsoft PowerPoint 2016 Comprehensive

Introduction... xi. Lesson 1. Getting Started... 1

"Charting the Course... Comprehensive Angular 5. Course Summary

Overview of the Adobe Dreamweaver CS5 workspace

Transcription:

Create Web Charts With jqplot Fabio Nelli Apress

Contents J About the Author About the Technical Reviewer Acknowledgments Introduction xv xvii xix xxi Chapter 1: Charting Technology Overview 1 Elements in a Chart 1 Most Common Charts 4 How to Realize Charts on the Web 6 HTML5 6 Charting with SVG and CANVAS 7 Canvas vs SVG 7 The DOM 9 Developing in JavaScript 10 Running and Debugging JavaScript 12 Data Types in JavaScript 13 Firebug and DevTools 15 JSON 17 Summary 17 vii

m CONTENTS Chapter 2: jquery Basics 19 Including the jquery Library 20 Selections 21 Chaining Methods 23 The Wrapper Set 23 jquery and the DOM 24 The readyo Method 24 Traversing the DOM with Selections 24 Create and Insert New Elements 26 Remove, Hide, and Replace Elements 27 jquery Ul: Widgets 28 Accordion 29 Tab 31 Button 32 Combo Box 35 Menu 35 Slider 37 Progress Bar 39 Concluding Thoughts on the jquery Library 41 Summary 41 Chapter 3: Introducing jqplot 43 The jqplot library 43 Including Basic Files 44 Plot Basics 45 Adding a Plot Container 45 Creating the Plot 45 Using jqplot Plug-ins 46 Understanding jqplot Options 47 Inserting Options 47 Handling Options on Axes 50 viii

CONTENTS Inserting Series of Data 51 Renderers and Plug-ins: A Further Clarification 55 CSS Customization 57 Thinking in Modules 58 Summary 60 Chapter 4: Line Charts with jqplot 61 Using (x, y) Pairs as Input Data 61 First Steps in the Development of a Line Chart: The Axes 63 Add a Title and Axis Labels 63 Axis Properties 65 Axes Ticks 67 Using the Log Scale 72 The Multiseries Line Chart 74 Multiple Series of Data 74 Smooth-Line Chart 77 Line and Marker Style 78 Animated Charts 80 More Than One y Axis 81 Data with JavaScript 82 Generating Data, Using Math Functions 83 Generating Random Data 84 Handling Date Values 85 The DateAxisRenderer Plug-in 86 Handling Date Values in Different Formats 88 Handling Time Values 89 Highlighting 90 Cursor Highlighter 90 Highlighting with HTML Format 93 ix

m CONTENTS Interacting with the Chart: Limit Lines and Zooming 94 Drawing a Limit Line on the Chart 94 Adding Buttons to Your Charts 96 Zooming 101 Changing Chart Appearance 104 Customizing Text, Using CSS 104 Changing the Background Color 105 Further Customization, Using CSS 106 Setting the Grid 107 Working with Areas on Line Charts 109 Area Charts 109 Line and Area Charts 111 Band Charts 112 Filling Between Lines in a Line Chart 116 Trend Lines 119 Summary 122 Chapter 5: Bar Charts with jqplot 123 Using the BarRenderer Plug-In to Create Bar Charts 123 Rotate Axis Tick Labels 125 Modify the Space Between the Bars 126 Adding Values at the Top of Bars 126 Bars with Negative Values 127 Bar Charts with More Than One Set of Data 129 Vertical and Horizontal Bar Charts 131 Vertical Stacked Bars 133 Horizontal Stacked Bars 134 Combination Charts: Lines in Bar Charts 136 Animated Plot 137 Marimekko Chart 139

i: CONTENTS Bar Chart Events 141 The jqplotdataclick Event 141 The jqplotrightclick Event 143 Other Bar Chart Events 144 Clicking the Bar to Show Information in Text 146 Handling Legends 148 Adding a Legend 148 The Enhanced Legend 151 Custom Legend Highlighting 152 Custom Tool Tip 154 Summary 157 Chapter 6: Pie Charts and Donut Charts with jqplot 159 Pie Charts 159 Donut Charts 162 Multilevel Pie Charts 164 Summary 166 Chapter 7: Candlestick Charts with jqplot 167 OHLC Charts 167 Using Real Bodies and Shadows 170 Comparing Candlesticks 170 Summary 172 Chapter 8: Scatter Charts and Bubble Charts with jqplot 173 Scatter Chart (xy Chart) 173 Bubble Chart 176 Block Chart 180 Summary 181 Chapter 9: Funnel Charts with jqplot 183 Creating a Funnel Chart 183 Summary 186 xi

IS CONTENTS Chapter 10: Adding Controls to Charts 187 Adding Controls 187 Using Radio Buttons 188 Adding Radio Button Controls 188 Accessing Attributes after the Chart Has Already Been Drawn 191 Using Sliders 194 Using Check Boxes 198 Summary 201 Chapter 11: Embedding jqplot Charts in jquery Widgets 203 jqplot Charts on Tabs 203 jqplot Charts on Accordions 209 Resizable and Draggable Charts 212 A Resizable Line Chart 212 Three Draggable Line Charts 214 Summary 218 Chapter 12: Handling Input Using Data 219 the JSON Format 219 The JSON Format 220 A Practical Case: The jqplot Data Renderer 221 JSON and $.getjs0n() 223 Real-Time Charts 225 Summary 228 Appendix A: Guidelines for the Examples in the Book 229 Installing a Web Server 229 Installing Aptana Studio IDE 230 Setting the Aptana Studio Workspace 230 Creating a Project 231 xii

CONTENTS Completing the Workspace 232 Filling the src Directory with the jqplot Library 233 Running the Examples 234 Summary 235 Appendix B: jqplot Plug-ins 237 Index.. 239 xiii