SCATTER PLOT 의 전반적인 스타일에 대한 값을 정의
var defaultStyles = { layout : { area : { color : '#f8f8f8' }, line : { color : '#eaeaea', width : 1 }, paddingTop : 43, paddingBottom : 24, paddingLeft : 20, paddingRight : 30 }, graph : { paddingTop: 20, paddingBottom: 0, paddingLeft: 20, paddingRight: 20, area : { color: '#f8f8f8' }, line: { top: { color: '#ccc9c9', width: 1, opacity: 1 }, left: { color: '#ccc9c9', width: 1, opacity: 1 }, right: { color: '#ccc9c9', width: 1, opacity: 1 }, bottom: { color: '#ccc9c9', width: 1, opacity: 1 } } }, yAxis: { width: 44, position: 'left', paddingLeft: 0, paddingRight: 11, line: { color: '#cccccc', width: 1, opacity: 1, underLine : { use : false, color: '#3e4150', width: 1, opacity: 1 } }, text: { family: 'Nanum Gothic', size: 12, color: '#666666', align: 'right', /* left | center | right */ style: 'normal', /* normal | italic */ weight: 'bold', /* normal | bold */ opacity: 1 }, tick: { use : false, length: 5, color: '#807f7f', width: 1, opacity: 1, position: 'out' /* out|in */ } }, xAxis: { height: 10, paddingTop: 10, line: { color: '#e3e3e3', width: 1, opacity: 1, underLine : { use : false, color: '#3e4150', width: 1, opacity: 1 } }, text: { family: 'Nanum Gothic', size: 12, color: '#666666', align: 'center', /* left | center | right */ style: 'normal', /* normal | italic */ weight: 'bold', /* normal | bold */ opacity: 1 } }, trendLine : { use : true, color : '#556673', width : 1, opacity : 1, animate : { use : true, color : '#ca873f' } }, series : { line: { color: '#fff', width: 0 }, area : { type : 'normal', /* normal | upDown */ color : [ '#ff625f', '#ff852c', '#ffbb16', '#d6de1d', '#2bcdba', '#34b8ef', '#5e93f4', '#838bf0', '#cc8af2', '#ff8bcd' ], opacity: 1, size : { max : 25, min : 1 } }, hover : { use : true, area : { color : '#18918d' }, line : { color : '#fff', width : 0 } } }, animate : { use : true, type : 'bounce', /* linear|>|<|<>|bounce|elastic|backln|backOut */ speed : 600 }, drag : { /* 모바일에서는 드래그 기능을 지원하지 않습니다. */ use : false, down : { animate : { use : false, type : 'linear', /* linear|>|<|<>|bounce|elastic|backln|backOut */ opacity : 0.5, speed : 100 } }, up :{ animate : { use : false, type : 'linear', /* linear|>|<|<>|bounce|elastic|backln|backOut */ speed : 200 } } }, enlarge : { use : false, animate : { use : false, type : 'linear', /* linear|>|<|<>|bounce|elastic|backln|backOut */ speed : 400 } } };
SVG 전체 영역 스타일
defalult | type | 설명 | |||
---|---|---|---|---|---|
layout | paddingTop | 43 | number | SVG 전체 영역의 상단 여백 | |
paddingBottom | 24 | number | SVG 전체 영역의 하단 여백 | ||
paddingLeft | 20 | number | SVG 전체 영역의 좌측 여백 | ||
paddingRight | 30 | number | SVG 전체 영역의 우측 여백 | ||
area | color | '#f8f8f8' | string | SVG 전체 영역의 배경 색상 | |
line | color | '#eaeaea' | string | SVG 전체 영역의 테두리 색상 | |
width | 1 | number | SVG 전체 영역의 테두리 두께 |
var styles = { layout: { area : { color : '#f8f8f8' }, line : { color : '#eaeaea', width : 1 }, paddingTop : 30, paddingBottom : 30, paddingLeft : 30, paddingRight : 30 } }
Scatter Plot 이 그려지는 영역의 여백
defalult | type | 설명 | ||
---|---|---|---|---|
graph | paddingTop | 20 | number | graph 의 상단 여백 |
paddingBottom | 0 | number | graph 의 하단 여백 | |
paddingLeft | 20 | number | graph 의 좌측 여백 | |
paddingRight | 20 | number | graph 의 우측 여백 |
var styles = { graph: { paddingTop : 10, paddingBottom : 10, paddingLeft : 10, paddingRight : 10 } }
graph 의 area 영역에 대한 스타일 정의
default | type | 설명 | |||
---|---|---|---|---|---|
graph | area | color | '#f8f8f8' | string | graph 의 배경 색상 |
var styles = { graph: { area: { color : '#fff' } } }
Scatter Plot 이 그려지는 영역의 테두리 설정(상, 하, 좌, 우 각각 따로 지정)
default | type | 설명 | ||||
---|---|---|---|---|---|---|
graph | line | top | color | '#ccc9c9' | string | 상단 선 색상 (영문컬러명이나 RGB값 입력) |
width | 1 | number | 상단 선 두께 (0 ~ ) | |||
opacity | 1 | number | 상단 선 투명도 (0 ~ 1) | |||
left | color | '#ccc9c9' | string | 좌측 선 색상 (영문컬러명이나 RGB값 입력) | ||
width | 1 | number | 좌측 선 두께 (0 ~ ) | |||
opacity | 1 | number | 좌측 선 투명도 (0 ~ 1) | |||
right | color | '#ccc9c9' | string | 우측 선 색상 (영문컬러명이나 RGB값 입력) | ||
width | 1 | number | 우측 선 두께 (0 ~ ) | |||
opacity | 1 | number | 우측 선 투명도 (0 ~ 1) | |||
bottom | color | '#ccc9c9' | string | 하단 선 색상 (영문컬러명이나 RGB값 입력) | ||
width | 1 | number | 하단 선 두께 (0 ~ ) | |||
opacity | 1 | number | 하단 선 투명도 (0 ~ 1) |
var styles = { graph: { line: { top : { color : '#ccc9c9', width : 1, opacity : 1 }, bottom : { color : '#ccc9c9', width : 1, opacity : 1 }, left : { color : '#ccc9c9', width : 1, opacity : 1 }, right : { color : '#ccc9c9', width : 1, opacity : 1 } } } }
Y 축 텍스트가 출력되는 영역의 넓이
default | type | 설명 | ||
---|---|---|---|---|
yAxis | width | 44 | number | Y축 label의 넓이 |
var styles = { yAxis: { width : 60 } }
graph 를 기준으로 한 Y 축의 위치
default | type | 설명 | ||
---|---|---|---|---|
yAxis | position | 'left' | string | graph 를 기준으로 한 Y 축의 위치 ( 'left' or 'right' ) |
var styles = { yAxis: { position: 'left' } }
Y축 label의 위치
default | type | 설명 | ||
---|---|---|---|---|
yAxis | paddingLeft | 0 | number | Y축 label 영역의 좌측 여백 |
paddingRight | 11 | number | Y축 label 영역의 우측 여백 |
var styles = { yAxis: { paddingLeft: 0, paddingRight: 20 } }
Y 축 Line 스타일 정의
default | type | 설명 | ||||
---|---|---|---|---|---|---|
yAxis | line | color | '#cccccc' | string | Y축 선 색상 (영문컬러명이나 RGB값 입력) | |
width | 1 | number | Y축 선 두께 (0 ~ ) | |||
opacity | 1 | number | Y축 선 투명도 (0~1) | |||
underLine | use | false | boolean | Y축 선의 이중 선 사용 여부 ( 'true' or 'false' ) | ||
color | '#3e4150' | string | Y축 선의 이중 선 색상 (영문컬러명이나 RGB값 입력) | |||
width | 1 | number | Y축 선의 이중 선 두께 (0 ~ ) | |||
opacity | 1 | number | Y축 선의 이중 선 투명도 (0~1) |
var styles = { yAxis: { line : { color: '#bab9ba', width: 1, opacity: 1, underLine : { use : true, color: '#3e4150', width: 1, opacity: 1 } } } }
Y 축의 text 영역
default | type | 설명 | |||
---|---|---|---|---|---|
yAxis | text | family | 'Nanum Gothic' | string | 글꼴 종류 이름 ( 영문명 ) |
size | 12 | number | 글꼴 크기 ( px 단위 ) | ||
color | '#666666' | string | 글꼴 색상 ( 영문 색상명 혹은 RGB값 ) | ||
align | 'right' | string | label width 내에서의 텍스트 위치 ( 'left' or 'right' or 'center' ) | ||
style | 'normal' | string | 글꼴 모양 ( 'normal' or 'italic') | ||
weight | 'bold' | string | 글꼴 두께 ( 'normal' or 'bold' ) | ||
opacity | 1 | number | 글꼴 투명도 ( 0 ~ 1 ) |
var styles = { yAxis: { text : { family : 'dotum', size : 11, color : '#000', align : 'center', /* [ left or center or right ] */ style : 'normal', /* [ normal or italic ] */ weight : 'normal', /* [ normal or bold ] */ opacity : 1 } } }
Y 축의 tick 스타일 정의
default | type | 설명 | |||
---|---|---|---|---|---|
yAxis | tick | use | 'false' | boolean | tick 사용 여부 ( 'true' or 'false' ) |
length | 5 | number | tick 길이 | ||
color | '#807f7f' | string | tick 색상 ( 영문 색상명 혹은 RGB값 ) | ||
width | 1 | number | tick 의 두께 ( 0 ~ ) | ||
opacity | 1 | number | tick 의 투명도 ( 0 ~ 1 ) | ||
position | 'in' | string | tick 의 위치 ( 'in' or 'out' , 그래프 내부에 tick 이 위치할 경우 'in', 외부에 위치할 경우 'out' ) |
var styles = { yAxis: { tick: { use : false, length : 5, color : '#000', width : 1, opacity : 1, position : 'out' [ 'in' or 'out' ] } } }
X 축 label 영역의 높이
default | type | 설명 | ||
---|---|---|---|---|
xAxis | height | 10 | number | X축 label의 높이 |
var styles = { xAxis: { height : 10 } }
X 축 label 영역의 padding-top
default | type | 설명 | ||
---|---|---|---|---|
xAxis | paddingTop | 15 | number | X축 label 영역의 상단 여백 |
var styles = { xAxis: { paddingTop: 20 } }
X 축 선 스타일 정의
default | type | 설명 | ||||
---|---|---|---|---|---|---|
xAxis | line | color | '#e3e3e3' | string | X축 선 색상 (영문컬러명이나 RGB값 입력) | |
width | 1 | number | X축 선 두께 (0 ~ ) | |||
opacity | 1 | number | X축 선 투명도 (0~1) | |||
underLine | use | false | boolean | X축 선의 이중 선 사용 여부 ( 'true' or 'false' ) | ||
color | '#3e4150' | string | X축 선의 이중 선 색상 (영문컬러명이나 RGB값 입력) | |||
width | 1 | number | X축 선의 이중 선 두께 (0 ~ ) | |||
opacity | 1 | number | X축 선의 이중 선 투명도 (0~1) |
var styles = { xAxis: { line : { color: '#bab9ba', width: 1, opacity: 1, underLine : { use : true, color: '#3e4150', width: 1, opacity: 1 } } } }
X 축의 text 영역
default | type | 설명 | |||
---|---|---|---|---|---|
xAxis | text | family | 'Nanum Gothic' | string | 글꼴 종류 이름 ( 영문명 ) |
size | 12 | number | 글꼴 크기 ( px 단위 ) | ||
color | '#666666' | string | 글꼴 색상 ( 영문 색상명 혹은 RGB값 ) | ||
align | 'center' | string | label width 내에서의 텍스트 위치 ( 'left' or 'right' or 'center' ) | ||
style | 'normal' | string | 글꼴 모양 ( 'normal' or 'italic') | ||
weight | 'bold' | string | 글꼴 두께 ( 'normal' or 'bold' ) | ||
opacity | 1 | number | 글꼴 투명도 ( 0 ~ 1 ) |
var styles = { yAxis: { text : { family : 'dotum', size : 11, color : '#000', align : 'center', /* [ left or center or right ] */ style : 'normal', /* [ normal or italic ] */ weight : 'normal', /* [ normal or bold ] */ opacity : 1 } } }
추세선의 스타일 정의
default | type | 설명 | |||
---|---|---|---|---|---|
trendLine | use | true | boolean | 추세선의 사용 여부 ( 'true' or 'false' ) | |
color | '#556673' | string | 추세선 색상 (영문컬러명이나 RGB값 입력) | ||
width | 1 | number | 추세선 두께 (0 ~ ) | ||
opacity | 1 | number | 추세선 투명도 (0 ~ 1) | ||
animate | use | true | boolean | 추세선의 애니메이션 사용 여부 ( 'true' or 'false' ) | |
color | '#ca873f' | string | 추세선의 애니메이션 사용시 변경되는 색상 (영문컬러명이나 RGB값 입력) |
var styles = { trendLine: { use : true, color : '#ff0000', width : 1, opacity : 1, animate : { use : true, color : '#ffff00' } } }
plot 의 line 스타일 지정
default | type | 설명 | |||
---|---|---|---|---|---|
series | line | color | '#fff' | string | Plot 의 선 색상 (영문컬러명이나 RGB값 입력) |
width | 0 | number | Plot 의 선 두께 (0 ~ ) |
var styles = { series: { line : { color : '#ff0000', width : 1 } } }
series 의 area 타입이 'normal' 일 때의 스타일 정의
default | type | 설명 | ||||
---|---|---|---|---|---|---|
series | area | type | 'normal' | string | series 의 타입이 'normal' 일 때 ( 'normal' or 'upDown' ) | |
color | [ '#ff625f', '#ff852c', '#ffbb16', '#d6de1d', '#2bcdba', '#34b8ef', '#5e93f4', '#838bf0','#cc8af2', '#ff8bcd' ] | array | series 의 색상 (영문컬러명이나 RGB값 입력) | |||
opacity | 1 | number | series 투명도 (0 ~ 1) | |||
size | max | 25 | number | SVG element 의 높이와 넓이 중 작은 값을 기준으로 한 퍼센트 값으로 series 중 가장 큰 plot 의 지름에 적용 된다. ( 0 ~ )
| ||
min | 1 | number | SVG element 의 높이와 넓이 중 작은 값을 기준으로 한 퍼센트 값으로 series 중 가장 작은 plot 의 지름에 적용 된다. ( 0 ~ )
| |||
hover | use | true | boolean | series 의 hover 이벤트 사용 여부 ( 'true' or 'false' ) | ||
area | color | '#18918d' | string | mouse over 상태인 plot 의 면 색상(영문컬러명이나 RGB값 입력) | ||
line | color | '#fff' | string | mouse over 상태인 plot 의 선 색상(영문컬러명이나 RGB값 입력) | ||
width | 0 | number | mouse over 상태인 plot 의 선 두께 ( 0 ~ ) |
var styles = { series : { area : { type : 'normal', color : [ '#eb2207', '#ebad07', '#ebe807', '#98eb07', '#2deb07', '#07eba3', '#07e3eb', '#0768eb', '#3807eb', '#bd07eb' }, opacity : 1, size : { max : 25, min : 1 } }, hover : { use : true, area : { color : '#ff0000', }, line : { color : '#fff', width : 1 } } } }
series 의 area 타입이 'upDown' 일 때의 스타일 정의
value | type | 설명 | |||||
---|---|---|---|---|---|---|---|
series | area | type | 'upDown' | string | series 의 타입이 upDown 일 때 ( 'normal' or 'upDown' ) | ||
up | color | 'red' | string | series 의 타입이 'up' 일 때 색상 (영문컬러명이나 RGB값 입력) | |||
opacity | 1 | number | series 의 타입이 'up' 일 때 투명도 (0 ~ 1) | ||||
down | color | 'blue' | string | series 의 타입이 'down' 일 때 색상 (영문컬러명이나 RGB값 입력) | |||
opacity | 1 | number | series 의 타입이 'down' 일 때 투명도 (0 ~ 1) | ||||
size | max | 200 | number | series 중 가장 큰 plot 의 size | |||
min | 5 | number | series 중 가장 작은 plot 의 size | ||||
hover | use | 'true' | boolean | series 의 hover 이벤트 사용 여부 ( 'true' or 'false' ) | |||
area | up | color | '#ca2a27' | string | mouse over 상태인 plot 의 type 이 'up' 일 경우의 면 색상(영문컬러명이나 RGB값 입력) | ||
down | color | '#005fa8' | string | mouse over 상태인 plot 의 type 이 'down' 일 경우의 면 색상(영문컬러명이나 RGB값 입력) |
var styles = { series : { area : { type : 'upDown', up : { color : '#ff0000', opacity : 1 }, down : { color : '#fff000', opacity : 1 }, size : { max : 200, min : 10 } }, hover : { use : true, area : { up : { color : '#ca2a27' }, down : { color : '#005fa8' } } } } }
Scatter Plot 의 animate 스타일
default | type | 설명 | ||
---|---|---|---|---|
animate | use | true | boolean | Scatter Plot 의 애니메이션 사용 여부 ( 'true' or 'false' ) |
type | 'bounce' | string | Scatter Plot 의 애니메이션 타입 ( 'linear' or '>' or '<' or '<>' or 'bounce' or 'elastic' or 'backIn' or 'backOut' ) | |
speed | 600 | number | 애니메이션 속도 ( 0 ~ ) |
var styles = { animate: { use : true, /* 애니메이션 사용 여부 */ type : 'elastic', /* 애니메이션 type */ speed : 600 } }
Scatter Plot 의 drag 이벤트
default | type | 설명 | ||||
---|---|---|---|---|---|---|
drag | use | false | boolean | Scatter Plot 의 drag 이벤트 사용 여부 ( 'true' or 'false' ) | ||
down | animate | use | false | boolean | Plot 의 mouse down 시 애니메이션 사용 여부 ( 'true' or 'false' ) | |
type | 'linear' | string | Plot 의 mouse down 시 애니메이션 타입 ( 'linear' or '>' or '<' or '<>' or 'bounce' or 'elastic' or 'backIn' or 'backOut' ) | |||
opacity | 0.5 | number | Mouse down 시 Plot 의 투명도 ( 1 ~ 0 ) | |||
speed | 100 | number | 애니메이션 속도 | |||
up | animate | use | false | boolean | Plot 의 mouse up시 애니메이션 사용 여부 ( 'true' or 'false' ) | |
type | 'linear' | string | Plot 의 mouse up 시 애니메이션 타입 ( 'linear' or '>' or '<' or '<>' or 'bounce' or 'elastic' or 'backIn' or 'backOut' ) | |||
speed | 200 | number | 애니메이션 속도 |
var styles = { drag: { use : true, /* 애니메이션 사용 여부 */ down : { animate : { use : true, type : 'linear', opacity : 0.5, speed : 100 } }, up: { animate : { use : true, type : 'linear', opacity : 0.5, speed : 100 } } } }
Scatter Plot 의 unlarge 이벤트 - (drag 이벤트와 중복 사용 불가)
default | type | 설명 | |||
---|---|---|---|---|---|
enlarge | use | false | boolean | Scatter Plot 의 enlarge 이벤트 사용 여부 ( 'true' or 'false' ) | |
animate | use | false | boolean | Scatter Plot 의 enlarge 이벤트 시 애니메이션 사용 여부 ( 'true' or 'false' ) | |
type | 'linear' | string | Plot 의 mouse click 시 애니메이션 타입 ( 'linear' or '>' or '<' or '<>' or 'bounce' or 'elastic' or 'backIn' or 'backOut' ) | ||
speed | 400 | number | 애니메이션 속도 |
var styles = { enlarge: { use : true, /* unlarge 이벤트 사용 여부 */ animate : { use : true, /* animate 사용 여부 */ type : 'bounce', /* 애니메이션 type */ speed : 600 /* 애니메이션 speed */ } } }