SlideShare a Scribd company logo
1 of 31
㈜유미테크
를
이용한 차트 구현
발표자 : 개발 1팀 김영석
2017-05-19
목차
• HighCharts 란?
• HighCharts 특징
• HighCharts 차트 종류
• HighCharts 구성
• HighCharts 기본예제
– 'chart' 설정 예제
– 'title' 설정 예제
– 'x/yAxis' 설정 예제
– 'plotOptions' 설정예제
– 'tooltip' 설정 예제
– 'legend' 설정 예제
– 기타 예제
2
HighCharts 란?
• 순서 자바 스크립트로 작성된 차트 라이브러리
• Norway의 ‘Vik’이라는 작은 마을에 위치한
‘Highsoft’ 회사에서 2009년 출시
• 모바일 브라우저를 지원, 멀티터치 줌 지원
• Modern Browser는 SVG로, 이전 Browser는 VML로 그래프 작성
• Highstock, Highmaps의 기초가 됨
2017-05-19 3
Owner: Torstein Hønsi
HighCharts 특징
• Compatible
– Modern Browser 지원
• Pure JavaScript
• (Non-Commercial) Free
• 간단한 설치
• 심플한 설정 Syntax
• external data loading 가능
2017-05-19 4
HighCharts 차트 종류
2017-05-19 5
[ Line Chart ] [ Bar Chart ]
[ Pie Chart ] [ Area Chart ]
HighCharts 차트 종류
2017-05-19 6
[ Scatter Chart ] [ Gauge Chart ]
[ Polar Chart ] [ Etc… ]
https://www.highcharts.com/demo
HighCharts 구성
2017-05-19 7
title
subtitle
yAxis
xAxis
x/yAxis:title
credits
exporting
legend
tooltip
HighCharts 기본예제
Highcharts.chart('container', {
chart : {
type : 'bar'
},
title : {
text : 'Fruit Consumption'
},
xAxis : {
categories : ['Apples', 'Bananas', 'Oranges']
},
yAxis : {
title : {
text : 'Fruit eaten'
}
},
series : [{
name : 'Jane',
data : [1, 0, 4]
}, {
name : 'John',
data : [5, 7, 3]
}
]
});
2017-05-19 8
차트에 대한 전반적인 설정
차트 제목 설정
x축 설정
y축 설정
차트 데이터 작성
결과:
HighCharts 기본예제
'chart' 설정 예제
2017-05-19 9
• 'chart' 설정 예제 (http://jsfiddle.net/seoka35/52r36gvd)
HighCharts 기본예제
2017-05-19 10
chart : {
type : 'bar'
}
chart : {
type : 'column'
}
• 'chart' 설정 예제
HighCharts 기본예제
2017-05-19 11
chart : {
backgroundColor: "#CCCCCC"
}
chart : {
plotBackgroundColor: "#CCCCCC"
}
• 'chart' 설정 예제
HighCharts 기본예제
2017-05-19 12
chart : {
borderColor: "#CCCCCC",
borderWidth: 2
}
chart : {
plotBorderColor: "#CCCCCC",
plotBorderWidth: 2
}
HighCharts 기본예제
'title' 설정 예제
2017-05-19 13
• 'title' 설정 예제
HighCharts 기본예제
2017-05-19 14
title : {
align: "left"
}
title : {
floating: true
}
• 'title' 설정 예제
HighCharts 기본예제
2017-05-19 15
title : {
style: {
color:'#FF00FF',
fontWeight:'bold'
}
}
title : {
x: 100,
y: 50
}
HighCharts 기본예제
'x/yAxis' 설정 예제
2017-05-19 16
• 'x/yAxis' 설정 예제
HighCharts 기본예제
2017-05-19 17
yAxis : {
gridLineColor:'#000000',
gridLineWidth:2
}
yAxis : {
lineColor: '#000000',
lineWidth: 2
}
• 'x/yAxis' 설정 예제
HighCharts 기본예제
2017-05-19 18
yAxis : {
min:2,
max:6
}
yAxis : {
tickInterval:1,
tikcAmount:16
}
• 'x/yAxis' 설정 예제 (http://jsfiddle.net/seoka35/jzg76jpj)
HighCharts 기본예제
2017-05-19 19
xAxis : {
title:{text:'xAxis Title'}
}
xAxis: {
crosshair:true
}
HighCharts 기본예제
'plotOptions' 설정 예제
2017-05-19 20
• 'plotOptions' 설정 예제
– 차트 데이터 영역에 대한 차트별 공통 설정
HighCharts 기본예제
2017-05-19 21
plotOptions: {
series: {
borderWidth: 2,
borderColor: 'red'
}
}
plotOptions: {
series: {
color: 'red'
}
}
• 'plotOptions' 설정 예제
HighCharts 기본예제
2017-05-19 22
plotOptions: {
series: {
dataLabels: {
enabled:true,
format:'{y} 개'
}
}
}
HighCharts 기본예제
'tooltip' 설정 예제
2017-05-19 23
• 'tooltip' 설정 예제
HighCharts 기본예제
2017-05-19 24
tooltip: {
backgroundColor:'#FCFFC5',
borderColor:'#FF0000',
borderRadius: 10,
borderWidth: 2
}
tooltip: {
formatter: function () {
return 'The value for <b>' + this.x +
'</b> is <b>' + this.y + '</b>';
}
}
• 'tooltip' 설정 예제 (http://jsfiddle.net/seoka35/rquoucst)
HighCharts 기본예제
2017-05-19 25
tooltip: {
formatter: function () {
var s = '<b>' + this.x + '</b>';
$.each(this.points, function () {
s += '<br/>' + this.series.name + ': ' + this.y + 'm';
});
return s;
},
shared: true
}
HighCharts 기본예제
'legend' 설정 예제
2017-05-19 26
• 'legend' 설정 예제
HighCharts 기본예제
2017-05-19 27
legend: {
align: 'right',
verticalAlign: 'middle',
layout: 'vertical'
}
legend: {
backgroundColor: '#FCFFC5',
borderColor: '#C98657',
borderWidth: 1
}
HighCharts 기본예제
기타 예제
2017-05-19 28
• 기타 예제
HighCharts 기본예제
2017-05-19 29
credits: {
enabled: false
}
exporting: {
enabled: false
}
HighCharts 기본예제
• 더 자세한 설정은 HighCharts Options Reference 참고
(http://api.highcharts.com/highcharts)
2017-05-19 30
Reference
• HighCharts Official Site
(https://www.highcharts.com)
• Wikipedia, article 'HighCharts'
(https://en.wikipedia.org/wiki/Highcharts)
2017-05-19 31

More Related Content

What's hot

Cloud computing dummies
Cloud computing dummiesCloud computing dummies
Cloud computing dummies
GillesBescond
 

What's hot (19)

IP Multimedia Subsystem architecture overview
IP Multimedia Subsystem architecture overviewIP Multimedia Subsystem architecture overview
IP Multimedia Subsystem architecture overview
 
B2B Integration in the Cloud
B2B Integration in the CloudB2B Integration in the Cloud
B2B Integration in the Cloud
 
Cross Data Center Replication with Redis using Redis Enterprise
Cross Data Center Replication with Redis using Redis EnterpriseCross Data Center Replication with Redis using Redis Enterprise
Cross Data Center Replication with Redis using Redis Enterprise
 
Docker and the Linux Kernel
Docker and the Linux KernelDocker and the Linux Kernel
Docker and the Linux Kernel
 
RTI Data-Distribution Service (DDS) Master Class - 2010
RTI Data-Distribution Service (DDS) Master Class - 2010RTI Data-Distribution Service (DDS) Master Class - 2010
RTI Data-Distribution Service (DDS) Master Class - 2010
 
Collaboration Architecture Design: Cisco Collaboration Administration: Easy ...
Collaboration Architecture Design:  Cisco Collaboration Administration: Easy ...Collaboration Architecture Design:  Cisco Collaboration Administration: Easy ...
Collaboration Architecture Design: Cisco Collaboration Administration: Easy ...
 
Cloud computing dummies
Cloud computing dummiesCloud computing dummies
Cloud computing dummies
 
Back to [Jaspersoft] Basics: Rest API 101
Back to [Jaspersoft] Basics: Rest API 101Back to [Jaspersoft] Basics: Rest API 101
Back to [Jaspersoft] Basics: Rest API 101
 
Cisco: QoS
Cisco: QoSCisco: QoS
Cisco: QoS
 
SDN 101
SDN 101SDN 101
SDN 101
 
From Mainframe to Microservices: Vanguard’s Move to the Cloud - ENT331 - re:I...
From Mainframe to Microservices: Vanguard’s Move to the Cloud - ENT331 - re:I...From Mainframe to Microservices: Vanguard’s Move to the Cloud - ENT331 - re:I...
From Mainframe to Microservices: Vanguard’s Move to the Cloud - ENT331 - re:I...
 
Colt's evolution from MPLS to Cloud Networking
Colt's evolution from MPLS to Cloud Networking Colt's evolution from MPLS to Cloud Networking
Colt's evolution from MPLS to Cloud Networking
 
Tutorial on SDN and OpenFlow
Tutorial on SDN and OpenFlowTutorial on SDN and OpenFlow
Tutorial on SDN and OpenFlow
 
Cisco datacenter ucs-best-practices_ddebussc_2015d
Cisco datacenter ucs-best-practices_ddebussc_2015dCisco datacenter ucs-best-practices_ddebussc_2015d
Cisco datacenter ucs-best-practices_ddebussc_2015d
 
Protocols and tools
Protocols and toolsProtocols and tools
Protocols and tools
 
Kubernetes Basics
Kubernetes BasicsKubernetes Basics
Kubernetes Basics
 
Kubernetes networking & Security
Kubernetes networking & SecurityKubernetes networking & Security
Kubernetes networking & Security
 
Kubernetes 101 for Beginners
Kubernetes 101 for BeginnersKubernetes 101 for Beginners
Kubernetes 101 for Beginners
 
Docker swarm
Docker swarmDocker swarm
Docker swarm
 

More from ymtech

More from ymtech (20)

20171120 tech day-11th-소프트웨어 테스팅2-서현용
20171120 tech day-11th-소프트웨어 테스팅2-서현용20171120 tech day-11th-소프트웨어 테스팅2-서현용
20171120 tech day-11th-소프트웨어 테스팅2-서현용
 
20170908 tech day-9th-재미없는 java runtime process 디버그-김성중
20170908 tech day-9th-재미없는 java runtime process 디버그-김성중20170908 tech day-9th-재미없는 java runtime process 디버그-김성중
20170908 tech day-9th-재미없는 java runtime process 디버그-김성중
 
20170713 tech day_7th_pxe 부팅-김주한
20170713 tech day_7th_pxe 부팅-김주한20170713 tech day_7th_pxe 부팅-김주한
20170713 tech day_7th_pxe 부팅-김주한
 
20170609 tech day_4th-nginx(lb)-이재훈
20170609 tech day_4th-nginx(lb)-이재훈20170609 tech day_4th-nginx(lb)-이재훈
20170609 tech day_4th-nginx(lb)-이재훈
 
20170414 techday 2nd_uiux디자인-최민희
20170414 techday 2nd_uiux디자인-최민희20170414 techday 2nd_uiux디자인-최민희
20170414 techday 2nd_uiux디자인-최민희
 
20170310 tech day-1st-maven을 이용한 프로그램 빌드-박준홍
20170310 tech day-1st-maven을 이용한 프로그램 빌드-박준홍20170310 tech day-1st-maven을 이용한 프로그램 빌드-박준홍
20170310 tech day-1st-maven을 이용한 프로그램 빌드-박준홍
 
Mikrotic CCR1036 라우팅 설정
Mikrotic CCR1036 라우팅 설정Mikrotic CCR1036 라우팅 설정
Mikrotic CCR1036 라우팅 설정
 
Cubietruck 리눅스 이미지 설치
Cubietruck 리눅스 이미지 설치Cubietruck 리눅스 이미지 설치
Cubietruck 리눅스 이미지 설치
 
Installation Openstack Swift
Installation Openstack SwiftInstallation Openstack Swift
Installation Openstack Swift
 
Welcome to keystone the open stack identity service_v1.0.0-20141208-1212
Welcome to keystone the open stack identity service_v1.0.0-20141208-1212Welcome to keystone the open stack identity service_v1.0.0-20141208-1212
Welcome to keystone the open stack identity service_v1.0.0-20141208-1212
 
Ubuntu Host AP Setting
Ubuntu Host AP SettingUbuntu Host AP Setting
Ubuntu Host AP Setting
 
Intel Galileo Linux Setting
Intel Galileo Linux SettingIntel Galileo Linux Setting
Intel Galileo Linux Setting
 
MarsBoard RK3066 Linux 설치
MarsBoard RK3066 Linux 설치MarsBoard RK3066 Linux 설치
MarsBoard RK3066 Linux 설치
 
HP 3800-24G-2SFP OpenFlow Setting
HP 3800-24G-2SFP OpenFlow SettingHP 3800-24G-2SFP OpenFlow Setting
HP 3800-24G-2SFP OpenFlow Setting
 
Openstack Instance Resize
Openstack Instance ResizeOpenstack Instance Resize
Openstack Instance Resize
 
Openstack live migration
Openstack live migrationOpenstack live migration
Openstack live migration
 
SDN OpenFlow Load Balancer 시나리오
SDN OpenFlow Load Balancer 시나리오SDN OpenFlow Load Balancer 시나리오
SDN OpenFlow Load Balancer 시나리오
 
TR-069 클라이언트 검토자료8편
TR-069 클라이언트 검토자료8편TR-069 클라이언트 검토자료8편
TR-069 클라이언트 검토자료8편
 
TR-069 클라이언트 검토자료7편
TR-069 클라이언트 검토자료7편TR-069 클라이언트 검토자료7편
TR-069 클라이언트 검토자료7편
 
TR-069 클라이언트-검토자료6편
TR-069 클라이언트-검토자료6편TR-069 클라이언트-검토자료6편
TR-069 클라이언트-검토자료6편
 

20170519 tech day-3rd-highcharts를 이용한 차트 구현-김영석

Editor's Notes

  1. (구두로 설명) Torstein Hønsi: 토(르)스테인 헨씨 Vik: 실리콘 밸리가 아닌 노르웨이의 작은 마을 Vik에서 만듬. 현재는 수익의 97%가 노르웨이 외의 고객으로 창출됨 (Vik: 면적은 대구만함, 서울보다큼, 인구수는 2731명뿐;;;;) VML (Vector Markup Language): 2차원 벡터 그래픽스를 위한 XML 기반의 파일 포멧 Highstock: 재무 데이터 시각화 및 대규모 데이터 세트에 최적화된 차트 작성 솔루션 Highmaps: 지도영역에 대한 데이터 표시 가능
  2. Compatible: IE, Chrome, Firefox뿐 아니라, Opera, Safari 지원, Tablet / Mobile 지원, iPad, iPhone과 같은 iOS 지원, Anroid 브라우저 지원 (Non-Commercial) Free: 개인사용자의 경우 무료, 업체의 경우 1개발자마다 410.00 USD…비싼데? 간단한 설치: 별도의 과정없이 다운받은 파일을 경로 옮기고, load하면 끝. License 등록 과정 없음. source를 제공하기때문에 Edit해도 무관 심플한 설정 신텍스: 뒷장에서 소스설명할때 설명 기타: 동적으로 데이터를 추가하여 차트 구성 가능, PNG, JPG, PDF, SVG로 Export 가능,
  3. 차트종류: - Line: 꼭지점이 직각으로 이루어져있는 Line, 곡선으로 이어진 Spline 차트 - Bar: Column 차트, 가로 Bar 차트, Stacked Bar 차트, Stacked Percentage 차트, Range Bar 차트 - Pie: 파이차트, 도넛 차트, 반짤린 Pie/도넛 차트 - Area: 영역차트, Stacked 영역차트, Percentage 영역차트, 곡선 영역차트, Area Range 차트
  4. 차트종류: line, spline, area, area spline, column, bar, pie, scatter, gauges, area range, area spline range, cloumn range, polar chart polar chart: 극좌표…래 기타: 2개의 차트 동시 출력 가능, 약간의 3D 차트 지원, 차트의 오차범위 출력가능 등등…
  5. 웹페이지에 div id가 container인 div 작성 해야함. chart: chart 전반적인 설정, chart 타입, 차트 크기, container 영역 배경색, 등등 title: 제목, 위치, 스타일 설정 xAxis/yAsix: x/y축 설정, 축간격, 축단위, 간격갯수, 최소/최대값, 축 스타일, 축 간격 값 표시 설정, 축 제목 설정 가능 series: 데이터, 데이터 값 출력
  6. 차트 타입 변경하기
  7. 차트 background 변경 - 전체 background - 차트 부분 background
  8. 차트 border 설정 - 차트 div border - 차트 영역 border
  9. 타이틀 위치 설정 차트 위에 타이틀 위치
  10. 차트 title 스타일 설정 차트 title 위치 설정
  11. grid line 스타일 설정 x/y 축 자체 스타일 설정
  12. 최소/최대값 설정 tick interval: 틱 간격 tick amount: 틱 갯수
  13. 축 제목 설정, 축 crosshair 설정
  14. 차트 데이터 영역 border 설정 차트 데이터 영역 color 설정
  15. 차트 데이터 출력 기능
  16. 툴팁 스타일 설정, 툴팁 출력 내용 설정
  17. tooltip shared하면 같은 categories의 내용을 한번에 출력 가능
  18. 범례 x,y 위치 및 layout(horizontal/vertical) 범례 스타일 설정
  19. 우측 하단 highchart 링크 삭제 exporting 기능 제거