mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-22 01:58:47 +02:00
N°5621 Move C3 0.4.11 to NPM
This commit is contained in:
18
node_modules/c3/htdocs/js/samples/requirejs.js
generated
vendored
Normal file
18
node_modules/c3/htdocs/js/samples/requirejs.js
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
require.config({
|
||||
baseUrl: '/js',
|
||||
paths: {
|
||||
d3: "http://d3js.org/d3.v3.min"
|
||||
}
|
||||
});
|
||||
|
||||
require(["d3", "c3"], function(d3, c3) {
|
||||
|
||||
window.chart = c3.generate({
|
||||
data: {
|
||||
columns: [
|
||||
['sample', 30, 200, 100, 400, 150, 250]
|
||||
]
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
Reference in New Issue
Block a user