Skip to content

Commit

Permalink
Experiments with charts
Browse files Browse the repository at this point in the history
  • Loading branch information
alfredwassermann committed Mar 2, 2017
1 parent a319187 commit 5cd6a6d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions examples/chart.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,11 @@ <h2>Chart examples</h2>
<div id="debug" style="display:block;"></div>
<script type="text/javascript">
/* <![CDATA[ */
var board = JXG.JSXGraph.initBoard('jxgbox', {originX: 350, originY: 450, unitX: 50, unitY: 20});
var board = JXG.JSXGraph.initBoard('jxgbox', {originX: 350, originY: 450, unitX: 50, unitY: 20, axis:true});

var dataArr = [4,1.2,3,2,5,7,1.54,function () { return 2; }];
var dataArr = [4, 1.2, 3, NaN, 5, 4, 1.54, function () { return 2; }];

board.create('curve', [[0,1,2,3,4, 5, 6, 7], dataArr]);
// Line chart
function lineChart() {
JXG.JSXGraph.freeBoard(board);
Expand Down

0 comments on commit 5cd6a6d

Please sign in to comment.