File tree Expand file tree Collapse file tree 7 files changed +9
-10
lines changed Expand file tree Collapse file tree 7 files changed +9
-10
lines changed Original file line number Diff line number Diff line change 5
5
< body >
6
6
< div id ="chart "> </ div >
7
7
8
- < script src ="http://d3js.org/d3.v3 .min.js " charset ="utf-8 "> </ script >
8
+ < script src ="http://d3js.org/d3.v4 .min.js " charset ="utf-8 "> </ script >
9
9
< script src ="c3.min.js "> </ script >
10
10
< script src ="bubble.js "> </ script >
11
11
< script >
Original file line number Diff line number Diff line change 1
1
require . config ( {
2
2
baseUrl : '/js' ,
3
3
paths : {
4
- d3 : "http://d3js.org/d3.v3 .min"
4
+ d3 : "http://d3js.org/d3.v4 .min"
5
5
}
6
6
} ) ;
7
7
Original file line number Diff line number Diff line change 6
6
< div id ="chart "> </ div >
7
7
< div id ="message "> </ div >
8
8
9
- < script src ="http://d3js.org/d3.v3 .min.js " charset ="utf-8 "> </ script >
9
+ < script src ="http://d3js.org/d3.v4 .min.js " charset ="utf-8 "> </ script >
10
10
< script src ="/js/c3.js "> </ script >
11
11
< script >
12
12
Original file line number Diff line number Diff line change 5
5
< body >
6
6
< div id ="chart "> </ div >
7
7
8
- < script src ="http://d3js.org/d3.v3 .min.js " charset ="utf-8 "> </ script >
8
+ < script src ="http://d3js.org/d3.v4 .min.js " charset ="utf-8 "> </ script >
9
9
< script src ="/js/c3.js "> </ script >
10
10
< script >
11
11
Original file line number Diff line number Diff line change 5
5
< body >
6
6
< div id ="chart "> </ div >
7
7
8
- < script src ="http://d3js.org/d3.v3 .min.js " charset ="utf-8 "> </ script >
8
+ < script src ="http://d3js.org/d3.v4 .min.js " charset ="utf-8 "> </ script >
9
9
< script src ="/js/c3.js "> </ script >
10
10
< script >
11
11
var chart = c3 . generate ( {
Original file line number Diff line number Diff line change 5
5
< body >
6
6
< div id ="chart "> </ div >
7
7
8
- <!-- <script src="http://d3js.org/d3.v3.min.js" charset="utf-8"></script>-->
9
- < script src ="/js/d3.min.js " charset ="utf-8 "> </ script >
8
+ < script src ="http://d3js.org/d3.v4.min.js " charset ="utf-8 "> </ script >
10
9
< script src ="/js/c3.js "> </ script >
11
10
< script src ="/js/samples/plugin.js "> </ script >
12
11
< script >
Original file line number Diff line number Diff line change 1
- <!DOCTYPE html>
1
+ <!DOCTYPE html>
2
2
< html xmlns ="http://www.w3.org/1999/xhtml ">
3
3
< head >
4
4
< title > c3ext</ title >
7
7
< link href ="/css/c3.css " rel ="stylesheet " />
8
8
< script src ="http://code.jquery.com/jquery-2.0.3.min.js "> </ script >
9
9
< script src ="https://rawgithub.com/brandonaaron/jquery-mousewheel/master/jquery.mousewheel.min.js "> </ script >
10
- < script src ="http://d3js.org/d3.v3 .min.js " charset ="utf-8 "> </ script >
10
+ < script src ="http://d3js.org/d3.v4 .min.js " charset ="utf-8 "> </ script >
11
11
< script src ="/js/c3.js "> </ script >
12
12
< script src ="/js/extensions/c3ext.js "> </ script >
13
13
< script src ="/js/samples/zoom_reduction.js "> </ script >
@@ -18,7 +18,7 @@ <h1>C3 DataSet Reduction by Zoom Level</h1>
18
18
< h2 > Hackathon May 2014</ h2 >
19
19
< h4 > By Dan-el Khen</ h4 >
20
20
< p > Rendering graphs in the browser has many advantages, the downside is that takes a long time to render when having large datasets. </ p >
21
- < p > This feature allows you reduces the dataset according to your current zoom level.
21
+ < p > This feature allows you reduces the dataset according to your current zoom level.
22
22
It allows the developer to implement the reduction algorithm in a simple function that accepts an array of values, and returns a reduced single value.
23
23
The default reducer will take the first item, but avg/sum/first/last or any other algorithm is simple to implement.
24
24
</ p >
You can’t perform that action at this time.
0 commit comments