RcBody
Extends
์๋ฆฌ์ฆ๋ค์ด ๊ทธ๋ ค์ง๋ ์์ญ ๋ชจ๋ธ.
Config Properties
Name | Type | Description |
---|---|---|
annotation | Annotation[] | annotation ์ค์ ์ Body์ ํ ์๋ ์๋ค. |
centerX | string | number | ์ฐจํธ๊ฐ ๊ทน์ขํ(polar)์ผ ๋ ์ค์ฌ x ์ขํ. |
centerY | string | number | ์ฐจํธ๊ฐ ๊ทน์ขํ(polar)์ผ ๋ ์ค์ฌ y ์ขํ. |
circular | boolean | false์ด๋ฉด polar ์ฐจํธ์ผ ๋, x ์ถ์ ๊ณผ y์ถ ๊ทธ๋ฆฌ๋ ์ ๋ค์ ๋ค๊ฐํ์ผ๋ก ํ์ํ๋ค. |
image | BackgroundImage | ๋ฐฐ๊ฒฝ ์ด๋ฏธ์ง ์ค์ ๋ชจ๋ธ. |
radius | string | number | ์ฐจํธ๊ฐ ๊ทน์ขํ(polar)์ผ ๋ ๋ฐ์ง๋ฆ. |
style | SVGStyles | string | ์คํ์ผ์ ํน์ class selector. |
visible | boolean | ํ์ ์ฌ๋ถ. |
zoomButton | ZoomButton | Zoom ๋ฆฌ์ ๋ฒํผ ์ค์ ๋ชจ๋ธ. |
zoomType | ZoomType | plot ์์ญ ๋ง์ฐ์ค ๋๋๊น ์ ํตํ zooming ๋ฐฉ์. |
Methods
get(prop): any (opens in a new tab)
์ง์ ํ ์ค์ ๊ฐ(๋ค)์ ๊ฐ์ ธ์จ๋ค.
์ง์ ๊ฐ๋ฅํ ์ค์ ๊ฐ ๋ชฉ๋ก์ Configuration API ํ์ด์ง์์ ํ์ธํ ์ ์๋ค.
Utils.log(chart.series.get('name'))
ํ์ ๊ฐ์ฒด์ ์ค์ ์์ฑ์ ์์ฑ ๊ฒฝ๋ก๋ฅผ ์ง์ ํด์ ์ง์ ๊ฐ์ ธ์ฌ ์๋ ์๋ค.
Utils.log(chart.axis.get('title.text'));
์์ฑ ๋ณ๊ฒฝ์ set, setAll, toggle๋ฑ์ผ๋ก ์คํํ๋ค.
Parameter | Type | Description |
---|---|---|
prop | string (opens in a new tab) | '.'์ผ๋ก ๊ตฌ๋ถ๋๋ ์์ฑ ๊ฒฝ๋ก. |
set(prop, value, redraw): RcChartObject
์ง์ ํ ์์ฑ์ ๊ฐ(๋ค)์ ์ค์ ํ๋ค.
์ง์ ๊ฐ๋ฅํ ์ค์ ๊ฐ ๋ชฉ๋ก์ Configuration API ํ์ด์ง์์ ํ์ธํ ์ ์๋ค.
๋, ์ด ๊ฐ์ฒด ์์ ์ ๋ฆฌํดํ๋ฏ๋ก javascript์์ builder ํจํด์ผ๋ก ์ค์ ๊ฐ๋ค์ ์ฐ์ํด์ ์ง์ ํ ์ ์๋ค.
chart.series.set('xAxis', 1).set('yAxis', 1);
get์์์ ๋ง์ฐฌ๊ฐ์ง๋ก ํ์ ๊ฐ์ฒด์ ์ค์ ์์ฑ์ ์์ฑ ๊ฒฝ๋ก๋ฅผ ํตํด ์ง์ ์ค์ ํ ์๋ ์๋ค.
chart.axis.set('title.text', 'New Title'));
Parameter | Type | Description |
---|---|---|
prop | string (opens in a new tab) | ์ค์ ์์ฑ ๊ฒฝ๋ก ๋ฌธ์์ด |
value | any (opens in a new tab) | ์ง์ ํ ๊ฐ(๋ค) |
redraw=true | boolean (opens in a new tab) | true๋ก ์ง์ ํ๋ฉด chart๋ฅผ ๋ค์ ๊ทธ๋ฆฐ๋ค. false๋ก ์ง์ ํ๊ณ ์ฌ๋ฌ ์ค์ ํ์ render๋ฅผ ํธ์ถํด์ ๋ค์ ๊ทธ๋ฆฌ๊ฒ ํ ์๋ ์๋ค. |
setAll(props, redraw): RcChartObject
JSON ๊ฐ์ฒด๋ก ์ง์ ํ ์์ฑ๋ค์ ๊ฐ์ ์ค์ ํ๋ค.
์ง์ ๊ฐ๋ฅํ ์ค์ ๊ฐ ๋ชฉ๋ก์ Configuration API ํ์ด์ง์์ ํ์ธํ ์ ์๋ค.
chart.series.set({
xAxis: 1,
yAxis: 1,
yField: 'salary'
});
Parameter | Type | Description |
---|---|---|
props | object (opens in a new tab) | ์ฌ๋ฌ ์ค์ ๊ฐ๋ค์ด ์ง์ ๋ JSON ๊ฐ์ฒด |
redraw=true | boolean (opens in a new tab) | true๋ก ์ง์ ํ๋ฉด chart๋ฅผ ๋ค์ ๊ทธ๋ฆฐ๋ค. false๋ก ์ง์ ํ๊ณ ์ฌ๋ฌ ์ค์ ํ์ render๋ฅผ ํธ์ถํด์ ๋ค์ ๊ทธ๋ฆฌ๊ฒ ํ ์๋ ์๋ค. |
toggle(prop, redraw): RcChartObject
Boolean ํ์
์ ์ค์ ๊ฐ์ ๋ณ๊ฒฝํ๋ค.
์ง์ ๊ฐ๋ฅํ ์ค์ ๊ฐ ๋ชฉ๋ก์ Configuration API ํ์ด์ง์์ ํ์ธํ ์ ์๋ค.
chart.getSeries('ser02').toggle('visible');
Parameter | Type | Description |
---|---|---|
prop | string (opens in a new tab) | ์ค์ ์์ฑ ์ด๋ฆ |
redraw=true | boolean (opens in a new tab) | true๋ก ์ง์ ํ๋ฉด chart๋ฅผ ๋ค์ ๊ทธ๋ฆฐ๋ค. false๋ก ์ง์ ํ๊ณ ์ฌ๋ฌ ์ค์ ํ์ render๋ฅผ ํธ์ถํด์ ๋ค์ ๊ทธ๋ฆฌ๊ฒ ํ ์๋ ์๋ค. |