JavaScript Charting Library

Slides:



Advertisements
Similar presentations
Office Links - Sharing Data in Microsoft Office A Mixed Bag of Treasures Chester N. Barkan Registrar Long Island University, C.W.Post Campus.
Advertisements

KompoZer. This is what KompoZer will look like with a blank document open. As you can see, there are a lot of icons for beginning users. But don't be.
Intermediate Level Course. Text Format The text styles, bold, italics, underlining, superscript and subscript, can be easily added to selected text. Text.
9. AJAX & RIA. 2 Motto: O! call back yesterday, bid time return. — William Shakespeare.
Integrating Access with the Web and with Other Programs.
19-Jun-15 Ajax. The hype Ajax (sometimes capitalized as AJAX) stands for Asynchronous JavaScript And XML Ajax is a technique for creating “better, faster,
XP New Perspectives on Microsoft Access 2002 Tutorial 71 Microsoft Access 2002 Tutorial 7 – Integrating Access With the Web and With Other Programs.
Chapter 6 DOJO TOOLKITS. Objectives Discuss XML DOM Discuss JSON Discuss Ajax Response in XML, HTML, JSON, and Other Data Type.
Form Handling, Validation and Functions. Form Handling Forms are a graphical user interfaces (GUIs) that enables the interaction between users and servers.
4.1 JavaScript Introduction
4-1 INTERNET DATABASE CONNECTOR Colorado Technical University IT420 Tim Peterson.
Programming with Microsoft Visual Basic 2012 Chapter 12: Web Applications.
CNIT 133 Interactive Web Pags – JavaScript and AJAX JavaScript Environment.
Miscellaneous Excel Combining Excel and Access. – Importing, exporting and linking Parsing and manipulating data. 1.
1 In the good old days... Years ago… the WWW was made up of (mostly) static documents. –Each URL corresponded to a single file stored on some hard disk.
Website Development with PHP and MySQL Saving Data.
TUTORIAL 9 INSTRUCTOR: HANIF ULLAH ID: OFFICE #: 2029 DATE: 22/04/2012 Introduction to MS Project 2007.
Lecture 9: AJAX, Javascript review..  AJAX  Synchronous vs. asynchronous browsing.  Refreshing only “part of a page” from a URL.  Frameworks: Prototype,
Web Development 101 Presented by John Valance
HTML Forms. Slide 2 Forms (Introduction) The purpose of input forms Organizing forms with a and Using different element types to get user input A brief.
Offline Web Apps - an offline web application is a list of URLs for HTML, CSS, JavaScript, images, or any other kind of resource. Most browsers have offline.
The Report Generator Viewing Student Outcomes. Install the Report Generator In a browser, go to Click.
MySQL Importing and creating a database. CSV (Comma Separated Values) file CSV = Comma Separated Values – they are simple text files containing data which.
Gold – Crystal Reports Introductory Course Cortex User Group Meeting New Orleans – 2011.
How to Use Google Charts. Using Google Charts Google Charts is used to provide a way to visualize data on your website. You can choose to use simple line.
 Previous lessons have focused on client-side scripts  Programs embedded in the page’s HTML code  Can also execute scripts on the server  Server-side.
INT222 - Internet Fundamentals Shi, Yue (Sunny) Office: T2095 SENECA COLLEGE.
Lukasz Kokoszkiewicz. Allow to additionally filter main table content All of them can be added by simply in a settings file Right now we have 4 kinds.
©SoftMooreSlide 1 Introduction to HTML: Forms ©SoftMooreSlide 2 Forms Forms provide a simple mechanism for collecting user data and submitting it to.
CHAPTER 8 AJAX & JSON WHAT IS AJAX? Ajax lets you…
XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 8 1 Microsoft Office Access 2003 Tutorial 8 – Integrating Access with the.
PHP (cont.). 2 Functions Definition – function name(arguments){... } –syntax name as for a variable, but without $ arguments as for variables –to return.
Build a database II: Create tables for a new Access database Create your tables In a relational database, tables store your data. Your data doesn’t “live”
LIS654 lecture 4 more on omeka Thomas Krichel
1 CSC160 Chapter 1: Introduction to JavaScript Chapter 2: Placing JavaScript in an HTML File.
JavaScript and Ajax (JavaScript Environment) Week 6 Web site:
Emdeon Office Batch Management Services This document provides detailed information on Batch Import Services and other Batch features.
Advanced HTML Tags:.
CHAPTER 10 JAVA SCRIPT.
Add More Zing to your Dashboards – Creating Zing Plot Gadgets
Miscellaneous Excel Combining Excel and Access.
21 Essential Data Visualization Tools
Microsoft Office Access 2010 Lab 2
How to Write Web Forms By Mimi Opkins.
Human Computer Interaction
SAGExplore web server tutorial for Module III:
Chapter 19 PHP Part III Credits: Parts of the slides are based on slides created by textbook authors, P.J. Deitel and H. M. Deitel by Prentice Hall ©
Data Validation and Protecting Workbook
CQG XData Walkthrough.
Data File Import / Export
Using DataStore Plus ActiveX in FactoryTalk View Studio ME Projects
PHP / MySQL Introduction
Microsoft FrontPage 2003 Illustrated Complete
Azure Machine Learning & ML Studio
Intro to PHP & Variables
Testing REST IPA using POSTMAN
JQuery UI Plug-ins, Object Models & the Window Object
Learning about Taxes with Intuit ProFile
WEB PROGRAMMING JavaScript.
Module 5: Data Cleaning and Building Reports
Access Tutorial 8 Sharing, Integrating, and Analyzing Data
Microsoft Office Access 2003
Microsoft Office Access 2003
Learning about Taxes with Intuit ProFile
Tutorial 7 – Integrating Access With the Web and With Other Programs
Chengyu Sun California State University, Los Angeles
Chengyu Sun California State University, Los Angeles
Introduction to JavaScript
Chapter 8 Using Document Collaboration and Integration Tools
Tutorial 8 Sharing, Integrating, and Analyzing Data
Presentation transcript:

