rbplotly 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,89 +0,0 @@
1
- {
2
- "cells": [
3
- {
4
- "cell_type": "code",
5
- "execution_count": 1,
6
- "metadata": {
7
- "collapsed": false
8
- },
9
- "outputs": [
10
- {
11
- "data": {
12
- "text/html": [
13
- "\n",
14
- " <script>\n",
15
- " requirejs.config({paths: { 'plotly': ['https://cdn.plot.ly/plotly-latest.min'] }})\n",
16
- " </script>\n",
17
- "\n",
18
- "\n",
19
- "<div id=\"b0afc398-5988-4aee-96b1-e2651575c9e5\" style=\"height: 100%; width: 100%;\"></div>\n",
20
- "\n",
21
- "<script>\n",
22
- " require(['plotly'], function(Plotly) { \n",
23
- "Plotly.newPlot(\n",
24
- " 'b0afc398-5988-4aee-96b1-e2651575c9e5',\n",
25
- " [{\"x\":[\"giraffes\",\"orangutans\",\"monkeys\"],\"y\":[20,14,23],\"type\":\"bar\",\"name\":\"SF Zoo\"},{\"x\":[\"giraffes\",\"orangutans\",\"monkeys\"],\"y\":[12,18,29],\"type\":\"bar\",\"name\":\"LA Zoo\"}],\n",
26
- " {\"barmode\":\"stack\"},\n",
27
- " {\"linkText\":\"Export to plot.ly\",\"showLink\":true}\n",
28
- ")\n",
29
- "\n",
30
- "window.addEventListener('resize', function() {\n",
31
- " Plotly.Plots.resize(document.getElementById('b0afc398-5988-4aee-96b1-e2651575c9e5'))\n",
32
- "})\n",
33
- " }) \n",
34
- "</script>"
35
- ],
36
- "text/plain": [
37
- "#<Plotly::Offline::HTML:0x007fab9c2c3f40 @id=\"b0afc398-5988-4aee-96b1-e2651575c9e5\", @data=[{:x=>[\"giraffes\", \"orangutans\", \"monkeys\"], :y=>[20, 14, 23], :type=>\"bar\", :name=>\"SF Zoo\"}, {:x=>[\"giraffes\", \"orangutans\", \"monkeys\"], :y=>[12, 18, 29], :type=>\"bar\", :name=>\"LA Zoo\"}], @layout={:barmode=>\"stack\"}, @config={:linkText=>\"Export to plot.ly\", :showLink=>true}, @embedded=true>"
38
- ]
39
- },
40
- "metadata": {},
41
- "output_type": "display_data"
42
- }
43
- ],
44
- "source": [
45
- "require 'rbplotly'\n",
46
- "\n",
47
- "trace1 = {\n",
48
- " x: %w(giraffes orangutans monkeys),\n",
49
- " y: [20, 14, 23],\n",
50
- " type: 'bar',\n",
51
- " name: 'SF Zoo'\n",
52
- "}\n",
53
- "trace2 = {\n",
54
- " x: %w(giraffes orangutans monkeys),\n",
55
- " y: [12, 18, 29],\n",
56
- " type: 'bar',\n",
57
- " name: 'LA Zoo'\n",
58
- "}\n",
59
- "\n",
60
- "plot = Plotly::Plot.new(data: [trace1, trace2], layout: { barmode: 'stack'} )\n",
61
- "plot.show"
62
- ]
63
- },
64
- {
65
- "cell_type": "code",
66
- "execution_count": null,
67
- "metadata": {
68
- "collapsed": true
69
- },
70
- "outputs": [],
71
- "source": []
72
- }
73
- ],
74
- "metadata": {
75
- "kernelspec": {
76
- "display_name": "Ruby 2.3.1",
77
- "language": "ruby",
78
- "name": "ruby"
79
- },
80
- "language_info": {
81
- "file_extension": ".rb",
82
- "mimetype": "application/x-ruby",
83
- "name": "ruby",
84
- "version": "2.3.1"
85
- }
86
- },
87
- "nbformat": 4,
88
- "nbformat_minor": 1
89
- }