Skip to content

Instantly share code, notes, and snippets.

@mariusbutuc
Last active August 29, 2015 14:01
Show Gist options
  • Save mariusbutuc/6539a047e62e9487732f to your computer and use it in GitHub Desktop.
Save mariusbutuc/6539a047e62e9487732f to your computer and use it in GitHub Desktop.
Pusher Stats: focus on open connections data
/*
* Goal: see the peaks in Pusher connection counts
*
* Data: https://app.pusher.com/stats
* Example: http://i.imgur.com/ok517vf.png
*
*/
// Make graphs full-width
$('#sidebar-nav, .navbar, #IntercomDefaultWidget').css('display', 'none');
$('.content').css('margin-left', '0');
$('.yAxis .tickLabel').css('left', '0px');
// Only keep connections graph
$('#daily_messages_graph, #message_graph').css('display', 'none');
$('h4').slice(4, 6).css('display', 'none');
// Focus on the details
$('#connections_graph, #connections_graph canvas').css('height', '650px');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment