juijs / jui-chart

SVG-based JUI chart that can be used in the browser and Node.js. Support many types of charts. (Dashboard, Map, Topology, Full 3D, Realtime)
https://codepen.io/collection/nLydod/
57 stars 25 forks source link

도메인부분에 데이터를 유동적으로 넣는법 있나요? #140

Closed parkdonguk closed 7 years ago

parkdonguk commented 7 years ago

chart("#chartBox", { axis : [{ x : { type : "fullblock", domain : [ "01월", "02월", "03월", "04월", "05월", "06월", "07월", "08월", "09월", "10월", "11월", "12월"], line : true },

이렇게 1월~12월 있는데요

검색된데이터에 따라 7월부터 시작할수도 있고 그런데..

for($i=0; $i<12; $i++) { if($month){ $month[$i] .= ','.$mon[$i].'월'; }else{ $month[$i] = $mon[$i].'월'; }

    }

이렇게 월을 넣고 배열로 생성해서

넣는방법이 있을까요?

parkdonguk commented 7 years ago

아.. 해결했습니다 ㅎㅎ;;;;