그누보드 활성도통계 그래프 이미지가 엑박뜨는거 해결하신분계신가요?
본문
그누보드 오래써왔는데 잘 되다가 어느순간부터 엑박으로 되어있네요
위에것처럼 뜨던게 최근아래처럼 뜨네요
#구글 api 이미지 주소 만들기
$chart_img = "https://chart.googleapis.com/chart?chs={$graph_width}x100&chd=t:{$chd}&cht=lc&chco=".str_replace("#","",$graph_color)."&chf=bg,s,".str_replace("#","",$graph_backcolor);
if($view_grid=='true') $chart_img .="&chg=".(100/$how_day*7).",50";
if($line_blank=='true') $chart_img .= "&chls=".$line_thickness.",".($line_thickness*2).",".$line_thickness;
else $chart_img .= "&chls=".$line_thickness.",".($line_thickness*2).",0";
if($graph_fillcolor) $chart_img .="&chm=B,".str_replace("#","",$graph_fillcolor).",0,0,0";
if($view_marker=='true') {
if(!$graph_fillcolor) $chart_img .="&chm=";
else $chart_img .="|";
$chart_img .="c,6C57E2,0,$high_diff.0,10.0|x,E25757,0,$low_diff.0,10.0";
}
if($graph_fillcolor || $view_marker=='true') $chart_overimg = $chart_img."|";
else $chart_overimg = $chart_img."&chm=";
$target .= "</map><img src='$chart_img' name='d_chart' usemap='#draco_counter_map' border='0'>";
소스는 이부분같은데 이미지주소? 이런게 변경된건가요?
답변 3
chart.googleapis.com 주소를 수정해주세요
$chart_img = //"https://chart.googleapis.com/chart?chs={$graph_width}x100&chd=t:{$chd}&cht=lc&chco=".str_replace("#","",$graph_color)."&chf=bg,s,".str_replace("#","",$graph_backcolor);
변경
$chart_img = "https://image-charts.com/chart?chs={$graph_width}x100&chd=t:{$chd}&cht=lc&chco=".str_replace("#","",$graph_color)."&chf=bg,s,".str_replace("#","",$graph_backcolor);
이렇게 하면 나오네요
구글의 chart.googleapis.com/chart
API는 더 이상 유지보수가 되지 않으므로
대체 API를 사용하시는걸 추천드립니다.
차트 부분을 다운받아서 서버내에서 올려보세요