Browse Source

Update sample for requirejs

pull/232/merge
Masayuki Tanaka 11 years ago
parent
commit
7981ee67d2
  1. 4
      htdocs/js/samples/requirejs.js

4
htdocs/js/samples/requirejs.js

@ -7,7 +7,7 @@ require.config({
require(["d3", "c3"], function(d3, c3) { require(["d3", "c3"], function(d3, c3) {
var chart = c3.generate({ window.chart = c3.generate({
data: { data: {
columns: [ columns: [
['sample', 30, 200, 100, 400, 150, 250] ['sample', 30, 200, 100, 400, 150, 250]
@ -15,4 +15,4 @@ require(["d3", "c3"], function(d3, c3) {
} }
}); });
}); });

Loading…
Cancel
Save