JavaScript Charting Library Dygraphs JavaScript Charting Library

Dygraphs is a fast, flexible open source JavaScript charting library Dygraphs is a fast, flexible open source JavaScript charting library. It allows users to explore and interpret dense data sets.

1.Features Handles huge data sets Interactive GUI : zoom, pan and mouse over are on by default Highly customizable : by using options and custom callbacks Works in all recent browsers

2.Installation Include dygraph.js and dygraph.css Locally or use CDN <script src="//cdnjs.cloudflare.com/ajax/libs/dygraph/2.0.0/dygraph.min.js"></script> <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/dygraph/2.0.0/dygraph.min.css" />

3.How to Plot? Containing DIV g = new Dygraph(div, data, { option1: value1, option2: value2, ... } ); Raw CSV Data or CSV File Options (Object)

4.Data Argument There are four types of input that Dygraphs will accept: CSV data => Mostly Used URL array (native format) DataTable

4.1 - CSV data Date,Series1,Series2 2009/07/12,100,200 # comments are OK on data lines 2009/07/19,150,201 The data can be tab-delimited too. The delimiter is set by the delimiter option. The default is ",". If no delimiter is found in the first row, it switches over to tab.

4.1 - CSV data CSV parsing can be split into three parts: Headers x-values y-values

4.1 - CSV data Headers : If you don't specify the labels option, Dygraphs will look at the first line of your CSV data to get the labels. new Dygraph(div, // "Date,Series1,Series2\n“ + "2009/07/12,100,200\n" + "2009/07/19,150,201\n", { labels: [ "Date", "Series1", "Series2" ] } );

4.1 - CSV data x-values : Once the headers are parsed, Dygraphs needs to determine what the type of the x values is. They're either dates or numbers Here are some valid date formats: 2009-07-12 2009/07/12 2009/07/12 12 2009/07/12 12:34 2009/07/12 12:34:56

4.1 - CSV data y-values : Dependent (y-axis) values are simpler than x-values because they're always numbers.

4.2 - URL If you pass in a URL, Dygraphs will issue an XMLHttpRequest (XHR) for it and attempt to parse the returned data as CSV. Make sure the URL is accessible and returns data in text format (as opposed to a CSV file with an HTML header(

4.3 - Array If you'll be constructing your data set from a server-side program then you're better off producing an array than CSV data. This saves the cost of parsing the CSV data and also avoids common parser errors. new Dygraph(div, [ [1,10,100],[2,20,80],[3,50,60],[4,70,80] ], { labels: [ "x", "A", "B" ] } );

4.3 - Array Headers : Headers for native format must be specified via the labels option. There's no other way to set them.

4.3 - Array x-values : If you want your x-values to be dates, you'll need to use specify a Date object in the first column. Otherwise, specify a number. Here's a sample array with dates on the x-axis: [ [ new Date("2009/07/12"), 100, 200 ], [ new Date("2009/07/19"), 150, 220 ] ] y-values : The same as CSV Data

4.4 – Data Table You can also specify a Google Visualization Library DataTable object as your input data

5.Examples

5.1 – Example 1

5.1 – Example 1 : Result

5.2 – Example 2

5.2 – Example 2 : Result

5.2 – Example 2_1

5.2 – Example 2_1 : Result

5.3 – Example 3

5.3 – Example 3 : Result

5.4 – Example 4

5.4 – Example 4 : Result

5.5 – Example 5

5.5 – Example 5 : Result

5.6 – Example 6

5.6 – Example 6 : Result

6.Update Options After you've created a Dygraph, you can change an option by calling the updateOptions method: g.updateOptions({ new_option1: value1, new_option2: value2 });

6.1 - file Option (in updateOptions) Sets the data being displayed in the chart. This can only be set when calling updateOptions; it cannot be set from the constructor. Type: string (URL of CSV or CSV), 2D Array Default: (set when constructed)

6.2 - One Example Dynamically Updated Data

6.2 – Example

6.2 – Example : Result

Course : Data Mining Presenter : M. Ali Tabatabaie