#latest #basic
#latest
#basic
$("..").sbChart();
$("....").sbChart({data:{ ... }});
<script type="text/javascript" src="https://code.jquery.com/jquery-3.3.1.min.js"></script> <script type="text/javascript" src="js/sbchart.js"></script> <script> (function($) { $(function() { var charts = $("#chartWrap").sbChart({ data: { type: "bar", columns: [ ["2017",2.8,1.45,2.35,0.29,0.42,2.0,5.12,1.12,2.3,2.67,1.4,2.2,1.3,3.8,0.23,2.9,1.62,2.66] ] } }); // 2초후 데이터 변경 setTimeout(function() { charts.forEach(function(chart) { chart.data({ type: "area", columns: [ ["온라인쇼핑몰 거래액 (백만원)", 7707750, 7573752, 7914913, 7386713, 8708523, 8624841, 8785755, 8048044, 9083890, 8740814] ] }).render(); }); },2000); }); })(jQuery.noConflict()) </script>