ための応答Googleのチャートを作成しようとしているが、それはすべてのデバイスの応答ではありませんはI`mは、自動的にGoogleアナリティクスのデータを保持して生成私は私のWebアプリケーションチャートに持っているすべてのデバイスのサイズ
のJavaScriptコード:
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) –