PHP Highcharts 그래프 달마다 1일 혹은 말일 선택하면 그래프가 안보여요.
조회수 1630회
안녕하세요. 제목 그말대로 그래프 1일 혹은 말일 선택하면 그래프가 안보여요. 이외에는 잘 보입니다.
위에 2016-12-26 부터 2017-01-01 < 이번달 1일 때문에 그래프가 안보입니다. 왜그런지 잘모르겠네요. ㅠ 나머지 이번달 1일과 말일 제외하면 문제없이 잘보입니다.
Highcharts.setOptions({
lang: {
contextButtonTitle: "프린터 인쇄",
printChart: "그래프 인쇄",
downloadJPEG: "JPEG 다운로드",
downloadPDF: "PDF 다운로드",
downloadPNG: "PNG 다운로드",
downloadSVG: "SVG vector 다운로드",
loading:"로딩중..."
}
});
Highcharts.chart('container', {
chart: {
type: 'column'
},
title: {
text: picker+' 매체별 통계 그래프'
},
xAxis: {
type: 'datetime',
labels: {
format: '{value:%d}'+'일',
},
pointInterval: 24 * 3600 * 1000, // one day
},
yAxis: {
min: 0,
title: {
text: ''
},
stackLabels: {
enabled: true,
style: {
fontWeight: 'bold',
color: (Highcharts.theme && Highcharts.theme.textColor) || 'gray'
}
}
},
legend: {
align: 'right',
x: -30,
verticalAlign: 'top',
y: 25,
floating: true,
backgroundColor: (Highcharts.theme && Highcharts.theme.background2) || 'white',
borderColor: '#CCC',
borderWidth: 1,
shadow: false
},
tooltip: {
//headerFormat: '<b>{point.x}</b><br/>',
pointFormat: '{series.name}: {point.y}<br/>Total: {point.stackTotal}'
},
plotOptions: {
series: {
pointStart: Date.UTC(parseInt(picker_s[0].substring(0,4)), parseInt(picker_s[0].substring(5,7))-1, parseInt(picker_s[0].substring(8,10))),
pointInterval: 24 * 3600 * 1000 // one day
},
column: {
stacking: 'normal',
dataLabels: {
enabled: true,
color: (Highcharts.theme && Highcharts.theme.dataLabelsColor) || 'white'
}
}
},
series: [{
name: '소개/기타',
data: inflow_Data("h")
}, {
name: '홈페이지',
data: inflow_Data("g")
}, {
name: '인콜',
data: inflow_Data("f")
}, {
name: '워킹',
data: inflow_Data("e")
}, {
name: '옐로우아이디',
data: inflow_Data("c")
}, {
name: 'CPA',
data: inflow_Data("b")
}, {
name: '랜딩/키워드',
data: inflow_Data("a")
}, {
type: 'spline',
name: 'SNS',
data: inflow_Data("d")
}, {
type: 'spline',
name: '합계',
data: inflow_Data("i")
}]
});
});
부탁드립니다. 도와주세요. ㅠ
-
(•́ ✖ •̀)
알 수 없는 사용자
1 답변
-
inflow_Data의 값이 9, 10, 11일만 있는것 같네요.
inflow_Data의 값이 잘 들어가있는지 체크해보세요.
-
(•́ ✖ •̀)
알 수 없는 사용자
-
댓글 입력