$(function () {
$('#alt_graph').highcharts({
chart: {
type: 'spline',
backgroundColor: '#1d2132',
marginTop: 30,
marginBottom: 30,
marginLeft: 50,
marginRight: 10
},
title: {
text: null
},
subtitle: {
text: null
},
xAxis: {
lineColor: '#535353',
type: 'datetime',
dateTimeLabelFormats: { // don't display the dummy year
second: '%H,%M,%S'
},
title: {
text: null
},
labels: {
style: {
color: '#6e8e99' // 원하는 색상으로 설정
}
},
},
yAxis: {
title: {
text: 'Alt. ( °)',
style: {
fontSize: '12px', // 크기 설정
color: '#6e8e99' // 색상 설정
},
x: 9
},
labels: {
style: {
color: '#6e8e99' // 원하는 색상으로 설정
}
},
gridLineColor: '#535353',
tickPositions: [10, 40, 70, 90]
},
legend: {
itemStyle: {
fontSize: '9pt',
fontWeight: 'normal',
color: '#6e8e99'
},
itemHoverStyle: {
color: '#6e8e99' // 마우스 오버 시 글자 색상
},
floating: true,
align: 'right',
x: 15,
y: -5,
verticalAlign: 'top',
borderWidth: 0
},
tooltip: {
shared: true,
crosshairs: true,
headerFormat: '{series.name}
',
pointFormat: '{point.x:%H:%M:%S}: Alt.{point.y:,.0f}°',
backgroundColor: {
linearGradient: { x1: 0, y1: 0, x2: 0, y2: 1 },
stops: [
[0, 'rgba(96, 96, 96, .8)'],
[1, 'rgba(16, 16, 16, .8)']
]
},
borderWidth: 0,
style: {
color: '#FFF'
}
},
plotOptions: {
series: {
marker: {
enabled: false // 선에 마커를 표시하지 않음
},
lineWidth: 0, // 선 굵기
dataLabels: {
enabled: true,
format: '