Skip to content

Commit

Permalink
Tutorial Updated
Browse files Browse the repository at this point in the history
  • Loading branch information
theavijitsarkar committed Mar 22, 2015
1 parent 56ea6fc commit aa9f8e1
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ On the head section include the canchart.js file
##### Step 2 : JAVASCRIPT
Initialize the chart with various parameters
```javascript

window.onload = function(){

//Parameters
Expand All @@ -40,11 +39,8 @@ var legend_x="Legend X"; //Name of the Horizontal Legend
var legend_y="Legend Y"; //Name of the Vertical Legend

/* Colored Band
Use these to create a colored band behind the chart. This is optional, just pass a blank object in its place to remove this
Ex:- cantest.init("canTest", div , height , startTimestamp, 1 , color, max_y, max_x,{},strokeBuffer);
*/

var alarmParams={};
Expand All @@ -56,21 +52,16 @@ alarmParams.r_s=38;
alarmParams.r_e=0;
alarmParams.order="ryg";




//Create an Object of the class
cantest = new CanvasChart();
//Initialize the object
cantest.init("canTest", div , height , startTimestamp, 1 , color, max_y, max_x,alarmParams,strokeBuffer);


//The scale function draws the x and y axis.

cantest.scale(max_x,max_y, legend_x , legend_y);



//Draw a vertical alert marker
cantest.alert_x(75,"Ver","blue");

Expand Down Expand Up @@ -101,9 +92,6 @@ function draw(){
//Returns a canvas with the snapshot of chart in PNG format

var snapshot = cantest.snapshot();



}

```
Expand Down

0 comments on commit aa9f8e1

Please sign in to comment.