2016-10-27 5 views

답변

4

전체 공개 저는 ZingChart 팀원입니다.

기본값이 2 인 min-length이라는 속성이 있습니다. 값을 1 또는 0으로 설정할 수 있습니다. gallery에 몇 가지 멋진 예가 있습니다. 또한 단어 구름 문서 here도 있습니다.

var myConfig = { 
 
    "graphset":[ 
 
     { 
 
      "type":"wordcloud", 
 
      "options":{ 
 
       "text":"you are a gg good person", 
 
       "max-items":200, 
 
       "min-length":1 
 
      } 
 
     } 
 
    ] 
 
}; 
 

 
zingchart.render({ 
 
\t id : 'myChart', 
 
\t data : myConfig, 
 
\t height: "100%", 
 
\t width: "100%" 
 
});
html,body,#myChart{ 
 
height: 100%; 
 
width: 100%; 
 
}
<!DOCTYPE html> 
 
<html> 
 
\t <head> 
 
\t <!--Assets will be injected here on compile. Use the assets button above--> 
 
\t \t <script src= "https://cdn.zingchart.com/zingchart.min.js"></script> 
 
\t \t <script> zingchart.MODULESDIR = "https://cdn.zingchart.com/modules/"; 
 
</script> 
 
\t <!--Inject End--> 
 
\t </head> 
 
\t <body> 
 
\t \t <div id='myChart'></div> 
 
\t </body> 
 
</html>

+0

감사합니다 .... 정말 깔끔한 근무 – Amalpriya