{ "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 = [{\"age\":\"<5\",\"population\":\"2704659\"},{\"age\":\"5-13\",\"population\":\"4499890\"},{\"age\":\"14-17\",\"population\":\"2159981\"},{\"age\":\"18-24\",\"population\":\"3853788\"},{\"age\":\"25-44\",\"population\":\"14106543\"},{\"age\":\"45-64\",\"population\":\"8819342\"},{\"age\":\"≥65\",\"population\":\"612463\"}]\n", "\n", "vida.show(\"pooDmdtX2TREKmTin\", data, options={\"width\": 900,\"height\": 500})\n" ] } ], "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 }