Commit 13927525 authored by Masayuki Tanaka's avatar Masayuki Tanaka

Update sample

parent 52e5c895
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<div id="chart"></div> <div id="chart"></div>
<script src="http://d3js.org/d3.v3.min.js" charset="utf-8"></script> <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> <script>
var chart = c3.generate({ var chart = c3.generate({
data: { data: {
......
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
}, },
arc: { arc: {
label: { label: {
format: function (d, ratio) { return ""; } // format: function (d, ratio) { return ""; }
}, },
title: "Iris Petal Width" title: "Iris Petal Width"
} }
......
...@@ -23,7 +23,8 @@ ...@@ -23,7 +23,8 @@
x : { x : {
type : 'timeseries', type : 'timeseries',
tick : { 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
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment