You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am having trouble with applying "Max results" or any other filter/query to work on an oocharts table:
<div data-oochart='table' data-oochart-start-date='30d' data-oochart-metrics='ga:adClicks,Clicks,ga:avgTimeOnSite,Avg. Time on Site (seconds)' data-oochart-dimensions='ga:keyword,Keyword' data-oochart-profile='MY PROFILE ID'></div>
<script type="text/javascript">
window.onload = function(){
oo.setAPIKey("MY API KEY");
oo.load(function(){
var table = new oo.Table("MY PROFILE ID}{literal}", "30d");
table.addMetric("ga:adClicks", "Clicks");
table.addMetric("ga:avgTimeOnSite", "Avg. Time on Site (seconds)");
table.addDimension("ga:keyword", "Keyword");
table.query.setMaxResults(10);
table.draw('table');
});
};
</script>
I've used table.query.setMaxResults(10); to try and get only 10 results but it doesn't work (table shows with all results.) I've tried using '10'. I've also tried using:
I am having trouble with applying "Max results" or any other filter/query to work on an oocharts table:
I've used table.query.setMaxResults(10); to try and get only 10 results but it doesn't work (table shows with all results.) I've tried using '10'. I've also tried using:
to create pages of 10, but only the first page shows 10 rows, all the rest show random amounts of rows.
I've also tried using the ooCharts setFilter() query and it doesn't work.
Help would be very much appreciated.
Thank you.
The text was updated successfully, but these errors were encountered: