JSFiddle - React, Tailwind, and code Playground

by abhisheksimion

HTML

<script src="http://code.highcharts.com/highcharts.js"></script>
<script src="http://code.highcharts.com/highcharts-more.js"></script>
<script src="http://code.highcharts.com/modules/exporting.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.9.0/moment.js"></script>
<div id="container" style="min-width: 400px; height: 400px; margin: 0 auto"></div>

JavaScript

$(function () {
    var esResponse = {"took":43,"timed_out":false,"_shards":{"total":5,"successful":5,"failed":0},"hits":{"total":29,"max_score":1},"aggregations":{"agent_names":{"buckets":[{"key":"LUME - US AGG","doc_count":4,"top-sites":{"buckets":[{"key":"000AAA0I00000000007W","doc_count":2,"top_tags_hits":{"hits":{"total":2,"max_score":1,"hits":[{"_index":"asta_sync","_type":"tasks_run_history","_id":"216934321","_score":1,"_source":{"end_time":"2014-11-20T11:12:49.000-08:00","start_time":"2014-11-20T11:11:41.000-08:00"}},{"_index":"asta_sync","_type":"tasks_run_history","_id":"234218016","_score":1,"_source":{"end_time":"2014-11-20T11:12:49.000-08:00","start_time":"2014-11-20T11:12:11.000-08:00"}}]}}},{"key":"000AAA0I00000000007X","doc_count":2,"top_tags_hits":{"hits":{"total":2,"max_score":1,"hits":[{"_index":"asta_sync","_type":"tasks_run_history","_id":"216556106","_score":1,"_source":{"end_time":"2014-11-20T11:05:33.000-08:00","start_time":"2014-11-20T11:04:28.000-08:00"}},{"_index":"asta_sync","_type":"tasks_run_history","_id":"234218026","_score":1,"_source":{"end_time":"2014-11-20T11:07:33.000-08:00","start_time":"2014-11-20T11:04:28.000-08:00"}}]}}},{"key":"000AAA0I00000000007Y","doc_count":2,"top_tags_hits":{"hits":{"total":2,"max_score":1,"hits":[{"_index":"asta_sync","_type":"tasks_run_history","_id":"235761199","_score":1,"_source":{"end_time":"2014-11-20T11:59:44.000-08:00","start_time":"2014-11-20T10:59:43.000-08:00"}},{"_index":"asta_sync","_type":"tasks_run_history","_id":"217265041","_score":1,"_source":{"end_time":"2014-11-20T10:59:44.000-08:00","start_time":"2014-11-20T10:22:43.000-08:00"}}]}}},{"key":"000AAA0G00000000006K","doc_count":1,"top_tags_hits":{"hits":{"total":1,"max_score":1,"hits":[{"_index":"asta_sync","_type":"tasks_run_history","_id":"234732452","_score":1,"_source":{"end_time":"2014-11-20T10:40:59.000-08:00","start_time":"2014-11-20T10:11:59.000-08:00"}}]}}}]}},{"key":"USWF -...