{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "
\n", " \n", " \n", " \n", "
" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# Vis\n", "\n", "\n", "Chart from Vis.JS [component](00_components.ipynb) in Epyk will be using the property vis from the ui.charts property.\n", "\n", "the ui entry point will give you access to all the registered components.\n", "Different flavour of buttons are available in the framework.\n", "\n", "\n", "## Available Charts\n", "\n", "- [Line Chart](./vis/vis_line.ipynb)\n", "- [Scatter Chart](./vis/vis_scatter.ipynb)\n", "- [Bar Chart](./vis/vis_bar.ipynb)\n", "- [Surface Chart](./vis/surface.ipynb)\n", "- [Scatter 3D Chart](./vis/scatter_3d.ipynb)\n", "- [Line 3D Chart](./vis/line_3d.ipynb)\n", "- [Bar 3D Chart](./vis/bar_3d.ipynb)\n", "- [Timeline](./vis/timeline.ipynb)\n", "- [Network](./vis/network.ipynb)\n", "\n", "\n", "## Example of Charts" ] }, { "cell_type": "code", "execution_count": 4, "metadata": {}, "outputs": [ { "data": { "text/html": [ "\n", "\n", "\n", "\n", "\n", "
\n", "\n", "" ], "text/plain": [ "" ] }, "execution_count": 4, "metadata": {}, "output_type": "execute_result" } ], "source": [ "from epyk.core.Page import Report\n", "from epyk.tests import data_urls\n", "\n", "rptObj = Report()\n", "\n", "data_earth = rptObj.py.requests.csv(data_urls.DATA_EARTHQUAKE)\n", "\n", "timeline = rptObj.ui.charts.vis.timeline(data_earth[:30], y_columns=[\"place\"], x_axis='time')\n", "\n", "rptObj.outs.jupyter()" ] }, { "cell_type": "code", "execution_count": 6, "metadata": {}, "outputs": [ { "data": { "text/html": [ "\n", "\n", "\n", "\n", "\n", "
\n", "\n", "" ], "text/plain": [ "" ] }, "execution_count": 6, "metadata": {}, "output_type": "execute_result" } ], "source": [ "from epyk.core.Page import Report\n", "\n", "rptObj = Report()\n", "\n", "data_earth = rptObj.py.requests.csv(data_urls.DATA_EARTHQUAKE)\n", "\n", "network = rptObj.ui.charts.vis.network()\n", "network.add_node(\"A\")\n", "network.add_node(\"B\")\n", "network.add_edge(0, 1)\n", "\n", "rptObj.outs.jupyter()" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Go back to the Chart Home page\n", "
\n", "Do not forget that this is a collaborative framework so do not hesitate to give feedbacks and like the different repository to get more visbility.\n", "\n", "Also any help is more than welcome !" ] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.8.2" } }, "nbformat": 4, "nbformat_minor": 4 }