IBChart(H) API

Global

Methods

staticcreateIBChart(cont, id, opt)

사용자 정의 차트 생성 메소드

  • 사용자가 수정 가능한 메소드
  • 자체 비즈니스 로직을 포함해서 개발가능

wordcloud는 차트를 생성할때, opt.plugin값을 d3로 설정하고 사용해야한다.
또, opt.widthopt.height값은 300px이상으로만 설정해야한다. (※ 너무 작을경우 차트가 표현될 수 없음) 또, %로 설정되었을때 부모의 너비/높이300px 밑으로 내려가도 안된다.

제공버전:

버전 변경사항
v7.3.0.0
Name Type Description
cont string | object

차트 컨테이너 ID 값 또는 DOM 객체

id string

차트 객체 ID 값

opt object optional

차트 생성 옵션

Name Type Default Description
width string optional

차트 컨테이너의 너비(가로)

height string optional

차트 컨테이너의 높이(세로)

locale string "kr" optional

언어 설정

Enum Description
kr 한국어 언어 설정
en 영어 언어 설정
plugin string "hc" optional

플러그인 종류

Enum Description
hc Highcharts 사용
d3 d3js 사용
Example
createIBChart(chart_div, "myChart", {
    width: "100%",
    height: "500px",
    plugin: "hc"
});

// wordcloud
createIBChart(chart_div,"myChart", {
    width: "500px",
    height: "500px",
    plugin: "d3"
});