#latest #options
#latest
#options
타이틀을 지정하고 표시 위치를 변경합니다.
title.text
타이틀을 지정합니다.
title.position
타이틀 위치를 지정합니다.
top-center (default) top-right top-left
title.padding.top
상단 Padding을 지정합니다.
title.padding.right
우측 Padding을 지정합니다.
title.padding.bottom
하단 Padding을 지정합니다.
title.padding.left
좌측 Padding을 지정합니다.
var chart = sb.chart.render("#chartWrap", { data: { type: "bar", columns: [ ["2015",3.51,4.6,3.43,7.96,3.37,5.83,0.35,3.23,-0.09,4.47,2.21,1.13,0.77,0.35,0.92,2.65,1.64,8.08], ["2016",0.71,2.14,3.18,-1.84,0.79,0.35,0.28,0.44,0.79,0.84,1.33,-0.7,-1.51,0.09,1.05,-1.66,-0.58,4.63], ["2017",1.48,3.64,2.35,1.29,1.42,1.34,1.51,-1.08,4.29,1.67,2.4,-0.36,-0.53,1.98,2.23,-0.9,-1.62,1.66] ] }, title: { text: "시도별 주택가격 변동률", position: "top-center", padding: { top: 0, right: 0, bottom: 10, left: 0 } } }); document.getElementById("txtText").value = chart.title().text; document.getElementById("txtTop").value = chart.title().padding.top; document.getElementById("txtRight").value = chart.title().padding.right; document.getElementById("txtBottom").value = chart.title().padding.bottom; document.getElementById("txtLeft").value = chart.title().padding.left; document.getElementById("txtText").onchange = function() { chart.title().text = this.value; chart.render(); }; document.getElementById("cboPostion").onchange = function() { chart.title().position = this.value; chart.render(); }; document.getElementById("txtTop").onchange = function() { chart.title().padding.top = this.value; chart.render(); }; document.getElementById("txtRight").onchange = function() { chart.title().padding.right = this.value; chart.render(); }; document.getElementById("txtBottom").onchange = function() { chart.title().padding.bottom = this.value; chart.render(); }; document.getElementById("txtLeft").onchange = function() { chart.title().padding.left = this.value; chart.render(); };