Toggle navigation
Toggle navigation
This project
Loading...
Sign in
신지원
/
Probability Death
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
조민지
2018-12-09 16:08:06 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
b346d39967a2f222466e4d8a623acd9b8602e252
b346d399
1 parent
0150776f
웹페이지 구조 완성
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
392 additions
and
12 deletions
graph/areaspline/3sec_update.htm
graph/areaspline/index.htm → graph/areaspline/areaspline.htm
graph/areaspline/dual_graph.html
graph/areaspline/index.html
graph/areaspline/3sec_update.htm
View file @
b346d39
This diff is collapsed. Click to expand it.
graph/areaspline/
index
.htm
→
graph/areaspline/
areaspline
.htm
View file @
b346d39
...
...
@@ -18,8 +18,8 @@
></div>
<script
type=
"text/javascript"
>
var
death
=
[
3
,
4
,
3
,
5
,
4
,
10
,
12
];
var
temp
=
[
1
,
3
,
10
,
3
,
11
,
5
,
8
];
var
death
=
[
3
,
4
,
3
,
5
,
4
,
10
,
12
,
1
,
2
,
3
];
var
temp
=
[
1
,
3
,
10
,
3
,
11
,
5
,
8
,
4
,
5
,
6
];
var
chart
=
Highcharts
.
chart
(
"container"
,
{
chart
:
{
...
...
@@ -32,8 +32,8 @@
layout
:
"vertical"
,
align
:
"left"
,
verticalAlign
:
"top"
,
x
:
1
5
0
,
y
:
10
0
,
x
:
1
2
0
,
y
:
7
0
,
floating
:
true
,
borderWidth
:
1
,
backgroundColor
:
...
...
@@ -48,13 +48,16 @@
"Thursday"
,
"Friday"
,
"Saturday"
,
"Sunday"
,
"Sunday"
,
"Sunday"
,
"Sunday"
],
plotBands
:
[
{
// 색칠되는 구간
from
:
4
.5
,
to
:
6
.5
,
from
:
7
.5
,
to
:
10
.5
,
color
:
"rgba(68, 170, 213, .2)"
}
]
...
...
@@ -65,7 +68,7 @@
}
},
tooltip
:
{
shared
:
fals
e
,
shared
:
tru
e
,
valueSuffix
:
" %"
,
//point mouseover 단위
},
credits
:
{
...
...
@@ -78,16 +81,19 @@
},
series
:
[
{
name
:
"사망률"
,
data
:
[
3
,
4
,
3
,
5
,
4
,
10
,
12
]
name
:
"사망률
(%)
"
,
data
:
[]
},
{
name
:
"기온"
,
data
:
[
1
,
3
,
10
,
3
,
3
,
5
,
4
]
name
:
"기온
('C)
"
,
data
:
[]
}
]
});
death
.
shift
();
temp
.
shift
();
death
.
push
(
11
);
temp
.
push
(
3
);
...
...
graph/areaspline/dual_graph.html
View file @
b346d39
...
...
@@ -76,7 +76,7 @@ Highcharts.chart('container', {
},
series
:
[{
name
:
'Rainfall'
,
type
:
'spline'
,
type
:
'
area
spline'
,
yAxis
:
1
,
data
:
[
49.9
,
71.5
,
106.4
,
129.2
,
144.0
,
176.0
,
135.6
,
148.5
,
216.4
,
194.1
,
95.6
,
54.4
],
tooltip
:
{
...
...
graph/areaspline/index.html
0 → 100644
View file @
b346d39
<!DOCTYPE html>
<html>
<head>
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=utf-8"
/>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
/>
<title>
Highcharts Example
</title>
<style
type=
"text/css"
></style>
</head>
<body>
<script
src=
"../../code/highcharts.js"
></script>
<script
src=
"../../code/modules/exporting.js"
></script>
<script
src=
"../../code/modules/export-data.js"
></script>
<div
id=
"container1"
style=
"width:1260px; height: 400px; margin: 0 auto"
></div>
<div
style=
"width:1275px; margin:0 auto;"
>
<div
style=
"display: inline-block;"
>
<div
id=
"container2"
style=
"width:400px; height: 300px; padding:0; margin-left:0px;margin-right: 30px;"
></div>
</div>
<div
style=
"display: inline-block;"
>
<div
id=
"container3"
style=
"width:400px; height: 300px; padding:0; margin-left:0px;margin-right: 30px;"
></div>
</div>
<div
style=
"display: inline-block;"
>
<div
id=
"container4"
style=
"width:400px; height: 300px; padding:0; margin-left:0px;"
></div>
</div>
</div>
<script
type=
"text/javascript"
>
Highcharts
.
chart
(
"container1"
,
{
chart
:
{
type
:
"areaspline"
,
animation
:
Highcharts
.
svg
,
// don't animate in old IE
marginRight
:
10
,
events
:
{
load
:
function
()
{
// set up the updating of the chart each second
var
series
=
this
.
series
[
0
];
setInterval
(
function
()
{
var
x
=
new
Date
().
getTime
(),
// 현재 시간
y
=
0.7
//여기에 새로 넣을 값
series
.
addPoint
([
x
,
y
],
true
,
true
);
},
1000
);
//1000=1초 -> 1분=60000
}
}
},
time
:
{
useUTC
:
false
},
title
:
{
text
:
"실시간 사망률"
},
xAxis
:
{
type
:
"datetime"
,
tickPixelInterval
:
150
},
yAxis
:
{
title
:
{
text
:
"Value"
},
plotLines
:
[
{
value
:
0
,
width
:
1
,
color
:
"#808080"
}
]
},
tooltip
:
{
headerFormat
:
"<b>{series.name}</b><br/>"
,
pointFormat
:
"{point.x:%Y-%m-%d %H:%M:%S}<br/>{point.y:.2f}"
},
legend
:
{
//enabled: false
layout
:
"vertical"
,
align
:
"left"
,
verticalAlign
:
"top"
,
x
:
120
,
y
:
70
,
floating
:
true
,
borderWidth
:
1
,
backgroundColor
:
(
Highcharts
.
theme
&&
Highcharts
.
theme
.
legendBackgroundColor
)
||
"#FFFFFF"
},
exporting
:
{
enabled
:
false
},
series
:
[
{
name
:
"사망률(%)"
,
data
:
(
function
()
{
// generate an array of random data
var
data
=
[],
time
=
new
Date
().
getTime
(),
i
;
for
(
i
=
-
19
;
i
<=
0
;
i
+=
1
)
{
data
.
push
({
x
:
time
+
i
*
1000
,
y
:
0
});
}
return
data
;
})()
}
]
});
Highcharts
.
chart
(
"container2"
,
{
chart
:
{
type
:
"spline"
,
animation
:
Highcharts
.
svg
,
// don't animate in old IE
marginRight
:
10
,
events
:
{
load
:
function
()
{
// set up the updating of the chart each second
var
series
=
this
.
series
[
0
];
setInterval
(
function
()
{
var
x
=
new
Date
().
getTime
(),
// 현재 시간
y
=
Math
.
random
();
//
series
.
addPoint
([
x
,
y
],
true
,
true
);
},
3000
);
//1000=1초
}
}
},
time
:
{
useUTC
:
false
},
title
:
{
text
:
"실시간 사망률"
},
xAxis
:
{
type
:
"datetime"
,
tickPixelInterval
:
150
},
yAxis
:
{
title
:
{
text
:
"Value"
},
plotLines
:
[
{
value
:
0
,
width
:
1
,
color
:
"#808080"
}
]
},
tooltip
:
{
headerFormat
:
"<b>{series.name}</b><br/>"
,
pointFormat
:
"{point.x:%Y-%m-%d %H:%M:%S}<br/>{point.y:.2f}"
},
legend
:
{
//enabled: false
layout
:
"vertical"
,
align
:
"left"
,
verticalAlign
:
"top"
,
x
:
120
,
y
:
70
,
floating
:
true
,
borderWidth
:
1
,
backgroundColor
:
(
Highcharts
.
theme
&&
Highcharts
.
theme
.
legendBackgroundColor
)
||
"#FFFFFF"
},
exporting
:
{
enabled
:
false
},
series
:
[
{
name
:
"사망률(%)"
,
data
:
(
function
()
{
// generate an array of random data
var
data
=
[],
time
=
new
Date
().
getTime
(),
i
;
for
(
i
=
-
19
;
i
<=
0
;
i
+=
1
)
{
data
.
push
({
x
:
time
+
i
*
3000
,
y
:
0
});
}
return
data
;
})()
}
]
});
Highcharts
.
chart
(
"container3"
,
{
chart
:
{
type
:
"spline"
,
animation
:
Highcharts
.
svg
,
// don't animate in old IE
marginRight
:
10
,
events
:
{
load
:
function
()
{
// set up the updating of the chart each second
var
series
=
this
.
series
[
0
];
setInterval
(
function
()
{
var
x
=
new
Date
().
getTime
(),
// 현재 시간
y
=
Math
.
random
();
//
series
.
addPoint
([
x
,
y
],
true
,
true
);
},
3000
);
//1000=1초
}
}
},
time
:
{
useUTC
:
false
},
title
:
{
text
:
"실시간 사망률"
},
xAxis
:
{
type
:
"datetime"
,
tickPixelInterval
:
150
},
yAxis
:
{
title
:
{
text
:
"Value"
},
plotLines
:
[
{
value
:
0
,
width
:
1
,
color
:
"#808080"
}
]
},
tooltip
:
{
headerFormat
:
"<b>{series.name}</b><br/>"
,
pointFormat
:
"{point.x:%Y-%m-%d %H:%M:%S}<br/>{point.y:.2f}"
},
legend
:
{
//enabled: false
layout
:
"vertical"
,
align
:
"left"
,
verticalAlign
:
"top"
,
x
:
120
,
y
:
70
,
floating
:
true
,
borderWidth
:
1
,
backgroundColor
:
(
Highcharts
.
theme
&&
Highcharts
.
theme
.
legendBackgroundColor
)
||
"#FFFFFF"
},
exporting
:
{
enabled
:
false
},
series
:
[
{
name
:
"사망률(%)"
,
data
:
(
function
()
{
// generate an array of random data
var
data
=
[],
time
=
new
Date
().
getTime
(),
i
;
for
(
i
=
-
19
;
i
<=
0
;
i
+=
1
)
{
data
.
push
({
x
:
time
+
i
*
3000
,
y
:
0
});
}
return
data
;
})()
}
]
});
Highcharts
.
chart
(
"container4"
,
{
chart
:
{
type
:
"spline"
,
animation
:
Highcharts
.
svg
,
// don't animate in old IE
marginRight
:
10
,
events
:
{
load
:
function
()
{
// set up the updating of the chart each second
var
series
=
this
.
series
[
0
];
setInterval
(
function
()
{
var
x
=
new
Date
().
getTime
(),
// 현재 시간
y
=
Math
.
random
();
//
series
.
addPoint
([
x
,
y
],
true
,
true
);
},
3000
);
//1000=1초
}
}
},
time
:
{
useUTC
:
false
},
title
:
{
text
:
"실시간 사망률"
},
xAxis
:
{
type
:
"datetime"
,
tickPixelInterval
:
150
},
yAxis
:
{
title
:
{
text
:
"Value"
},
plotLines
:
[
{
value
:
0
,
width
:
1
,
color
:
"#808080"
}
]
},
tooltip
:
{
headerFormat
:
"<b>{series.name}</b><br/>"
,
pointFormat
:
"{point.x:%Y-%m-%d %H:%M:%S}<br/>{point.y:.2f}"
},
legend
:
{
//enabled: false
layout
:
"vertical"
,
align
:
"left"
,
verticalAlign
:
"top"
,
x
:
120
,
y
:
70
,
floating
:
true
,
borderWidth
:
1
,
backgroundColor
:
(
Highcharts
.
theme
&&
Highcharts
.
theme
.
legendBackgroundColor
)
||
"#FFFFFF"
},
exporting
:
{
enabled
:
false
},
series
:
[
{
name
:
"사망률(%)"
,
data
:
(
function
()
{
// generate an array of random data
var
data
=
[],
time
=
new
Date
().
getTime
(),
i
;
for
(
i
=
-
19
;
i
<=
0
;
i
+=
1
)
{
data
.
push
({
x
:
time
+
i
*
3000
,
y
:
0
});
}
return
data
;
})()
}
]
});
</script>
</body>
</html>
Please
register
or
login
to post a comment