<script>
var hello = 'goodbye';
</script>
This file contains 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
//My predictions for today's score in javascript format ready for the browser console. | |
//Just a quick practise after reading the tutorial at http://www.itnewb.com/tutorial/Introduction-to-JSON-and-PHP | |
var fbScores = {date: '24-03-2012', kickoff: '12.45', game_results: [{team: 'Chelsea FC', score: 3},{team: 'Spurs', score: 1}]} | |
console.log(fbScores.game_results[0].team + " - " + fbScores.game_results[0].score) | |
console.log(fbScores.game_results[1].team + " - " + fbScores.game_results[1].score) |
This file contains 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
h1 { | |
} | |
#wrapper { | |
width: 800px; | |
height:auto; | |
border: 0px solid black; | |
} | |
#first { |
This file contains 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
// Check and list extra parameters listed on a page; using underscore.js | |
taken via | |
var tmParam = {page_name : '/default.aspx', | |
currency_code : 'GBP', | |
product_price : '', | |
product_quantity : '', | |
lid_code : 'XXX', | |
product_sku : '', | |
product_category : '', |
This file contains 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
created using https://github.com/ddopson/underscore-cli | |
C:\>type techcrunch.har | underscore select .url > techcrunchurls.txt | |
C:\>type techcrunch.har | underscore select .url --outfmt text > techcrunchurls2.txt | |
C:\>type techcrunch.har | underscore select .url --outfmt text | grep mydomain > techcrunchurls2.txt | |
'grep' is not recognized as an internal or external command, | |
operable program or batch file. |
In[140]:
%pylab inline
Populating the interactive namespace from numpy and matplotlib
Tahir Fayyaz (tahir.fayyaz@havasmedia.com)
This example shows how it is possible to use a D3 sunburst visualization (partition layout) with data that describes sequences of events.
A good use case is to summarize navigation paths through a web site, as in the sample synthetic data file (visit_sequences.csv). The visualization makes it easy to understand visits that start directly on a product page (e.g. after landing there from a search engine), compared to visits where users arrive on the site's home page and navigate from there. Where a funnel lets you understand a single pre-selected path, this allows you to see all possible paths.
Features:
- works with data that is in a CSV format (you don't need to pre-generate a hierarchical JSON file, unless your data file is very large)
- interactive breadcrumb trail helps to emphasize the sequence, so that it is easy for a first-time user to understand what they are seeing
- percentages are shown explicitly, to help overcome the distortion of the data that occurs wh
Click on any package to zoom in or out. See also this static circle packing example.
based on http://bl.ocks.org/mbostock/7607535
OlderNewer