{ "cells": [ { "cell_type": "code", "execution_count": 1, "metadata": { "collapsed": false }, "outputs": [ { "data": { "text/html": [ "" ], "text/plain": [ "" ] }, "execution_count": 1, "metadata": {}, "output_type": "execute_result" } ], "source": [ "import vida\n", "\n", "data = [\n", " {\n", " \"chart_title\": \"Population\",\n", " \"unit\": \"billion\",\n", " \"India\": 1.22,\n", " \"China\": 1.36\n", " },\n", " {\n", " \"chart_title\": \"Popluation Grow Rate\",\n", " \"unit\": \"percentage\",\n", " \"India\": 0.0131,\n", " \"China\": 0.0048\n", " },\n", " {\n", " \"chart_title\": \"Tallest Building\",\n", " \"unit\": \"meter\",\n", " \"India\": 833,\n", " \"China\": 1614\n", " },\n", " {\n", " \"chart_title\": \"Sex Ratio\",\n", " \"unit\": \"\",\n", " \"India\": 1.08,\n", " \"China\": 1.06\n", " },\n", " {\n", " \"chart_title\": \"Literacy All Gender\",\n", " \"unit\": \"percentage\",\n", " \"India\": 0.74,\n", " \"China\": 0.92\n", " },\n", " {\n", " \"chart_title\": \"Literacy All Male\",\n", " \"unit\": \"percentage\",\n", " \"India\": 0.82,\n", " \"China\": 0.96\n", " },\n", " {\n", " \"chart_title\": \"Literacy All Female\",\n", " \"unit\": \"percentage\",\n", " \"India\": 0.65,\n", " \"China\": 0.88\n", " },\n", " {\n", " \"chart_title\": \"Area\",\n", " \"unit\": \"million square km\",\n", " \"India\": 3.31,\n", " \"China\": 9.706\n", " },\n", " {\n", " \"chart_title\": \"Area Land\",\n", " \"unit\": \"million square km\",\n", " \"India\": 2.97,\n", " \"China\": 9.434\n", " },\n", " {\n", " \"chart_title\": \"Area Water\",\n", " \"unit\": \"million square km\",\n", " \"India\": 0.34,\n", " \"China\": 0.272\n", " },\n", " {\n", " \"chart_title\": \"Infant Mortality\",\n", " \"unit\": \"per thousand\",\n", " \"India\": 46.07,\n", " \"China\": 15.62\n", " }\n", "]\n", "\n", "vida.show(\"ZCzewTza4ZSzMWSBG\", data, options={\"width\": 900,\"height\": 700})" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": true }, "outputs": [], "source": [] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": true }, "outputs": [], "source": [] } ], "metadata": { "kernelspec": { "display_name": "Python 2", "language": "python", "name": "python2" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 2 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython2", "version": "2.7.10" } }, "nbformat": 4, "nbformat_minor": 0 }