Lissy93/twitter-sentiment-visualisation

View on GitHub
views/page_hexagons.jade

Summary

Maintainability
Test Coverage
extends layout

block content
    br
    span.grey-text
        | Hover over a hexagon to read the associated Tweet.
        | Sentiment is represented by color.
        | All Tweets are real-time and from the past 60 seconds.
    #chart(style='width: 100%; margin: 0; padding: 0;').center-block

block scripts
    script(type='text/javascript').
        var results = !{JSON.stringify(data)};
        var average = !{JSON.stringify(averageSentiment)};
        var searchTerm = !{JSON.stringify(searchTerm)};
        var hexPage = true;
    script(type = 'text/javascript', src = 'https://cdn.socket.io/socket.io-1.4.3.js')
    script(type = 'text/javascript', src = '/bower_components/d3/d3.min.js')
    script(type = 'text/javascript', src = '/bower_components/hexbin/index.js')
    script(type = 'text/javascript', src = '/bower_components/d3tip/index.js')
    script(type='text/javascript', src='/javascripts/charts/hexagons-module.js')