This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var namespace = (function(){ | |
function setUp(){ | |
// generate some test data | |
var chartData = []; | |
var numDataPoints = 100; | |
var dataMax = 10; | |
var PI = 3.14; | |
for(var i = 0; i < numDataPoints; i++){ | |
chartData.push(Math.sin(i * (PI/numDataPoints)) * dataMax); | |
} |