»Ë»Ñ Æ÷·³
°³¹ßÀÚÆ÷·³ ÀÔ´Ï´Ù.
  • ºÏ¸¶Å© ¾ÆÀÌÄÜ

chartjs¿¡¼­ Á¶°Ç ¸¸Á·ÇÒ ½Ã, »ö»ó º¯°æ½ÃÅ°µµ·Ï ÇÏ°í½Í½À´Ï´Ù.1

  • [* ºñȸ¿ø *]
  • µî·ÏÀÏ 2016-06-26 18:49
  • Á¶È¸¼ö 1305
var chartLabels = [];
var chartData = [];
$.getJSON("/stock/materialList?fno="+fno, function(data) {
$.each(data, function(inx, obj) {
chartLabels.push(obj.mname);
chartData.push(obj.mamount);
});
removeChart();
createChart();
});
var lineChartData = {
labels : chartLabels,
datasets : [ {
label : "Àç°í",
fillColor: "rgba(186,236,255,0.2)",
       strokeColor: "rgba(23,120,255,0.5)",
data : chartData
]
}
 

jsonÇü½ÄÀ¸·Î ¹ÞÀº chartData¿¡¼­

ƯÁ¤ °ªµéÀÌ 20%ÀÌÇϸé fillColor¸¦ º¯°æÇϵµ·Ï ÇÏ°í½ÍÀºµ¥

µµ¹«Áö °¨ÀÌ ¾ÈÀâÈü´Ï´Ù. 

¾î¶»°Ô ÇؾßÇÒ±î¿ä?

0
ÃßõÇϱ⠴ٸ¥ÀÇ°ß 0
|
°øÀ¯¹öÆ°

´Ù¸¥ÀÇ°ß 0 Ãßõ 0 »ÏÀÌ
  • ¾Ë¸² ¿å¼³, »óó ÁÙ ¼ö ÀÖ´Â ¾ÇÇÃÀº »ï°¡ÁÖ¼¼¿ä.
©¹æ »çÁø  
¡â ÀÌÀü±Û¡ä ´ÙÀ½±Û