Created
May 2, 2014 09:30
-
-
Save ESeufert/92bb4dbf63b280ae0ac8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function resetCharts(metrics) { | |
var countries = getCountries(); // get checked items | |
var metric = aggregateMetric(metrics, countries); // build one metric item out of the selected countries and the full dataset | |
$('#metrics').html(''); // reset the metrics div html | |
buildLineChart(metric, "Retention", ['d1_retention_pct', 'd7_retention_pct', 'd30_retention_pct'], 1000, 300, "Date", "Retention (percentage)"); | |
buildLineChart(metric, "Daily New Users", ['DNU'], 500, 300, "Date", "New Users"); | |
buildLineChart(metric, "Daily Active Users", ['DAU'], 500, 300, "Date", "Users"); | |
buildLineChart(metric, "Average Session Length", ['average_session_length'], 500, 300, "Date", "Session Length (minutes)"); | |
buildLineChart(metric, "Average Sessions per User", ['average_sessions_per_user'], 500, 300, "Date", "Sessions per User"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment