Last active
August 29, 2015 14:01
-
-
Save mariusbutuc/6539a047e62e9487732f to your computer and use it in GitHub Desktop.
Pusher Stats: focus on open connections data
This file contains hidden or 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
/* | |
* 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