에 대한 반응 구글 차트를 만들려고 노력하지만 모든 장치에 대한 반응이 아니다이 난`는 자동으로 Google 웹 로그 분석에서 데이터를 보유 생성 내 웹 애플리케이션 차트에있는 모든 장치의 크기
자바 스크립트 코드 :
var dataChart1 = new gapi.analytics.googleCharts.DataChart({
query: {
'ids': 'ga:789456123', // <-- Replace with the ids value for your view.
'start-date': '30daysAgo',
'end-date': 'yesterday',
'metrics': 'ga:pageviews',
'filters': 'ga:pagePath==<?php echo $page; ?>',
'dimensions': 'ga:date'
},
chart: {
'container': 'chart-1-container',
'type': 'LINE',
'options': {
'width': '40%'
}
}
});
dataChart1.execute();
HTML DIV 태그에 생성 :
<div id="chart-1-container" style="width:100%l height:100%;"></div>
답장을 보내 주셔서 감사합니다. –
더 잘 이해하고 사용하려면이 [https://codepen.io/flopreynat/pen/BfLkA](https://codepen.io/)을 참조하십시오. flopreynat/pen/BfLkA) –