Commit 4b0bd1cd authored by Masayuki Tanaka's avatar Masayuki Tanaka

Add sample for requirejs

parent 531f2a2e
require.config({
baseUrl: '/js',
paths: {
d3: "http://d3js.org/d3.v3.min"
}
});
require(["d3", "c3"], function(d3, c3) {
var chart = c3.generate({
data: {
columns: [
['sample', 30, 200, 100, 400, 150, 250]
]
}
});
});
\ No newline at end of file
<html>
<head>
<link rel="stylesheet" type="text/css" href="/css/c3.css">
<script data-main="/js/samples/requirejs.js" src="/js/require.js"></script>
</head>
<body>
<div id="chart"></div>
</body>
</html>
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