toji 1.6.4 → 1.6.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/example/schedule.ipynb +29 -29
- data/lib/toji/schedule/date_column.rb +4 -2
- data/lib/toji/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b1a2b7e3b28049c6bcea4e592b05b34e30d6401f000a2c34131587bdb618cebc
|
4
|
+
data.tar.gz: 9b2ea8360654519981cb1e892107b4210f04b4fd01a41bbd9e9635c102456401
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 44ba2b32fa2d77088a3161730b5621e770f7ce800d2a241fa5cbecf107189f0e6b047d99723f8a442c91276ef4cbefd68ba7621f94b2efe686cbaba22cffcadb
|
7
|
+
data.tar.gz: 90a4964b60455e1be915052aa54656459651c2f8b3868097c2ac279fd9b19495f3c31b399d334f385800482b6a38a1cd8780e2bbe703a82d3374a325d166289d
|
data/example/schedule.ipynb
CHANGED
@@ -23,25 +23,25 @@
|
|
23
23
|
" </script>\n",
|
24
24
|
"\n",
|
25
25
|
"\n",
|
26
|
-
"<div id=\"
|
26
|
+
"<div id=\"516412a0-4ac6-49cc-9ed5-0ab8372b69b4\" style=\"height: 100%; width: 100%;\"></div>\n",
|
27
27
|
"\n",
|
28
28
|
"<script>\n",
|
29
29
|
" require(['plotly'], function(Plotly) { \n",
|
30
30
|
"Plotly.newPlot(\n",
|
31
|
-
" '
|
31
|
+
" '516412a0-4ac6-49cc-9ed5-0ab8372b69b4',\n",
|
32
32
|
" [{\"type\":\"table\",\"header\":{\"values\":[\"\",\"moto\",\"soe\",\"naka\",\"tome\",\"yodan\",\"total\"]},\"cells\":{\"values\":[[\"rice_total\",\"rice\",\"koji\",\"alcohol\",\"water\",\"lactic_acid\"],[35.0,\"\",35.0,\"\",123.0,0.8],[65.0,65.0,\"\",\"\",\"\",\"\"],[200.0,150.0,50.0,\"\",200.0,\"\"],[300.0,245.0,55.0,\"\",400.0,\"\"],[\"\",\"\",\"\",\"\",128.0,\"\"],[600.0,460.0,140.0,\"\",851.0,0.8]]}}],\n",
|
33
33
|
" {\"height\":350},\n",
|
34
34
|
" {\"linkText\":\"Export to plot.ly\",\"showLink\":true}\n",
|
35
35
|
")\n",
|
36
36
|
"\n",
|
37
37
|
"window.addEventListener('resize', function() {\n",
|
38
|
-
" Plotly.Plots.resize(document.getElementById('
|
38
|
+
" Plotly.Plots.resize(document.getElementById('516412a0-4ac6-49cc-9ed5-0ab8372b69b4'))\n",
|
39
39
|
"})\n",
|
40
40
|
" }) \n",
|
41
41
|
"</script>"
|
42
42
|
],
|
43
43
|
"text/plain": [
|
44
|
-
"#<Plotly::Offline::HTML:
|
44
|
+
"#<Plotly::Offline::HTML:0x00007fdea580e388 @id=\"516412a0-4ac6-49cc-9ed5-0ab8372b69b4\", @data=[{:type=>:table, :header=>{:values=>[\"\", :moto, :soe, :naka, :tome, :yodan, :total]}, :cells=>{:values=>[[:rice_total, :rice, :koji, :alcohol, :water, :lactic_acid], [35.0, \"\", 35.0, \"\", 123.0, 0.8], [65.0, 65.0, \"\", \"\", \"\", \"\"], [200.0, 150.0, 50.0, \"\", 200.0, \"\"], [300.0, 245.0, 55.0, \"\", 400.0, \"\"], [\"\", \"\", \"\", \"\", 128.0, \"\"], [600.0, 460.0, 140.0, \"\", 851.0, 0.8]]}}], @layout={:height=>350}, @config={:linkText=>\"Export to plot.ly\", :showLink=>true}, @embedded=true>"
|
45
45
|
]
|
46
46
|
},
|
47
47
|
"metadata": {},
|
@@ -63,25 +63,25 @@
|
|
63
63
|
" </script>\n",
|
64
64
|
"\n",
|
65
65
|
"\n",
|
66
|
-
"<div id=\"
|
66
|
+
"<div id=\"2bbb7089-b8dd-46c1-88f7-83b42bdba33a\" style=\"height: 100%; width: 100%;\"></div>\n",
|
67
67
|
"\n",
|
68
68
|
"<script>\n",
|
69
69
|
" require(['plotly'], function(Plotly) { \n",
|
70
70
|
"Plotly.newPlot(\n",
|
71
|
-
" '
|
71
|
+
" '2bbb7089-b8dd-46c1-88f7-83b42bdba33a',\n",
|
72
72
|
" [{\"type\":\"table\",\"header\":{\"values\":[\"\",\"moto\",\"soe\",\"naka\",\"tome\",\"yodan\",\"total\"]},\"cells\":{\"values\":[[\"rice_total\",\"rice\",\"koji\",\"alcohol\",\"water\",\"lactic_acid\"],[32.0,\"\",32.0,\"\",112.0,0.733],[60.0,60.0,\"\",\"\",\"\",\"\"],[184.0,138.0,46.0,\"\",183.0,\"\"],[275.0,225.0,50.0,\"\",367.0,\"\"],[\"\",\"\",\"\",\"\",117.0,\"\"],[551.0,423.0,128.0,\"\",779.0,0.733]]}}],\n",
|
73
73
|
" {\"height\":350},\n",
|
74
74
|
" {\"linkText\":\"Export to plot.ly\",\"showLink\":true}\n",
|
75
75
|
")\n",
|
76
76
|
"\n",
|
77
77
|
"window.addEventListener('resize', function() {\n",
|
78
|
-
" Plotly.Plots.resize(document.getElementById('
|
78
|
+
" Plotly.Plots.resize(document.getElementById('2bbb7089-b8dd-46c1-88f7-83b42bdba33a'))\n",
|
79
79
|
"})\n",
|
80
80
|
" }) \n",
|
81
81
|
"</script>"
|
82
82
|
],
|
83
83
|
"text/plain": [
|
84
|
-
"#<Plotly::Offline::HTML:
|
84
|
+
"#<Plotly::Offline::HTML:0x00007fdea58b4788 @id=\"2bbb7089-b8dd-46c1-88f7-83b42bdba33a\", @data=[{:type=>:table, :header=>{:values=>[\"\", :moto, :soe, :naka, :tome, :yodan, :total]}, :cells=>{:values=>[[:rice_total, :rice, :koji, :alcohol, :water, :lactic_acid], [32.0, \"\", 32.0, \"\", 112.0, 0.733], [60.0, 60.0, \"\", \"\", \"\", \"\"], [184.0, 138.0, 46.0, \"\", 183.0, \"\"], [275.0, 225.0, 50.0, \"\", 367.0, \"\"], [\"\", \"\", \"\", \"\", 117.0, \"\"], [551.0, 423.0, 128.0, \"\", 779.0, 0.733]]}}], @layout={:height=>350}, @config={:linkText=>\"Export to plot.ly\", :showLink=>true}, @embedded=true>"
|
85
85
|
]
|
86
86
|
},
|
87
87
|
"metadata": {},
|
@@ -103,25 +103,25 @@
|
|
103
103
|
" </script>\n",
|
104
104
|
"\n",
|
105
105
|
"\n",
|
106
|
-
"<div id=\"
|
106
|
+
"<div id=\"a71c4259-dcca-4528-806f-7f720eb6492a\" style=\"height: 100%; width: 100%;\"></div>\n",
|
107
107
|
"\n",
|
108
108
|
"<script>\n",
|
109
109
|
" require(['plotly'], function(Plotly) { \n",
|
110
110
|
"Plotly.newPlot(\n",
|
111
|
-
" '
|
111
|
+
" 'a71c4259-dcca-4528-806f-7f720eb6492a',\n",
|
112
112
|
" [{\"type\":\"table\",\"header\":{\"values\":[\"\",\"moto\",\"soe\",\"naka\",\"tome\",\"alcohol\",\"total\"]},\"cells\":{\"values\":[[\"rice_total\",\"rice\",\"koji\",\"alcohol\",\"water\",\"lactic_acid\"],[63.0,42.0,21.0,\"\",77.0,0.524],[143.0,98.0,45.0,\"\",122.0,\"\"],[254.0,190.0,64.0,\"\",302.0,\"\"],[440.0,366.0,74.0,\"\",599.0,\"\"],[\"\",\"\",\"\",405.0,\"\",\"\"],[900.0,696.0,204.0,405.0,1100.0,0.524]]}}],\n",
|
113
113
|
" {\"height\":350},\n",
|
114
114
|
" {\"linkText\":\"Export to plot.ly\",\"showLink\":true}\n",
|
115
115
|
")\n",
|
116
116
|
"\n",
|
117
117
|
"window.addEventListener('resize', function() {\n",
|
118
|
-
" Plotly.Plots.resize(document.getElementById('
|
118
|
+
" Plotly.Plots.resize(document.getElementById('a71c4259-dcca-4528-806f-7f720eb6492a'))\n",
|
119
119
|
"})\n",
|
120
120
|
" }) \n",
|
121
121
|
"</script>"
|
122
122
|
],
|
123
123
|
"text/plain": [
|
124
|
-
"#<Plotly::Offline::HTML:
|
124
|
+
"#<Plotly::Offline::HTML:0x00007fdea39f2fe8 @id=\"a71c4259-dcca-4528-806f-7f720eb6492a\", @data=[{:type=>:table, :header=>{:values=>[\"\", :moto, :soe, :naka, :tome, :alcohol, :total]}, :cells=>{:values=>[[:rice_total, :rice, :koji, :alcohol, :water, :lactic_acid], [63.0, 42.0, 21.0, \"\", 77.0, 0.524], [143.0, 98.0, 45.0, \"\", 122.0, \"\"], [254.0, 190.0, 64.0, \"\", 302.0, \"\"], [440.0, 366.0, 74.0, \"\", 599.0, \"\"], [\"\", \"\", \"\", 405.0, \"\", \"\"], [900.0, 696.0, 204.0, 405.0, 1100.0, 0.524]]}}], @layout={:height=>350}, @config={:linkText=>\"Export to plot.ly\", :showLink=>true}, @embedded=true>"
|
125
125
|
]
|
126
126
|
},
|
127
127
|
"metadata": {},
|
@@ -143,25 +143,25 @@
|
|
143
143
|
" </script>\n",
|
144
144
|
"\n",
|
145
145
|
"\n",
|
146
|
-
"<div id=\"
|
146
|
+
"<div id=\"a08eee03-ccb3-4c4e-9bc3-259a2d3f6094\" style=\"height: 100%; width: 100%;\"></div>\n",
|
147
147
|
"\n",
|
148
148
|
"<script>\n",
|
149
149
|
" require(['plotly'], function(Plotly) { \n",
|
150
150
|
"Plotly.newPlot(\n",
|
151
|
-
" '
|
151
|
+
" 'a08eee03-ccb3-4c4e-9bc3-259a2d3f6094',\n",
|
152
152
|
" [{\"type\":\"table\",\"header\":{\"values\":[\"\",\"moto\",\"soe\",\"naka\",\"tome\",\"yodan\",\"total\"]},\"cells\":{\"values\":[[\"rice_total\",\"rice\",\"koji\",\"alcohol\",\"water\",\"lactic_acid\"],[59.0,41.0,18.0,\"\",63.0,0.432],[126.0,90.0,36.0,\"\",117.0,\"\"],[248.0,194.0,54.0,\"\",297.0,\"\"],[396.0,324.0,72.0,\"\",567.0,\"\"],[72.0,72.0,\"\",\"\",108.0,\"\"],[901.0,721.0,180.0,\"\",1152.0,0.432]]}}],\n",
|
153
153
|
" {\"height\":350},\n",
|
154
154
|
" {\"linkText\":\"Export to plot.ly\",\"showLink\":true}\n",
|
155
155
|
")\n",
|
156
156
|
"\n",
|
157
157
|
"window.addEventListener('resize', function() {\n",
|
158
|
-
" Plotly.Plots.resize(document.getElementById('
|
158
|
+
" Plotly.Plots.resize(document.getElementById('a08eee03-ccb3-4c4e-9bc3-259a2d3f6094'))\n",
|
159
159
|
"})\n",
|
160
160
|
" }) \n",
|
161
161
|
"</script>"
|
162
162
|
],
|
163
163
|
"text/plain": [
|
164
|
-
"#<Plotly::Offline::HTML:
|
164
|
+
"#<Plotly::Offline::HTML:0x00007fdea59b2ef0 @id=\"a08eee03-ccb3-4c4e-9bc3-259a2d3f6094\", @data=[{:type=>:table, :header=>{:values=>[\"\", :moto, :soe, :naka, :tome, :yodan, :total]}, :cells=>{:values=>[[:rice_total, :rice, :koji, :alcohol, :water, :lactic_acid], [59.0, 41.0, 18.0, \"\", 63.0, 0.432], [126.0, 90.0, 36.0, \"\", 117.0, \"\"], [248.0, 194.0, 54.0, \"\", 297.0, \"\"], [396.0, 324.0, 72.0, \"\", 567.0, \"\"], [72.0, 72.0, \"\", \"\", 108.0, \"\"], [901.0, 721.0, 180.0, \"\", 1152.0, 0.432]]}}], @layout={:height=>350}, @config={:linkText=>\"Export to plot.ly\", :showLink=>true}, @embedded=true>"
|
165
165
|
]
|
166
166
|
},
|
167
167
|
"metadata": {},
|
@@ -183,25 +183,25 @@
|
|
183
183
|
" </script>\n",
|
184
184
|
"\n",
|
185
185
|
"\n",
|
186
|
-
"<div id=\"
|
186
|
+
"<div id=\"eacc12b9-d658-423d-9628-a4a4c94eb78d\" style=\"height: 100%; width: 100%;\"></div>\n",
|
187
187
|
"\n",
|
188
188
|
"<script>\n",
|
189
189
|
" require(['plotly'], function(Plotly) { \n",
|
190
190
|
"Plotly.newPlot(\n",
|
191
|
-
" '
|
191
|
+
" 'eacc12b9-d658-423d-9628-a4a4c94eb78d',\n",
|
192
192
|
" [{\"type\":\"table\",\"header\":{\"values\":[\"\",\"moto\",\"soe\",\"naka\",\"tome\",\"alcohol\",\"total\"]},\"cells\":{\"values\":[[\"rice_total\",\"rice\",\"koji\",\"alcohol\",\"water\",\"lactic_acid\"],[63.0,42.0,21.0,\"\",77.0,0.524],[143.0,98.0,45.0,\"\",122.0,\"\"],[254.0,190.0,64.0,\"\",302.0,\"\"],[440.0,366.0,74.0,\"\",599.0,\"\"],[\"\",\"\",\"\",405.0,\"\",\"\"],[900.0,696.0,204.0,405.0,1100.0,0.524]]}}],\n",
|
193
193
|
" {\"height\":350},\n",
|
194
194
|
" {\"linkText\":\"Export to plot.ly\",\"showLink\":true}\n",
|
195
195
|
")\n",
|
196
196
|
"\n",
|
197
197
|
"window.addEventListener('resize', function() {\n",
|
198
|
-
" Plotly.Plots.resize(document.getElementById('
|
198
|
+
" Plotly.Plots.resize(document.getElementById('eacc12b9-d658-423d-9628-a4a4c94eb78d'))\n",
|
199
199
|
"})\n",
|
200
200
|
" }) \n",
|
201
201
|
"</script>"
|
202
202
|
],
|
203
203
|
"text/plain": [
|
204
|
-
"#<Plotly::Offline::HTML:
|
204
|
+
"#<Plotly::Offline::HTML:0x00007fdea3a68c98 @id=\"eacc12b9-d658-423d-9628-a4a4c94eb78d\", @data=[{:type=>:table, :header=>{:values=>[\"\", :moto, :soe, :naka, :tome, :alcohol, :total]}, :cells=>{:values=>[[:rice_total, :rice, :koji, :alcohol, :water, :lactic_acid], [63.0, 42.0, 21.0, \"\", 77.0, 0.524], [143.0, 98.0, 45.0, \"\", 122.0, \"\"], [254.0, 190.0, 64.0, \"\", 302.0, \"\"], [440.0, 366.0, 74.0, \"\", 599.0, \"\"], [\"\", \"\", \"\", 405.0, \"\", \"\"], [900.0, 696.0, 204.0, 405.0, 1100.0, 0.524]]}}], @layout={:height=>350}, @config={:linkText=>\"Export to plot.ly\", :showLink=>true}, @embedded=true>"
|
205
205
|
]
|
206
206
|
},
|
207
207
|
"metadata": {},
|
@@ -223,25 +223,25 @@
|
|
223
223
|
" </script>\n",
|
224
224
|
"\n",
|
225
225
|
"\n",
|
226
|
-
"<div id=\"
|
226
|
+
"<div id=\"b9197332-3f45-44c9-868a-24264d2d3d90\" style=\"height: 100%; width: 100%;\"></div>\n",
|
227
227
|
"\n",
|
228
228
|
"<script>\n",
|
229
229
|
" require(['plotly'], function(Plotly) { \n",
|
230
230
|
"Plotly.newPlot(\n",
|
231
|
-
" '
|
231
|
+
" 'b9197332-3f45-44c9-868a-24264d2d3d90',\n",
|
232
232
|
" [{\"type\":\"table\",\"header\":{\"values\":[\"\",\"moto\",\"soe\",\"naka\",\"tome\",\"yodan\",\"total\"]},\"cells\":{\"values\":[[\"rice_total\",\"rice\",\"koji\",\"alcohol\",\"water\",\"lactic_acid\"],[59.0,41.0,18.0,\"\",63.0,0.432],[126.0,90.0,36.0,\"\",117.0,\"\"],[248.0,194.0,54.0,\"\",297.0,\"\"],[396.0,324.0,72.0,\"\",567.0,\"\"],[72.0,72.0,\"\",\"\",108.0,\"\"],[901.0,721.0,180.0,\"\",1152.0,0.432]]}}],\n",
|
233
233
|
" {\"height\":350},\n",
|
234
234
|
" {\"linkText\":\"Export to plot.ly\",\"showLink\":true}\n",
|
235
235
|
")\n",
|
236
236
|
"\n",
|
237
237
|
"window.addEventListener('resize', function() {\n",
|
238
|
-
" Plotly.Plots.resize(document.getElementById('
|
238
|
+
" Plotly.Plots.resize(document.getElementById('b9197332-3f45-44c9-868a-24264d2d3d90'))\n",
|
239
239
|
"})\n",
|
240
240
|
" }) \n",
|
241
241
|
"</script>"
|
242
242
|
],
|
243
243
|
"text/plain": [
|
244
|
-
"#<Plotly::Offline::HTML:
|
244
|
+
"#<Plotly::Offline::HTML:0x00007fdea3aca6c8 @id=\"b9197332-3f45-44c9-868a-24264d2d3d90\", @data=[{:type=>:table, :header=>{:values=>[\"\", :moto, :soe, :naka, :tome, :yodan, :total]}, :cells=>{:values=>[[:rice_total, :rice, :koji, :alcohol, :water, :lactic_acid], [59.0, 41.0, 18.0, \"\", 63.0, 0.432], [126.0, 90.0, 36.0, \"\", 117.0, \"\"], [248.0, 194.0, 54.0, \"\", 297.0, \"\"], [396.0, 324.0, 72.0, \"\", 567.0, \"\"], [72.0, 72.0, \"\", \"\", 108.0, \"\"], [901.0, 721.0, 180.0, \"\", 1152.0, 0.432]]}}], @layout={:height=>350}, @config={:linkText=>\"Export to plot.ly\", :showLink=>true}, @embedded=true>"
|
245
245
|
]
|
246
246
|
},
|
247
247
|
"metadata": {},
|
@@ -256,25 +256,25 @@
|
|
256
256
|
" </script>\n",
|
257
257
|
"\n",
|
258
258
|
"\n",
|
259
|
-
"<div id=\"
|
259
|
+
"<div id=\"6227ffb4-4516-45f9-9b7c-5eb2e11a8095\" style=\"height: 100%; width: 100%;\"></div>\n",
|
260
260
|
"\n",
|
261
261
|
"<script>\n",
|
262
262
|
" require(['plotly'], function(Plotly) { \n",
|
263
263
|
"Plotly.newPlot(\n",
|
264
|
-
" '
|
264
|
+
" '6227ffb4-4516-45f9-9b7c-5eb2e11a8095',\n",
|
265
265
|
" [{\"type\":\"table\",\"header\":{\"values\":[\"date\",\"moto_koji\",\"moromi_koji\",\"moto\",\"soe\",\"naka\",\"tome\",\"yodan\"]},\"cells\":{\"values\":[[\"02/20\",\"02/21\",\"02/22\",\"02/23\",\"02/24\",\"02/25\",\"02/26\",\"02/27\",\"02/28\",\"02/29\",\"03/01\",\"03/02\",\"03/03\",\"03/04\",\"03/05\",\"03/06\",\"03/07\",\"03/08\",\"03/09\",\"03/10\",\"03/11\",\"03/12\",\"03/13\",\"03/14\",\"03/15\",\"03/16\",\"03/17\",\"03/18\",\"03/19\",\"03/20\",\"03/21\",\"03/22\"],[\"仕3: 21\\u003cbr\\u003e仕4: 18\",\"\",\"\",\"\",\"\",\"\",\"\",\"仕5: 21\\u003cbr\\u003e仕6: 18\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\"],[\"\",\"\",\"\",\"\",\"仕1: 140\",\"\",\"\",\"仕2: 128\",\"\",\"\",\"\",\"仕3: 183\",\"\",\"\",\"仕4: 162\",\"\",\"\",\"\",\"仕5: 183\",\"\",\"\",\"仕6: 162\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\"],[\"\",\"\",\"\",\"\",\"\",\"仕3: 42\\u003cbr\\u003e仕4: 41\",\"\",\"\",\"\",\"\",\"仕1: 0\",\"\",\"仕2: 0\\u003cbr\\u003e仕5: 42\\u003cbr\\u003e仕6: 41\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\"],[\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"仕1: 65\",\"\",\"仕2: 60\",\"\",\"\",\"\",\"\",\"仕3: 98\",\"\",\"仕4: 90\",\"\",\"\",\"\",\"\",\"仕5: 98\",\"\",\"仕6: 90\",\"\",\"\",\"\",\"\"],[\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"仕1: 150\",\"\",\"\",\"仕2: 138\",\"\",\"\",\"\",\"仕3: 190\",\"\",\"仕4: 194\",\"\",\"\",\"\",\"\",\"仕5: 190\",\"\",\"仕6: 194\",\"\",\"\"],[\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"仕1: 245\",\"\",\"\",\"仕2: 225\",\"\",\"\",\"\",\"仕3: 366\",\"\",\"仕4: 324\",\"\",\"\",\"\",\"\",\"仕5: 366\",\"\",\"仕6: 324\",\"\"],[\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"仕4: 72\",\"\",\"\",\"\",\"\",\"\",\"\",\"仕6: 72\"]]}}],\n",
|
266
266
|
" {\"height\":1000},\n",
|
267
267
|
" {\"linkText\":\"Export to plot.ly\",\"showLink\":true}\n",
|
268
268
|
")\n",
|
269
269
|
"\n",
|
270
270
|
"window.addEventListener('resize', function() {\n",
|
271
|
-
" Plotly.Plots.resize(document.getElementById('
|
271
|
+
" Plotly.Plots.resize(document.getElementById('6227ffb4-4516-45f9-9b7c-5eb2e11a8095'))\n",
|
272
272
|
"})\n",
|
273
273
|
" }) \n",
|
274
274
|
"</script>"
|
275
275
|
],
|
276
276
|
"text/plain": [
|
277
|
-
"#<Plotly::Offline::HTML:
|
277
|
+
"#<Plotly::Offline::HTML:0x00007fdea5a22890 @id=\"6227ffb4-4516-45f9-9b7c-5eb2e11a8095\", @data=[{:type=>:table, :header=>{:values=>[:date, :moto_koji, :moromi_koji, :moto, :soe, :naka, :tome, :yodan]}, :cells=>{:values=>[[\"02/20\", \"02/21\", \"02/22\", \"02/23\", \"02/24\", \"02/25\", \"02/26\", \"02/27\", \"02/28\", \"02/29\", \"03/01\", \"03/02\", \"03/03\", \"03/04\", \"03/05\", \"03/06\", \"03/07\", \"03/08\", \"03/09\", \"03/10\", \"03/11\", \"03/12\", \"03/13\", \"03/14\", \"03/15\", \"03/16\", \"03/17\", \"03/18\", \"03/19\", \"03/20\", \"03/21\", \"03/22\"], [\"仕3: 21<br>仕4: 18\", \"\", \"\", \"\", \"\", \"\", \"\", \"仕5: 21<br>仕6: 18\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\"], [\"\", \"\", \"\", \"\", \"仕1: 140\", \"\", \"\", \"仕2: 128\", \"\", \"\", \"\", \"仕3: 183\", \"\", \"\", \"仕4: 162\", \"\", \"\", \"\", \"仕5: 183\", \"\", \"\", \"仕6: 162\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\"], [\"\", \"\", \"\", \"\", \"\", \"仕3: 42<br>仕4: 41\", \"\", \"\", \"\", \"\", \"仕1: 0\", \"\", \"仕2: 0<br>仕5: 42<br>仕6: 41\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\"], [\"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"仕1: 65\", \"\", \"仕2: 60\", \"\", \"\", \"\", \"\", \"仕3: 98\", \"\", \"仕4: 90\", \"\", \"\", \"\", \"\", \"仕5: 98\", \"\", \"仕6: 90\", \"\", \"\", \"\", \"\"], [\"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"仕1: 150\", \"\", \"\", \"仕2: 138\", \"\", \"\", \"\", \"仕3: 190\", \"\", \"仕4: 194\", \"\", \"\", \"\", \"\", \"仕5: 190\", \"\", \"仕6: 194\", \"\", \"\"], [\"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"仕1: 245\", \"\", \"\", \"仕2: 225\", \"\", \"\", \"\", \"仕3: 366\", \"\", \"仕4: 324\", \"\", \"\", \"\", \"\", \"仕5: 366\", \"\", \"仕6: 324\", \"\"], [\"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"仕4: 72\", \"\", \"\", \"\", \"\", \"\", \"\", \"仕6: 72\"]]}}], @layout={:height=>1000}, @config={:linkText=>\"Export to plot.ly\", :showLink=>true}, @embedded=true>"
|
278
278
|
]
|
279
279
|
},
|
280
280
|
"metadata": {},
|
@@ -283,7 +283,7 @@
|
|
283
283
|
{
|
284
284
|
"data": {
|
285
285
|
"text/plain": [
|
286
|
-
"#<CZTop::Socket::PUB:
|
286
|
+
"#<CZTop::Socket::PUB:0x7fdea7883bf0 last_endpoint=\"tcp://127.0.0.1:54635\">"
|
287
287
|
]
|
288
288
|
},
|
289
289
|
"execution_count": 1,
|
@@ -28,9 +28,11 @@ module Toji
|
|
28
28
|
|
29
29
|
def to_h_a
|
30
30
|
event_groups.map {|es|
|
31
|
+
product = es.first.product
|
31
32
|
{
|
32
|
-
product_id:
|
33
|
-
product_name:
|
33
|
+
product_id: product.id,
|
34
|
+
product_name: product.name,
|
35
|
+
product_color: product.color,
|
34
36
|
weight: es.map(&:weight).sum,
|
35
37
|
}
|
36
38
|
}
|
data/lib/toji/version.rb
CHANGED