Browse Source

Update sample

pull/80/head
Masayuki Tanaka 11 years ago
parent
commit
13927525ac
  1. 2
      htdocs/samples/chart_bar.html
  2. 2
      htdocs/samples/donut.html
  3. 3
      htdocs/samples/timeseries.html

2
htdocs/samples/chart_bar.html

@ -6,7 +6,7 @@
<div id="chart"></div>
<script src="http://d3js.org/d3.v3.min.js" charset="utf-8"></script>
<script src="/js/c3.min.js"></script>
<script src="/js/c3.js"></script>
<script>
var chart = c3.generate({
data: {

2
htdocs/samples/dount.html → htdocs/samples/donut.html

@ -39,7 +39,7 @@
},
arc: {
label: {
format: function (d, ratio) { return ""; }
// format: function (d, ratio) { return ""; }
},
title: "Iris Petal Width"
}

3
htdocs/samples/timeseries.html

@ -23,7 +23,8 @@
x : {
type : 'timeseries',
tick : {
format : "%m/%d" // https://github.com/mbostock/d3/wiki/Time-Formatting#wiki-format
// format : "%m/%d" // https://github.com/mbostock/d3/wiki/Time-Formatting#wiki-format
format : "%e %b %y" // https://github.com/mbostock/d3/wiki/Time-Formatting#wiki-format
}
}
}

Loading…
Cancel
Save