idx <- split(1:150, iris$Species)
figs <- lapply(idx, function(x) {
figure(width = 230, height = 300) %>%
ly_points(Sepal.Length, Sepal.Width, data = iris[x, ],
hover = list(Sepal.Length, Sepal.Width))
})
grid_plot(figs, same_axes = TRUE) %>%
set_theme(bk_ggplot_theme)
Created
November 3, 2016 08:27
-
-
Save hafen/b7389ee0eb04edec7c4dcc0d5d9262c7 to your computer and use it in GitHub Desktop.
grid theme
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
license: none | |
height: 300 | |
scrolling: no | |
border: yes |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src='https://cdn.pydata.org/bokeh/release/bokeh-0.12.2.min.js'></script> | |
<link href='https://cdn.pydata.org/bokeh/release/bokeh-0.12.2.min.css' rel='stylesheet'> | |
</head> | |
<body> | |
<div class='bk-root' class='plotdiv' style=' width: 690px; height: 300px;'> | |
<div id='6f66da84569145710323c6f4b0a4e705' class='plotdiv'></div> | |
<div> | |
<script type='text/javascript'> | |
Bokeh.$(function() { | |
var modelid = '1fa18ab2ec41cdfd4df2c78066f40a20'; | |
var elementid = '6f66da84569145710323c6f4b0a4e705'; | |
var docid = 'f200b6a1cfbc5a87799b54a99f866a1f'; | |
var docs_json = {"f200b6a1cfbc5a87799b54a99f866a1f":{"version":"0.12.2","title":"Bokeh GridPlot","roots":{"root_ids":["1fa18ab2ec41cdfd4df2c78066f40a20"],"references":[{"type":"Plot","id":"a87b6f6be211d1d603960d9bc2546a6e","attributes":{"id":"a87b6f6be211d1d603960d9bc2546a6e","plot_width":260,"plot_height":270,"x_range":{"type":"Range1d","id":"45fd80e6d8313cfa44c35e6a0696798e"},"y_range":{"type":"Range1d","id":"8356938f01d28c92d11d0d652d35a49b"},"left":[{"type":"LinearAxis","id":"8006546aff25ad2f74b30bbcb679598c"}],"below":[{"type":"LinearAxis","id":"62d5eb4ee0fc36bff83aba18b3976323"}],"right":[],"above":[],"renderers":[{"type":"BoxAnnotation","id":"90b7368b3f8bde38c41fbc374f686e83"},{"type":"GlyphRenderer","id":"a4a01a95cc858833ddc0ce476c193918"},{"type":"LinearAxis","id":"62d5eb4ee0fc36bff83aba18b3976323"},{"type":"Grid","id":"7d6190e0a4d5453b4c4f1cafb13d2c2b"},{"type":"LinearAxis","id":"8006546aff25ad2f74b30bbcb679598c"},{"type":"Grid","id":"fe5fad041847edf23893fab371a503f3"}],"extra_y_ranges":{},"extra_x_ranges":{},"tags":[],"min_border_left":45,"min_border_right":4,"min_border_top":4,"min_border_bottom":70,"lod_threshold":null,"toolbar":{"type":"Toolbar","id":"dca954ac906c0fa2ff0eb2ad7f4fd198"},"tool_events":{"type":"ToolEvents","id":"f4541d5bfad5943f0d993d04f6394614"},"title":{"type":"Title","id":"e47b732a3c10913370e389a6d6309a60"},"toolbar_location":null,"background_fill_color":"#E6E6E6","outline_line_color":"white"},"subtype":"Figure"},{"type":"Toolbar","id":"dca954ac906c0fa2ff0eb2ad7f4fd198","attributes":{"id":"dca954ac906c0fa2ff0eb2ad7f4fd198","tags":[],"active_drag":"auto","active_scroll":"auto","active_tap":"auto","tools":[{"type":"PanTool","id":"e183bb5496f7e2db80824b02ee73e216"},{"type":"WheelZoomTool","id":"d1171e7b231e373ae140aa31ab1ad57e"},{"type":"BoxZoomTool","id":"01e5244a52e602b13911298003d095f1"},{"type":"ResetTool","id":"9d6e35df39b216226f54367140627ec5"},{"type":"SaveTool","id":"bbf33a90da9b15d34223b98dd44d1eeb"},{"type":"HelpTool","id":"dd5076a8f6b2673aaccdab953b09df22"},{"type":"HoverTool","id":"2f824b2ae2ea30c5888cd11f1652cab3"}],"logo":null}},{"type":"PanTool","id":"e183bb5496f7e2db80824b02ee73e216","attributes":{"id":"e183bb5496f7e2db80824b02ee73e216","tags":[],"plot":{"type":"Plot","id":"a87b6f6be211d1d603960d9bc2546a6e","subtype":"Figure"},"dimensions":["width","height"]}},{"type":"ToolEvents","id":"f4541d5bfad5943f0d993d04f6394614","attributes":{"id":"f4541d5bfad5943f0d993d04f6394614","tags":[]},"geometries":[]},{"type":"WheelZoomTool","id":"d1171e7b231e373ae140aa31ab1ad57e","attributes":{"id":"d1171e7b231e373ae140aa31ab1ad57e","tags":[],"plot":{"type":"Plot","id":"a87b6f6be211d1d603960d9bc2546a6e","subtype":"Figure"},"dimensions":["width","height"]}},{"type":"BoxAnnotation","id":"90b7368b3f8bde38c41fbc374f686e83","attributes":{"id":"90b7368b3f8bde38c41fbc374f686e83","tags":[],"line_color":{"units":"data","value":"black"},"line_alpha":{"units":"data","value":1},"fill_color":{"units":"data","value":"lightgrey"},"fill_alpha":{"units":"data","value":0.5},"line_dash":[4,4],"line_width":{"units":"data","value":2},"level":"overlay","top_units":"screen","bottom_units":"screen","left_units":"screen","right_units":"screen","render_mode":"css"}},{"type":"BoxZoomTool","id":"01e5244a52e602b13911298003d095f1","attributes":{"id":"01e5244a52e602b13911298003d095f1","tags":[],"plot":{"type":"Plot","id":"a87b6f6be211d1d603960d9bc2546a6e","subtype":"Figure"},"overlay":{"type":"BoxAnnotation","id":"90b7368b3f8bde38c41fbc374f686e83"}}},{"type":"ResetTool","id":"9d6e35df39b216226f54367140627ec5","attributes":{"id":"9d6e35df39b216226f54367140627ec5","tags":[],"plot":{"type":"Plot","id":"a87b6f6be211d1d603960d9bc2546a6e","subtype":"Figure"}}},{"type":"SaveTool","id":"bbf33a90da9b15d34223b98dd44d1eeb","attributes":{"id":"bbf33a90da9b15d34223b98dd44d1eeb","tags":[],"plot":{"type":"Plot","id":"a87b6f6be211d1d603960d9bc2546a6e","subtype":"Figure"}}},{"type":"HelpTool","id":"dd5076a8f6b2673aaccdab953b09df22","attributes":{"id":"dd5076a8f6b2673aaccdab953b09df22","tags":[],"plot":{"type":"Plot","id":"a87b6f6be211d1d603960d9bc2546a6e","subtype":"Figure"},"redirect":"http://hafen.github.io/rbokeh","help_tooltip":"Click to learn more about rbokeh."}},{"type":"HoverTool","id":"2f824b2ae2ea30c5888cd11f1652cab3","attributes":{"id":"2f824b2ae2ea30c5888cd11f1652cab3","tags":[],"plot":{"type":"Plot","id":"a87b6f6be211d1d603960d9bc2546a6e","subtype":"Figure"},"renderers":[{"type":"GlyphRenderer","id":"a4a01a95cc858833ddc0ce476c193918"}],"names":[],"anchor":"center","attachment":"horizontal","line_policy":"prev","mode":"mouse","point_policy":"snap_to_data","tooltips":[["Sepal.Length","@hover_col_1"],["Sepal.Width","@hover_col_2"]]}},{"type":"ColumnDataSource","id":"b9f52214b9c778b0ebfdbba51aa9e5e7","attributes":{"id":"b9f52214b9c778b0ebfdbba51aa9e5e7","tags":[],"column_names":["x","y","hover_col_1","hover_col_2"],"selected":[],"data":{"x":[5.1,4.9,4.7,4.6,5,5.4,4.6,5,4.4,4.9,5.4,4.8,4.8,4.3,5.8,5.7,5.4,5.1,5.7,5.1,5.4,5.1,4.6,5.1,4.8,5,5,5.2,5.2,4.7,4.8,5.4,5.2,5.5,4.9,5,5.5,4.9,4.4,5.1,5,4.5,4.4,5,5.1,4.8,5.1,4.6,5.3,5],"y":[3.5,3,3.2,3.1,3.6,3.9,3.4,3.4,2.9,3.1,3.7,3.4,3,3,4,4.4,3.9,3.5,3.8,3.8,3.4,3.7,3.6,3.3,3.4,3,3.4,3.5,3.4,3.2,3.1,3.4,4.1,4.2,3.1,3.2,3.5,3.6,3,3.4,3.5,2.3,3.2,3.5,3.8,3,3.8,3.2,3.7,3.3],"hover_col_1":["5.1","4.9","4.7","4.6","5.0","5.4","4.6","5.0","4.4","4.9","5.4","4.8","4.8","4.3","5.8","5.7","5.4","5.1","5.7","5.1","5.4","5.1","4.6","5.1","4.8","5.0","5.0","5.2","5.2","4.7","4.8","5.4","5.2","5.5","4.9","5.0","5.5","4.9","4.4","5.1","5.0","4.5","4.4","5.0","5.1","4.8","5.1","4.6","5.3","5.0"],"hover_col_2":["3.5","3.0","3.2","3.1","3.6","3.9","3.4","3.4","2.9","3.1","3.7","3.4","3.0","3.0","4.0","4.4","3.9","3.5","3.8","3.8","3.4","3.7","3.6","3.3","3.4","3.0","3.4","3.5","3.4","3.2","3.1","3.4","4.1","4.2","3.1","3.2","3.5","3.6","3.0","3.4","3.5","2.3","3.2","3.5","3.8","3.0","3.8","3.2","3.7","3.3"]}}},{"type":"Circle","id":"52b4cf3275f9787d6ecfe970b2617d4b","attributes":{"id":"52b4cf3275f9787d6ecfe970b2617d4b","tags":[],"size":{"units":"screen","value":10},"visible":true,"line_color":{"units":"data","value":"#1F77B4"},"fill_color":{"units":"data","value":"#1F77B4"},"line_alpha":{"units":"data","value":1},"fill_alpha":{"units":"data","value":0.5},"x":{"units":"data","field":"x"},"y":{"units":"data","field":"y"}}},{"type":"Circle","id":"ed871c1d7344efb674523e2ce4f60c54","attributes":{"id":"ed871c1d7344efb674523e2ce4f60c54","tags":[],"size":{"units":"screen","value":10},"visible":true,"line_color":{"units":"data","value":"#e1e1e1"},"fill_color":{"units":"data","value":"#e1e1e1"},"line_alpha":{"units":"data","value":1},"fill_alpha":{"units":"data","value":0.5},"x":{"units":"data","field":"x"},"y":{"units":"data","field":"y"}}},{"type":"Circle","id":"db10621b156447268605467821fcfdd9","attributes":{"id":"db10621b156447268605467821fcfdd9","tags":[],"size":{"units":"screen","value":10},"visible":true,"line_color":{"units":"data","value":"#1F77B4"},"fill_color":{"units":"data","value":"#1F77B4"},"line_alpha":{"units":"data","value":1},"fill_alpha":{"units":"data","value":1},"x":{"units":"data","field":"x"},"y":{"units":"data","field":"y"}}},{"type":"GlyphRenderer","id":"a4a01a95cc858833ddc0ce476c193918","attributes":{"id":"a4a01a95cc858833ddc0ce476c193918","tags":[],"selection_glyph":null,"nonselection_glyph":{"type":"Circle","id":"ed871c1d7344efb674523e2ce4f60c54"},"hover_glyph":{"type":"Circle","id":"db10621b156447268605467821fcfdd9"},"name":null,"data_source":{"type":"ColumnDataSource","id":"b9f52214b9c778b0ebfdbba51aa9e5e7"},"glyph":{"type":"Circle","id":"52b4cf3275f9787d6ecfe970b2617d4b"}}},{"type":"Title","id":"e47b732a3c10913370e389a6d6309a60","attributes":{"id":"e47b732a3c10913370e389a6d6309a60","tags":[],"plot":null,"text":"setosa"}},{"type":"LinearAxis","id":"62d5eb4ee0fc36bff83aba18b3976323","attributes":{"id":"62d5eb4ee0fc36bff83aba18b3976323","tags":[],"plot":{"type":"Plot","id":"a87b6f6be211d1d603960d9bc2546a6e","subtype":"Figure"},"axis_label":"Sepal.Length","formatter":{"type":"BasicTickFormatter","id":"8a7509a34d2f89890588f6f00353c76f"},"ticker":{"type":"BasicTicker","id":"818a1760fa9bfeada8e086b3378a5c91"},"visible":true,"axis_line_color":"white","major_label_text_color":"#7F7F7F","major_tick_line_color":"#7F7F7F","minor_tick_line_alpha":{"units":"data","value":0},"axis_label_text_font_style":"normal"}},{"type":"BasicTickFormatter","id":"8a7509a34d2f89890588f6f00353c76f","attributes":{"id":"8a7509a34d2f89890588f6f00353c76f","tags":[]}},{"type":"BasicTicker","id":"818a1760fa9bfeada8e086b3378a5c91","attributes":{"id":"818a1760fa9bfeada8e086b3378a5c91","tags":[],"num_minor_ticks":2}},{"type":"Grid","id":"7d6190e0a4d5453b4c4f1cafb13d2c2b","attributes":{"id":"7d6190e0a4d5453b4c4f1cafb13d2c2b","tags":[],"dimension":0,"plot":{"type":"Plot","id":"a87b6f6be211d1d603960d9bc2546a6e","subtype":"Figure"},"ticker":{"type":"BasicTicker","id":"818a1760fa9bfeada8e086b3378a5c91"},"grid_line_color":"white","minor_grid_line_color":"white","minor_grid_line_alpha":{"units":"data","value":0.4}}},{"type":"LinearAxis","id":"8006546aff25ad2f74b30bbcb679598c","attributes":{"id":"8006546aff25ad2f74b30bbcb679598c","tags":[],"plot":{"type":"Plot","id":"a87b6f6be211d1d603960d9bc2546a6e","subtype":"Figure"},"axis_label":"Sepal.Width","formatter":{"type":"BasicTickFormatter","id":"5b1849ec07c14d310885ef5d19f42fd2"},"ticker":{"type":"BasicTicker","id":"8e4be70b40a91cd4a340d348ed64d763"},"visible":true,"axis_line_color":"white","major_label_text_color":"#7F7F7F","major_tick_line_color":"#7F7F7F","minor_tick_line_alpha":{"units":"data","value":0},"axis_label_text_font_style":"normal"}},{"type":"BasicTickFormatter","id":"5b1849ec07c14d310885ef5d19f42fd2","attributes":{"id":"5b1849ec07c14d310885ef5d19f42fd2","tags":[]}},{"type":"BasicTicker","id":"8e4be70b40a91cd4a340d348ed64d763","attributes":{"id":"8e4be70b40a91cd4a340d348ed64d763","tags":[],"num_minor_ticks":2}},{"type":"Grid","id":"fe5fad041847edf23893fab371a503f3","attributes":{"id":"fe5fad041847edf23893fab371a503f3","tags":[],"dimension":1,"plot":{"type":"Plot","id":"a87b6f6be211d1d603960d9bc2546a6e","subtype":"Figure"},"ticker":{"type":"BasicTicker","id":"8e4be70b40a91cd4a340d348ed64d763"},"grid_line_color":"white","minor_grid_line_color":"white","minor_grid_line_alpha":{"units":"data","value":0.4}}},{"type":"Plot","id":"591ce4d568edc5f39f6b299698b31573","attributes":{"id":"591ce4d568edc5f39f6b299698b31573","plot_width":215,"plot_height":270,"x_range":{"type":"Range1d","id":"45fd80e6d8313cfa44c35e6a0696798e"},"y_range":{"type":"Range1d","id":"8356938f01d28c92d11d0d652d35a49b"},"left":[{"type":"LinearAxis","id":"7c55bb633ecac7004ea8f72c85f09373"}],"below":[{"type":"LinearAxis","id":"b118f2cb485a1d2acd567912dd043dd1"}],"right":[],"above":[],"renderers":[{"type":"BoxAnnotation","id":"da46e0399cb9bc12f26bb37da48a7f41"},{"type":"GlyphRenderer","id":"0e2755f35dc80ec2708d50b9f1312ced"},{"type":"LinearAxis","id":"7c55bb633ecac7004ea8f72c85f09373"},{"type":"Grid","id":"9d3d859b48ebd86170e65b32362b62e8"},{"type":"LinearAxis","id":"b118f2cb485a1d2acd567912dd043dd1"},{"type":"Grid","id":"c1cd8cfd5f007d9eba16d35839e3d059"}],"extra_y_ranges":{},"extra_x_ranges":{},"tags":[],"min_border_left":4,"min_border_right":4,"min_border_top":4,"min_border_bottom":70,"lod_threshold":null,"toolbar":{"type":"Toolbar","id":"f5f6c5c82733036f404ada5ec0f03f4b"},"tool_events":{"type":"ToolEvents","id":"e4071ab1977ee98f98cf1eb8f8b1fa72"},"title":{"type":"Title","id":"d8330cdac67a8855600e9cae899c5b69"},"toolbar_location":null,"background_fill_color":"#E6E6E6","outline_line_color":"white"},"subtype":"Figure"},{"type":"Toolbar","id":"f5f6c5c82733036f404ada5ec0f03f4b","attributes":{"id":"f5f6c5c82733036f404ada5ec0f03f4b","tags":[],"active_drag":"auto","active_scroll":"auto","active_tap":"auto","tools":[{"type":"PanTool","id":"eb530b5734c77fddb70b56ca5513689f"},{"type":"WheelZoomTool","id":"f02c1e1e83f93b6d148257fec4b36e8f"},{"type":"BoxZoomTool","id":"29622d63eae81feb01aa168d148ea6ee"},{"type":"ResetTool","id":"500feb0cdd512f427176c023578058ab"},{"type":"SaveTool","id":"5a2898cd0d2711ce50b327c3ffc3a24d"},{"type":"HelpTool","id":"bf9ed2aca46d901c04f26cd628b35048"},{"type":"HoverTool","id":"8c1c5156da97d66687278c07395aa071"}],"logo":null}},{"type":"PanTool","id":"eb530b5734c77fddb70b56ca5513689f","attributes":{"id":"eb530b5734c77fddb70b56ca5513689f","tags":[],"plot":{"type":"Plot","id":"591ce4d568edc5f39f6b299698b31573","subtype":"Figure"},"dimensions":["width","height"]}},{"type":"ToolEvents","id":"e4071ab1977ee98f98cf1eb8f8b1fa72","attributes":{"id":"e4071ab1977ee98f98cf1eb8f8b1fa72","tags":[]},"geometries":[]},{"type":"WheelZoomTool","id":"f02c1e1e83f93b6d148257fec4b36e8f","attributes":{"id":"f02c1e1e83f93b6d148257fec4b36e8f","tags":[],"plot":{"type":"Plot","id":"591ce4d568edc5f39f6b299698b31573","subtype":"Figure"},"dimensions":["width","height"]}},{"type":"BoxAnnotation","id":"da46e0399cb9bc12f26bb37da48a7f41","attributes":{"id":"da46e0399cb9bc12f26bb37da48a7f41","tags":[],"line_color":{"units":"data","value":"black"},"line_alpha":{"units":"data","value":1},"fill_color":{"units":"data","value":"lightgrey"},"fill_alpha":{"units":"data","value":0.5},"line_dash":[4,4],"line_width":{"units":"data","value":2},"level":"overlay","top_units":"screen","bottom_units":"screen","left_units":"screen","right_units":"screen","render_mode":"css"}},{"type":"BoxZoomTool","id":"29622d63eae81feb01aa168d148ea6ee","attributes":{"id":"29622d63eae81feb01aa168d148ea6ee","tags":[],"plot":{"type":"Plot","id":"591ce4d568edc5f39f6b299698b31573","subtype":"Figure"},"overlay":{"type":"BoxAnnotation","id":"da46e0399cb9bc12f26bb37da48a7f41"}}},{"type":"ResetTool","id":"500feb0cdd512f427176c023578058ab","attributes":{"id":"500feb0cdd512f427176c023578058ab","tags":[],"plot":{"type":"Plot","id":"591ce4d568edc5f39f6b299698b31573","subtype":"Figure"}}},{"type":"SaveTool","id":"5a2898cd0d2711ce50b327c3ffc3a24d","attributes":{"id":"5a2898cd0d2711ce50b327c3ffc3a24d","tags":[],"plot":{"type":"Plot","id":"591ce4d568edc5f39f6b299698b31573","subtype":"Figure"}}},{"type":"HelpTool","id":"bf9ed2aca46d901c04f26cd628b35048","attributes":{"id":"bf9ed2aca46d901c04f26cd628b35048","tags":[],"plot":{"type":"Plot","id":"591ce4d568edc5f39f6b299698b31573","subtype":"Figure"},"redirect":"http://hafen.github.io/rbokeh","help_tooltip":"Click to learn more about rbokeh."}},{"type":"HoverTool","id":"8c1c5156da97d66687278c07395aa071","attributes":{"id":"8c1c5156da97d66687278c07395aa071","tags":[],"plot":{"type":"Plot","id":"591ce4d568edc5f39f6b299698b31573","subtype":"Figure"},"renderers":[{"type":"GlyphRenderer","id":"0e2755f35dc80ec2708d50b9f1312ced"}],"names":[],"anchor":"center","attachment":"horizontal","line_policy":"prev","mode":"mouse","point_policy":"snap_to_data","tooltips":[["Sepal.Length","@hover_col_1"],["Sepal.Width","@hover_col_2"]]}},{"type":"ColumnDataSource","id":"a49e0e31091359a1692b2755bb69ebfd","attributes":{"id":"a49e0e31091359a1692b2755bb69ebfd","tags":[],"column_names":["x","y","hover_col_1","hover_col_2"],"selected":[],"data":{"x":[7,6.4,6.9,5.5,6.5,5.7,6.3,4.9,6.6,5.2,5,5.9,6,6.1,5.6,6.7,5.6,5.8,6.2,5.6,5.9,6.1,6.3,6.1,6.4,6.6,6.8,6.7,6,5.7,5.5,5.5,5.8,6,5.4,6,6.7,6.3,5.6,5.5,5.5,6.1,5.8,5,5.6,5.7,5.7,6.2,5.1,5.7],"y":[3.2,3.2,3.1,2.3,2.8,2.8,3.3,2.4,2.9,2.7,2,3,2.2,2.9,2.9,3.1,3,2.7,2.2,2.5,3.2,2.8,2.5,2.8,2.9,3,2.8,3,2.9,2.6,2.4,2.4,2.7,2.7,3,3.4,3.1,2.3,3,2.5,2.6,3,2.6,2.3,2.7,3,2.9,2.9,2.5,2.8],"hover_col_1":["7.0","6.4","6.9","5.5","6.5","5.7","6.3","4.9","6.6","5.2","5.0","5.9","6.0","6.1","5.6","6.7","5.6","5.8","6.2","5.6","5.9","6.1","6.3","6.1","6.4","6.6","6.8","6.7","6.0","5.7","5.5","5.5","5.8","6.0","5.4","6.0","6.7","6.3","5.6","5.5","5.5","6.1","5.8","5.0","5.6","5.7","5.7","6.2","5.1","5.7"],"hover_col_2":["3.2","3.2","3.1","2.3","2.8","2.8","3.3","2.4","2.9","2.7","2.0","3.0","2.2","2.9","2.9","3.1","3.0","2.7","2.2","2.5","3.2","2.8","2.5","2.8","2.9","3.0","2.8","3.0","2.9","2.6","2.4","2.4","2.7","2.7","3.0","3.4","3.1","2.3","3.0","2.5","2.6","3.0","2.6","2.3","2.7","3.0","2.9","2.9","2.5","2.8"]}}},{"type":"Circle","id":"6233daeb782960bde2062d0464c85f35","attributes":{"id":"6233daeb782960bde2062d0464c85f35","tags":[],"size":{"units":"screen","value":10},"visible":true,"line_color":{"units":"data","value":"#1F77B4"},"fill_color":{"units":"data","value":"#1F77B4"},"line_alpha":{"units":"data","value":1},"fill_alpha":{"units":"data","value":0.5},"x":{"units":"data","field":"x"},"y":{"units":"data","field":"y"}}},{"type":"Circle","id":"0a6578ccde83f228a5bea0bdbb3c18f9","attributes":{"id":"0a6578ccde83f228a5bea0bdbb3c18f9","tags":[],"size":{"units":"screen","value":10},"visible":true,"line_color":{"units":"data","value":"#e1e1e1"},"fill_color":{"units":"data","value":"#e1e1e1"},"line_alpha":{"units":"data","value":1},"fill_alpha":{"units":"data","value":0.5},"x":{"units":"data","field":"x"},"y":{"units":"data","field":"y"}}},{"type":"Circle","id":"3fb6406e9819acbae4034360f95b63e7","attributes":{"id":"3fb6406e9819acbae4034360f95b63e7","tags":[],"size":{"units":"screen","value":10},"visible":true,"line_color":{"units":"data","value":"#1F77B4"},"fill_color":{"units":"data","value":"#1F77B4"},"line_alpha":{"units":"data","value":1},"fill_alpha":{"units":"data","value":1},"x":{"units":"data","field":"x"},"y":{"units":"data","field":"y"}}},{"type":"GlyphRenderer","id":"0e2755f35dc80ec2708d50b9f1312ced","attributes":{"id":"0e2755f35dc80ec2708d50b9f1312ced","tags":[],"selection_glyph":null,"nonselection_glyph":{"type":"Circle","id":"0a6578ccde83f228a5bea0bdbb3c18f9"},"hover_glyph":{"type":"Circle","id":"3fb6406e9819acbae4034360f95b63e7"},"name":null,"data_source":{"type":"ColumnDataSource","id":"a49e0e31091359a1692b2755bb69ebfd"},"glyph":{"type":"Circle","id":"6233daeb782960bde2062d0464c85f35"}}},{"type":"Title","id":"d8330cdac67a8855600e9cae899c5b69","attributes":{"id":"d8330cdac67a8855600e9cae899c5b69","tags":[],"plot":null,"text":"versicolor"}},{"type":"LinearAxis","id":"7c55bb633ecac7004ea8f72c85f09373","attributes":{"id":"7c55bb633ecac7004ea8f72c85f09373","tags":[],"plot":{"type":"Plot","id":"591ce4d568edc5f39f6b299698b31573","subtype":"Figure"},"axis_label":"Sepal.Width","formatter":{"type":"BasicTickFormatter","id":"1245eaf8fd191d6c7a4082d77d197f41"},"ticker":{"type":"BasicTicker","id":"8290717e339ed4ff69a61c0685786f8b"},"visible":false,"axis_line_color":"white","major_label_text_color":"#7F7F7F","major_tick_line_color":"#7F7F7F","minor_tick_line_alpha":{"units":"data","value":0},"axis_label_text_font_style":"normal"}},{"type":"BasicTickFormatter","id":"1245eaf8fd191d6c7a4082d77d197f41","attributes":{"id":"1245eaf8fd191d6c7a4082d77d197f41","tags":[]}},{"type":"BasicTicker","id":"8290717e339ed4ff69a61c0685786f8b","attributes":{"id":"8290717e339ed4ff69a61c0685786f8b","tags":[],"num_minor_ticks":2}},{"type":"Grid","id":"9d3d859b48ebd86170e65b32362b62e8","attributes":{"id":"9d3d859b48ebd86170e65b32362b62e8","tags":[],"dimension":1,"plot":{"type":"Plot","id":"591ce4d568edc5f39f6b299698b31573","subtype":"Figure"},"ticker":{"type":"BasicTicker","id":"8290717e339ed4ff69a61c0685786f8b"},"grid_line_color":"white","minor_grid_line_color":"white","minor_grid_line_alpha":{"units":"data","value":0.4}}},{"type":"LinearAxis","id":"b118f2cb485a1d2acd567912dd043dd1","attributes":{"id":"b118f2cb485a1d2acd567912dd043dd1","tags":[],"plot":{"type":"Plot","id":"591ce4d568edc5f39f6b299698b31573","subtype":"Figure"},"axis_label":"Sepal.Length","formatter":{"type":"BasicTickFormatter","id":"de401f480dda91eb7b62ee2fcd9455b4"},"ticker":{"type":"BasicTicker","id":"28fe7e84d8e23d80be2a1bed93291013"},"visible":true,"axis_line_color":"white","major_label_text_color":"#7F7F7F","major_tick_line_color":"#7F7F7F","minor_tick_line_alpha":{"units":"data","value":0},"axis_label_text_font_style":"normal"}},{"type":"BasicTickFormatter","id":"de401f480dda91eb7b62ee2fcd9455b4","attributes":{"id":"de401f480dda91eb7b62ee2fcd9455b4","tags":[]}},{"type":"BasicTicker","id":"28fe7e84d8e23d80be2a1bed93291013","attributes":{"id":"28fe7e84d8e23d80be2a1bed93291013","tags":[],"num_minor_ticks":2}},{"type":"Grid","id":"c1cd8cfd5f007d9eba16d35839e3d059","attributes":{"id":"c1cd8cfd5f007d9eba16d35839e3d059","tags":[],"dimension":0,"plot":{"type":"Plot","id":"591ce4d568edc5f39f6b299698b31573","subtype":"Figure"},"ticker":{"type":"BasicTicker","id":"28fe7e84d8e23d80be2a1bed93291013"},"grid_line_color":"white","minor_grid_line_color":"white","minor_grid_line_alpha":{"units":"data","value":0.4}}},{"type":"Plot","id":"9f72da474053a43fa8fcc2a5c08e9423","attributes":{"id":"9f72da474053a43fa8fcc2a5c08e9423","plot_width":215,"plot_height":270,"x_range":{"type":"Range1d","id":"45fd80e6d8313cfa44c35e6a0696798e"},"y_range":{"type":"Range1d","id":"8356938f01d28c92d11d0d652d35a49b"},"left":[{"type":"LinearAxis","id":"7c76ef300e5644c94b87a9504d0cec29"}],"below":[{"type":"LinearAxis","id":"187be89e55be02df1eb02aa135ed5395"}],"right":[],"above":[],"renderers":[{"type":"BoxAnnotation","id":"9b5333155f35aa0761d4c33b47927f0a"},{"type":"GlyphRenderer","id":"fe59557bac208c4d6679addbe18656c2"},{"type":"LinearAxis","id":"7c76ef300e5644c94b87a9504d0cec29"},{"type":"Grid","id":"8ccef823c61de6806b0915e965b660cb"},{"type":"LinearAxis","id":"187be89e55be02df1eb02aa135ed5395"},{"type":"Grid","id":"480cafddd7dc2c331c646108bb3e59da"}],"extra_y_ranges":{},"extra_x_ranges":{},"tags":[],"min_border_left":4,"min_border_right":4,"min_border_top":4,"min_border_bottom":70,"lod_threshold":null,"toolbar":{"type":"Toolbar","id":"73291cac2bce1c7396169c2ea41a0105"},"tool_events":{"type":"ToolEvents","id":"769ae217f0dc3b8b6bab9d6d0df61b1b"},"title":{"type":"Title","id":"0185b4ebfc007a3dfa0fe66bddd47054"},"toolbar_location":null,"background_fill_color":"#E6E6E6","outline_line_color":"white"},"subtype":"Figure"},{"type":"Toolbar","id":"73291cac2bce1c7396169c2ea41a0105","attributes":{"id":"73291cac2bce1c7396169c2ea41a0105","tags":[],"active_drag":"auto","active_scroll":"auto","active_tap":"auto","tools":[{"type":"PanTool","id":"329adc970dc801ace06361db1ee45bf6"},{"type":"WheelZoomTool","id":"164adc25c09b0f5417b6e71310b60563"},{"type":"BoxZoomTool","id":"84bbfe34ea7fa34e3c28b49a2c1e118f"},{"type":"ResetTool","id":"392fb712e8fb4f47d8505ad0e3fc5023"},{"type":"SaveTool","id":"1b29bf704050e6601ea5796c67d912bf"},{"type":"HelpTool","id":"c6abb68f5d64927c3c73b015c94650e7"},{"type":"HoverTool","id":"ca16063248638d91953ad95fd75db1c0"}],"logo":null}},{"type":"PanTool","id":"329adc970dc801ace06361db1ee45bf6","attributes":{"id":"329adc970dc801ace06361db1ee45bf6","tags":[],"plot":{"type":"Plot","id":"9f72da474053a43fa8fcc2a5c08e9423","subtype":"Figure"},"dimensions":["width","height"]}},{"type":"ToolEvents","id":"769ae217f0dc3b8b6bab9d6d0df61b1b","attributes":{"id":"769ae217f0dc3b8b6bab9d6d0df61b1b","tags":[]},"geometries":[]},{"type":"WheelZoomTool","id":"164adc25c09b0f5417b6e71310b60563","attributes":{"id":"164adc25c09b0f5417b6e71310b60563","tags":[],"plot":{"type":"Plot","id":"9f72da474053a43fa8fcc2a5c08e9423","subtype":"Figure"},"dimensions":["width","height"]}},{"type":"BoxAnnotation","id":"9b5333155f35aa0761d4c33b47927f0a","attributes":{"id":"9b5333155f35aa0761d4c33b47927f0a","tags":[],"line_color":{"units":"data","value":"black"},"line_alpha":{"units":"data","value":1},"fill_color":{"units":"data","value":"lightgrey"},"fill_alpha":{"units":"data","value":0.5},"line_dash":[4,4],"line_width":{"units":"data","value":2},"level":"overlay","top_units":"screen","bottom_units":"screen","left_units":"screen","right_units":"screen","render_mode":"css"}},{"type":"BoxZoomTool","id":"84bbfe34ea7fa34e3c28b49a2c1e118f","attributes":{"id":"84bbfe34ea7fa34e3c28b49a2c1e118f","tags":[],"plot":{"type":"Plot","id":"9f72da474053a43fa8fcc2a5c08e9423","subtype":"Figure"},"overlay":{"type":"BoxAnnotation","id":"9b5333155f35aa0761d4c33b47927f0a"}}},{"type":"ResetTool","id":"392fb712e8fb4f47d8505ad0e3fc5023","attributes":{"id":"392fb712e8fb4f47d8505ad0e3fc5023","tags":[],"plot":{"type":"Plot","id":"9f72da474053a43fa8fcc2a5c08e9423","subtype":"Figure"}}},{"type":"SaveTool","id":"1b29bf704050e6601ea5796c67d912bf","attributes":{"id":"1b29bf704050e6601ea5796c67d912bf","tags":[],"plot":{"type":"Plot","id":"9f72da474053a43fa8fcc2a5c08e9423","subtype":"Figure"}}},{"type":"HelpTool","id":"c6abb68f5d64927c3c73b015c94650e7","attributes":{"id":"c6abb68f5d64927c3c73b015c94650e7","tags":[],"plot":{"type":"Plot","id":"9f72da474053a43fa8fcc2a5c08e9423","subtype":"Figure"},"redirect":"http://hafen.github.io/rbokeh","help_tooltip":"Click to learn more about rbokeh."}},{"type":"HoverTool","id":"ca16063248638d91953ad95fd75db1c0","attributes":{"id":"ca16063248638d91953ad95fd75db1c0","tags":[],"plot":{"type":"Plot","id":"9f72da474053a43fa8fcc2a5c08e9423","subtype":"Figure"},"renderers":[{"type":"GlyphRenderer","id":"fe59557bac208c4d6679addbe18656c2"}],"names":[],"anchor":"center","attachment":"horizontal","line_policy":"prev","mode":"mouse","point_policy":"snap_to_data","tooltips":[["Sepal.Length","@hover_col_1"],["Sepal.Width","@hover_col_2"]]}},{"type":"ColumnDataSource","id":"93989fbf52189102a2a5a750de9ec96f","attributes":{"id":"93989fbf52189102a2a5a750de9ec96f","tags":[],"column_names":["x","y","hover_col_1","hover_col_2"],"selected":[],"data":{"x":[6.3,5.8,7.1,6.3,6.5,7.6,4.9,7.3,6.7,7.2,6.5,6.4,6.8,5.7,5.8,6.4,6.5,7.7,7.7,6,6.9,5.6,7.7,6.3,6.7,7.2,6.2,6.1,6.4,7.2,7.4,7.9,6.4,6.3,6.1,7.7,6.3,6.4,6,6.9,6.7,6.9,5.8,6.8,6.7,6.7,6.3,6.5,6.2,5.9],"y":[3.3,2.7,3,2.9,3,3,2.5,2.9,2.5,3.6,3.2,2.7,3,2.5,2.8,3.2,3,3.8,2.6,2.2,3.2,2.8,2.8,2.7,3.3,3.2,2.8,3,2.8,3,2.8,3.8,2.8,2.8,2.6,3,3.4,3.1,3,3.1,3.1,3.1,2.7,3.2,3.3,3,2.5,3,3.4,3],"hover_col_1":["6.3","5.8","7.1","6.3","6.5","7.6","4.9","7.3","6.7","7.2","6.5","6.4","6.8","5.7","5.8","6.4","6.5","7.7","7.7","6.0","6.9","5.6","7.7","6.3","6.7","7.2","6.2","6.1","6.4","7.2","7.4","7.9","6.4","6.3","6.1","7.7","6.3","6.4","6.0","6.9","6.7","6.9","5.8","6.8","6.7","6.7","6.3","6.5","6.2","5.9"],"hover_col_2":["3.3","2.7","3.0","2.9","3.0","3.0","2.5","2.9","2.5","3.6","3.2","2.7","3.0","2.5","2.8","3.2","3.0","3.8","2.6","2.2","3.2","2.8","2.8","2.7","3.3","3.2","2.8","3.0","2.8","3.0","2.8","3.8","2.8","2.8","2.6","3.0","3.4","3.1","3.0","3.1","3.1","3.1","2.7","3.2","3.3","3.0","2.5","3.0","3.4","3.0"]}}},{"type":"Circle","id":"ec19bf8fc74d1a4ad4f27d238e37b52f","attributes":{"id":"ec19bf8fc74d1a4ad4f27d238e37b52f","tags":[],"size":{"units":"screen","value":10},"visible":true,"line_color":{"units":"data","value":"#1F77B4"},"fill_color":{"units":"data","value":"#1F77B4"},"line_alpha":{"units":"data","value":1},"fill_alpha":{"units":"data","value":0.5},"x":{"units":"data","field":"x"},"y":{"units":"data","field":"y"}}},{"type":"Circle","id":"6399311be86dbb6e2612eeea326bdd62","attributes":{"id":"6399311be86dbb6e2612eeea326bdd62","tags":[],"size":{"units":"screen","value":10},"visible":true,"line_color":{"units":"data","value":"#e1e1e1"},"fill_color":{"units":"data","value":"#e1e1e1"},"line_alpha":{"units":"data","value":1},"fill_alpha":{"units":"data","value":0.5},"x":{"units":"data","field":"x"},"y":{"units":"data","field":"y"}}},{"type":"Circle","id":"852f781fac7b3b1cd0a51dd8f47f0b45","attributes":{"id":"852f781fac7b3b1cd0a51dd8f47f0b45","tags":[],"size":{"units":"screen","value":10},"visible":true,"line_color":{"units":"data","value":"#1F77B4"},"fill_color":{"units":"data","value":"#1F77B4"},"line_alpha":{"units":"data","value":1},"fill_alpha":{"units":"data","value":1},"x":{"units":"data","field":"x"},"y":{"units":"data","field":"y"}}},{"type":"GlyphRenderer","id":"fe59557bac208c4d6679addbe18656c2","attributes":{"id":"fe59557bac208c4d6679addbe18656c2","tags":[],"selection_glyph":null,"nonselection_glyph":{"type":"Circle","id":"6399311be86dbb6e2612eeea326bdd62"},"hover_glyph":{"type":"Circle","id":"852f781fac7b3b1cd0a51dd8f47f0b45"},"name":null,"data_source":{"type":"ColumnDataSource","id":"93989fbf52189102a2a5a750de9ec96f"},"glyph":{"type":"Circle","id":"ec19bf8fc74d1a4ad4f27d238e37b52f"}}},{"type":"Title","id":"0185b4ebfc007a3dfa0fe66bddd47054","attributes":{"id":"0185b4ebfc007a3dfa0fe66bddd47054","tags":[],"plot":null,"text":"virginica"}},{"type":"LinearAxis","id":"7c76ef300e5644c94b87a9504d0cec29","attributes":{"id":"7c76ef300e5644c94b87a9504d0cec29","tags":[],"plot":{"type":"Plot","id":"9f72da474053a43fa8fcc2a5c08e9423","subtype":"Figure"},"axis_label":"Sepal.Width","formatter":{"type":"BasicTickFormatter","id":"afae5e1140dce720e8bb8c1fa3c7ae8c"},"ticker":{"type":"BasicTicker","id":"ce522b1c95309f5f979c172c3b1a5dbd"},"visible":false,"axis_line_color":"white","major_label_text_color":"#7F7F7F","major_tick_line_color":"#7F7F7F","minor_tick_line_alpha":{"units":"data","value":0},"axis_label_text_font_style":"normal"}},{"type":"BasicTickFormatter","id":"afae5e1140dce720e8bb8c1fa3c7ae8c","attributes":{"id":"afae5e1140dce720e8bb8c1fa3c7ae8c","tags":[]}},{"type":"BasicTicker","id":"ce522b1c95309f5f979c172c3b1a5dbd","attributes":{"id":"ce522b1c95309f5f979c172c3b1a5dbd","tags":[],"num_minor_ticks":2}},{"type":"Grid","id":"8ccef823c61de6806b0915e965b660cb","attributes":{"id":"8ccef823c61de6806b0915e965b660cb","tags":[],"dimension":1,"plot":{"type":"Plot","id":"9f72da474053a43fa8fcc2a5c08e9423","subtype":"Figure"},"ticker":{"type":"BasicTicker","id":"ce522b1c95309f5f979c172c3b1a5dbd"},"grid_line_color":"white","minor_grid_line_color":"white","minor_grid_line_alpha":{"units":"data","value":0.4}}},{"type":"LinearAxis","id":"187be89e55be02df1eb02aa135ed5395","attributes":{"id":"187be89e55be02df1eb02aa135ed5395","tags":[],"plot":{"type":"Plot","id":"9f72da474053a43fa8fcc2a5c08e9423","subtype":"Figure"},"axis_label":"Sepal.Length","formatter":{"type":"BasicTickFormatter","id":"21967fbd9d8231284fb5281977616c3f"},"ticker":{"type":"BasicTicker","id":"9f8b6570a8799899da454bd8b9655277"},"visible":true,"axis_line_color":"white","major_label_text_color":"#7F7F7F","major_tick_line_color":"#7F7F7F","minor_tick_line_alpha":{"units":"data","value":0},"axis_label_text_font_style":"normal"}},{"type":"BasicTickFormatter","id":"21967fbd9d8231284fb5281977616c3f","attributes":{"id":"21967fbd9d8231284fb5281977616c3f","tags":[]}},{"type":"BasicTicker","id":"9f8b6570a8799899da454bd8b9655277","attributes":{"id":"9f8b6570a8799899da454bd8b9655277","tags":[],"num_minor_ticks":2}},{"type":"Grid","id":"480cafddd7dc2c331c646108bb3e59da","attributes":{"id":"480cafddd7dc2c331c646108bb3e59da","tags":[],"dimension":0,"plot":{"type":"Plot","id":"9f72da474053a43fa8fcc2a5c08e9423","subtype":"Figure"},"ticker":{"type":"BasicTicker","id":"9f8b6570a8799899da454bd8b9655277"},"grid_line_color":"white","minor_grid_line_color":"white","minor_grid_line_alpha":{"units":"data","value":0.4}}},{"type":"Row","id":"72b5a6c5cda8eec00a8b608d03413643","attributes":{"children":[{"type":"Plot","id":"a87b6f6be211d1d603960d9bc2546a6e","subtype":"Figure"},{"type":"Plot","id":"591ce4d568edc5f39f6b299698b31573","subtype":"Figure"},{"type":"Plot","id":"9f72da474053a43fa8fcc2a5c08e9423","subtype":"Figure"}]}},{"type":"Column","id":"e772aebfe8b5d3387c2e46a8c44e63f5","attributes":{"children":[{"type":"Row","id":"72b5a6c5cda8eec00a8b608d03413643"}]}},{"type":"ToolbarBox","id":"04840a18289a158476e0b374fffd1cc6","attributes":{"id":"04840a18289a158476e0b374fffd1cc6","tags":[],"sizing_mode":"scale_width","toolbar_location":"above","logo":null,"tools":[{"type":"PanTool","id":"e183bb5496f7e2db80824b02ee73e216"},{"type":"WheelZoomTool","id":"d1171e7b231e373ae140aa31ab1ad57e"},{"type":"BoxZoomTool","id":"01e5244a52e602b13911298003d095f1"},{"type":"ResetTool","id":"9d6e35df39b216226f54367140627ec5"},{"type":"SaveTool","id":"bbf33a90da9b15d34223b98dd44d1eeb"},{"type":"HelpTool","id":"dd5076a8f6b2673aaccdab953b09df22"},{"type":"HoverTool","id":"2f824b2ae2ea30c5888cd11f1652cab3"},{"type":"PanTool","id":"eb530b5734c77fddb70b56ca5513689f"},{"type":"WheelZoomTool","id":"f02c1e1e83f93b6d148257fec4b36e8f"},{"type":"BoxZoomTool","id":"29622d63eae81feb01aa168d148ea6ee"},{"type":"ResetTool","id":"500feb0cdd512f427176c023578058ab"},{"type":"SaveTool","id":"5a2898cd0d2711ce50b327c3ffc3a24d"},{"type":"HelpTool","id":"bf9ed2aca46d901c04f26cd628b35048"},{"type":"HoverTool","id":"8c1c5156da97d66687278c07395aa071"},{"type":"PanTool","id":"329adc970dc801ace06361db1ee45bf6"},{"type":"WheelZoomTool","id":"164adc25c09b0f5417b6e71310b60563"},{"type":"BoxZoomTool","id":"84bbfe34ea7fa34e3c28b49a2c1e118f"},{"type":"ResetTool","id":"392fb712e8fb4f47d8505ad0e3fc5023"},{"type":"SaveTool","id":"1b29bf704050e6601ea5796c67d912bf"},{"type":"HelpTool","id":"c6abb68f5d64927c3c73b015c94650e7"},{"type":"HoverTool","id":"ca16063248638d91953ad95fd75db1c0"}]}},{"type":"Column","id":"1fa18ab2ec41cdfd4df2c78066f40a20","attributes":{"children":[{"type":"ToolbarBox","id":"04840a18289a158476e0b374fffd1cc6"},{"type":"Column","id":"e772aebfe8b5d3387c2e46a8c44e63f5"}]}},{"type":"ToolbarBox","id":"04840a18289a158476e0b374fffd1cc6","attributes":{"id":"04840a18289a158476e0b374fffd1cc6","tags":[],"sizing_mode":"scale_width","toolbar_location":"above","logo":null,"tools":[{"type":"PanTool","id":"e183bb5496f7e2db80824b02ee73e216"},{"type":"WheelZoomTool","id":"d1171e7b231e373ae140aa31ab1ad57e"},{"type":"BoxZoomTool","id":"01e5244a52e602b13911298003d095f1"},{"type":"ResetTool","id":"9d6e35df39b216226f54367140627ec5"},{"type":"SaveTool","id":"bbf33a90da9b15d34223b98dd44d1eeb"},{"type":"HelpTool","id":"dd5076a8f6b2673aaccdab953b09df22"},{"type":"HoverTool","id":"2f824b2ae2ea30c5888cd11f1652cab3"},{"type":"PanTool","id":"eb530b5734c77fddb70b56ca5513689f"},{"type":"WheelZoomTool","id":"f02c1e1e83f93b6d148257fec4b36e8f"},{"type":"BoxZoomTool","id":"29622d63eae81feb01aa168d148ea6ee"},{"type":"ResetTool","id":"500feb0cdd512f427176c023578058ab"},{"type":"SaveTool","id":"5a2898cd0d2711ce50b327c3ffc3a24d"},{"type":"HelpTool","id":"bf9ed2aca46d901c04f26cd628b35048"},{"type":"HoverTool","id":"8c1c5156da97d66687278c07395aa071"},{"type":"PanTool","id":"329adc970dc801ace06361db1ee45bf6"},{"type":"WheelZoomTool","id":"164adc25c09b0f5417b6e71310b60563"},{"type":"BoxZoomTool","id":"84bbfe34ea7fa34e3c28b49a2c1e118f"},{"type":"ResetTool","id":"392fb712e8fb4f47d8505ad0e3fc5023"},{"type":"SaveTool","id":"1b29bf704050e6601ea5796c67d912bf"},{"type":"HelpTool","id":"c6abb68f5d64927c3c73b015c94650e7"},{"type":"HoverTool","id":"ca16063248638d91953ad95fd75db1c0"}]}},{"type":"Range1d","id":"45fd80e6d8313cfa44c35e6a0696798e","attributes":{"id":"45fd80e6d8313cfa44c35e6a0696798e","tags":[],"start":4.048,"end":8.152}},{"type":"Range1d","id":"8356938f01d28c92d11d0d652d35a49b","attributes":{"id":"8356938f01d28c92d11d0d652d35a49b","tags":[],"start":1.832,"end":4.568}}]}}}; | |
var refkey = Object.keys(docs_json)[0] | |
var refs = docs_json[refkey].roots.references | |
function traverseObject(obj) { | |
for (var key in obj) { | |
if (obj[key].constructor === Object) { | |
traverseObject(obj[key]); | |
} else if (obj[key].constructor === Array) { | |
for (var i = 0; i < obj[key].length; i++) { | |
if (obj[key][i] === null) | |
obj[key][i] = NaN; | |
}; | |
} | |
}; | |
} | |
for (var i = 0; i < refs.length; i++) { | |
if (refs[i].type === 'ColumnDataSource') | |
traverseObject(refs[i].attributes.data); | |
}; | |
var render_items = [{ | |
'docid': docid, | |
'elementid': elementid, | |
'modelid': modelid | |
}]; | |
Bokeh.set_log_level('info'); | |
Bokeh.embed.embed_items(docs_json, render_items); | |
}); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment