Permalink
Browse files

Added legend (Prealpha version [unsuable])

Added the legend and the hability to turn the lines on and off. Added
some effects to the legend.
  • Loading branch information...
1 parent 9e2c18e commit 490da143e474a87ff567268fa6cde82f6625fd65 Jesús committed Jul 1, 2012
Showing with 214 additions and 140 deletions.
  1. +211 −135 js/jamcharts.js
  2. +3 −5 test/line.html
View
View
@@ -11,11 +11,11 @@
var graph = {
type : 'line',
theme : 'default',
- legend : 'right', //Position of the legend. Possible values: "right", "left" or "bottom".
+ legend : 'right', //Position of the legend. Possible values: "right", "left" or "bottom". (bottom value can not be used yet.)
title : 'Temperature in USA', //Title of the graphic, can include HTML
subtitle : 'By: Weather Institute', //Subtitle of the graphic, can include HTML
effect : 'left', //Effect display when the graphic is inizialited (effectType, CSS3 transition parameters)
- effectTime:2,
+ effectTime:1,
independent : { //Data refering to de x axis.
categories : ['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec']
//List of all the categories of the xAxis.
@@ -46,8 +46,6 @@
</head>
<body onload="createChart()">
-<div id="chartContainer" style="width:1000px; height:400px">
-
-</div>
+<div id="chartContainer" style="width:1000px; height:400px"></div>
</body>
</html>

0 comments on commit 490da14

Please sign in to comment.