Skip to content

Instantly share code, notes, and snippets.

@monbro
Forked from spraetz/Multiple Projects
Created March 24, 2014 15:44
Show Gist options
  • Save monbro/9742869 to your computer and use it in GitHub Desktop.
Save monbro/9742869 to your computer and use it in GitHub Desktop.
<script>
Keen.onChartsReady(function() {
var client1 = new Keen.Client({
projectId: "...",
readKey: "..."
});
var client2 = new Keen.Client({
projectId: "...",
readKey: "..."
});
var client1chart = new Keen.Metric("purchases", {
analysisType: "count"
},
client1);
var client2chart = new Keen.Metric("purchases", {
analysisType: "count"
},
client2);
client1chart.draw(document.getElementById("div1"));
client2chart.draw(document.getElementById("div2"));
});
</script>
<div id="div1"></div>
<div id="div2"></div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment