{ "metadata": { "name": "", "signature": "sha256:e7c691f4d5704391b97142837168537910b02e871e7635fd5001d746984dbd41" }, "nbformat": 3, "nbformat_minor": 0, "worksheets": [ { "cells": [ { "cell_type": "heading", "level": 1, "metadata": {}, "source": [ "iScatter Configurator" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Routines for generating draft *iScatter* charts from a *pandas* dataframe.\n", "\n", "The *[iScatter](http://michel.wermelinger.ws/chezmichel/software/iscatter/)* library is a d3.js powered Javascript library for generating intereactive scatterplots that can be used to support simple visual exploratory statistical analysis of a small, grouped dataset.\n", "\n", "*iScatter* parses datasets described according to Stephens' NOIR model. Scale definitions as then used a basis for supporting different statistical operations. The statistics supported are as follows (items higher up the stack inherit statistics from lower down the stack).\n", "\n", "````\n", " case \"ratio\":\n", " case \"interval\":\n", " i = i.concat([\"mean\", \"range\", \"midrange\", \"stddev\"]);\n", " case \"ordinal\":\n", " i = i.concat([\"min\", \"lq\", \"median\", \"uq\", \"max\"]);\n", " case \"nominal\":\n", " i = i.concat([\"count\", \"mode\"])\n", "````\n", "\n", "To get a feel for the operations supported by *iScatter* charts, the chart embeds a tour, access via the *?* button on the chart as in the example found on the [*iScatter* homepage](http://michel.wermelinger.ws/chezmichel/software/iscatter/).\n", "\n", "This notebook provides a routine for automatically drafting configuration and files (the data schema, a chart configuration file, a CSV data file) and publishing a quick draft *iScatter* chart for a dataset provided as a *pandas* dataframe.\n", "\n", "*iScatter is copyright \u00a9 2013\u20132014 by The Open University, UK. It was implemented by Michel Wermelinger with contributions from Sam Leicester and Callum Lester, and is written in Javascript, using d3.js, jQuery, Guiders-JS and Glyphicons.*" ] }, { "cell_type": "code", "collapsed": false, "input": [ "#This is a simple HTML webpage template for publishing the chart\n", "#There is a single piece of customisation required - specifying the name of the configuration file\n", "#The configuration file name is currently constrained to be of the form: SLUG_config.js\n", "#The configuration file name is currently constrained to be located in the data/ folder\n", "iscatterTemplate='''\n", "\n", "\n", "
\n", " \n", "