RcChartGauge
Extends
๊ฒ์ด์ง์ ๊ฒ์ด์ง๊ทธ๋ฃน ๋ชจ๋ธ๋ค์ ๊ธฐ๋ฐ ํด๋์ค.
Properties
name: string (opens in a new tab)
config์์ ์ค์ ํด๋ name์ ๋ฆฌํดํ๋ค.
์ต์ด ์ค์ ํ ์ด๋ฆ์ ๋ณ๊ฒฝํ ์ ์๋ค.
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๋ฅผ ํธ์ถํด์ ๋ค์ ๊ทธ๋ฆฌ๊ฒ ํ ์๋ ์๋ค. |
setValue(value): void (opens in a new tab)
๊ฒ์ด์ง์ ๊ฐ์ ๋ณ๊ฒฝํ๋ค.
Parameter | Type |
---|---|
value | any (opens in a new tab) |
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๋ฅผ ํธ์ถํด์ ๋ค์ ๊ทธ๋ฆฌ๊ฒ ํ ์๋ ์๋ค. |