Skip to content

Commit

Permalink
Better examples
Browse files Browse the repository at this point in the history
  • Loading branch information
ankane committed Nov 9, 2019
1 parent 7cc839b commit f91798b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -691,13 +691,13 @@ <h1>Round and Precision</h1>
<h1>Zeros - Precision</h1>
<div id="zeros-precision" style="height: 300px;"></div>
<script>
new Chartkick.ColumnChart("zeros-precision", [["A",1],["B",1.2],["C",1.23],["D",1.234],["E",1.2345]], {precision: 3, zeros: true});
new Chartkick.ColumnChart("zeros-precision", [["A",12],["B",12.3],["C",12.34],["D",12.345],["E",12.3456]], {precision: 4, zeros: true});
</script>

<h1>Zeros - Round</h1>
<div id="zeros-round" style="height: 300px;"></div>
<script>
new Chartkick.ColumnChart("zeros-round", [["A",1],["B",1.2],["C",1.23],["D",1.234],["E",1.2345]], {round: 3, zeros: true});
new Chartkick.ColumnChart("zeros-round", [["A",12],["B",12.3],["C",12.34],["D",12.345],["E",12.3456]], {round: 4, zeros: true});
</script>

<h1>Null Data</h1>
Expand Down

0 comments on commit f91798b

Please sign in to comment.