1
1
<!DOCTYPE html>
2
2
< html >
3
- < head >
4
- < title > d3-dual-range-slider</ title >
5
- < meta name ="viewport " content ="width=device-width,initial-scale=1 ">
6
- < meta name ="description " content ="SVG range slider for d3.js ">
7
- < meta name ="keywords " content ="d3 d3.js dual range slider svg component widget ">
3
+ < head >
4
+ < title > d3-dual-range-slider</ title >
5
+ < meta name ="viewport " content ="width=device-width,initial-scale=1 " />
6
+ < meta name ="description " content ="SVG range slider for d3.js " />
7
+ < meta
8
+ name ="keywords "
9
+ content ="d3 d3.js dual range slider svg component widget "
10
+ />
8
11
9
- < link rel ="icon " type ="image/png " href ="favicon.png " />
10
- < meta charset ="utf-8 ">
11
- < link rel ="stylesheet " type ="text/css " href ="css/pages.css ">
12
- < link rel ="stylesheet " type ="text/css " href ="css/graph.css ">
13
- < link rel ="stylesheet " type ="text/css " href ="css/slider.css ">
14
- < script src ="js/d3.v4.min.js "> </ script >
15
- < script src ="js/data.js "> </ script >
16
- < script src ="js/slider.js "> </ script >
17
- < script src ="js/graph.js "> </ script >
18
- < script >
19
- window . onload = function ( ) {
20
- var v1 = 3 ,
21
- v2 = 7 ;
12
+ < link rel ="icon " type ="image/png " href ="favicon.png " />
13
+ < meta charset ="utf-8 " / >
14
+ < link rel ="stylesheet " type ="text/css " href ="css/pages.css " / >
15
+ < link rel ="stylesheet " type ="text/css " href ="css/graph.css " / >
16
+ < link rel ="stylesheet " type ="text/css " href ="css/slider.css " / >
17
+ < script src ="js/d3.v4.min.js "> </ script >
18
+ < script src ="js/data.js "> </ script >
19
+ < script src ="js/slider.js "> </ script >
20
+ < script src ="js/graph.js "> </ script >
21
+ < script >
22
+ window . onload = function ( ) {
23
+ var v1 = 3 ,
24
+ v2 = 7 ;
22
25
23
- // want the same groups colors in both graph and slider
24
- var color = d3 . scaleOrdinal ( d3 . schemeCategory20 ) ;
25
- for ( var i = 0 ; i < 11 ; i ++ ) {
26
- color ( i ) ;
27
- }
28
- // graph is not fully componentized but returns a refresh function
29
- var myGraph = graph ( color ) ;
26
+ // want the same groups colors in both graph and slider
27
+ var color = d3 . scaleOrdinal ( d3 . schemeCategory20 ) ;
28
+ for ( var i = 0 ; i < 11 ; i ++ ) {
29
+ color ( i ) ;
30
+ }
31
+ // graph is not fully componentized but returns a refresh function
32
+ var myGraph = graph ( color ) ;
30
33
31
- function updateGraph ( min , max ) {
32
- var data = getData ( min , max ) ;
33
- myGraph . restart ( data ) ;
34
- }
34
+ function updateGraph ( min , max ) {
35
+ var data = getData ( min , max ) ;
36
+ myGraph . restart ( data ) ;
37
+ }
35
38
36
- setupSlider ( v1 , v2 , updateGraph , color ) ;
37
- updateGraph ( v1 , v2 ) ;
39
+ setupSlider ( v1 , v2 , updateGraph , color ) ;
40
+ updateGraph ( v1 , v2 ) ;
41
+ } ;
42
+ </ script >
43
+ </ head >
38
44
39
- }
40
- </ script >
41
- </ head >
45
+ < body >
46
+ < div class ="header ">
47
+ < div class ="slider-holder "> </ div >
48
+ < div class ="github ">
49
+ < a href ="https://github.com/evoluteur/d3-dual-range-slider "
50
+ > d3-dual-range-slider</ a
51
+ > < br /> < br />
52
+ < iframe
53
+ src ="https://ghbtns.com/github-btn.html?user=evoluteur&repo=d3-dual-range-slider&type=star&count=true&size=small "
54
+ frameborder ="0 "
55
+ scrolling ="0 "
56
+ width ="100px "
57
+ height ="30px "
58
+ > </ iframe >
59
+ </ div >
60
+ </ div >
42
61
43
- < body >
44
-
45
- < div class ="header ">
46
- < div class ="slider-holder "> </ div >
47
- < div class ="github ">
48
- < a href ="https://github.com/evoluteur/d3-dual-range-slider "> d3-dual-range-slider</ a > < br /> < br />
49
- < iframe src ="https://ghbtns.com/github-btn.html?user=evoluteur&repo=d3-dual-range-slider&type=star&count=true&size=small " frameborder ="0 " scrolling ="0 " width ="100px " height ="30px "> </ iframe >
50
- </ div >
51
- </ div >
52
-
53
- < svg id ="graph " width ="800 " height ="600 "> </ svg >
54
-
55
- < footer >
56
- © 2020 < a href ="https://evoluteur.github.io/ "> Olivier Giulieri</ a >
57
- </ footer >
58
-
59
- </ body >
60
-
61
- </ html >
62
+ < svg id ="graph " width ="800 " height ="600 "> </ svg >
63
+ < div class ="more ">
64
+ More of my D3 animations with
65
+ < a href ="https://evoluteur.github.io/meet-the-fans "> meet-the-fans</ a >
66
+ and
67
+ < a href ="https://evoluteur.github.io/d3-table-cards/ "> d3-table-cards</ a > .
68
+ </ div >
69
+ < footer >
70
+ © 2023 < a href ="https://evoluteur.github.io/ "> Olivier Giulieri</ a >
71
+ </ footer >
72
+ </ body >
73
+ </ html >
0 commit comments