52 lines
5.5 KiB
HTML
52 lines
5.5 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>Bokeh Plot</title>
|
|
<script type="text/javascript" src="https://cdn.bokeh.org/bokeh/release/bokeh-3.0.2.min.js"></script>
|
|
<script type="text/javascript">
|
|
Bokeh.set_log_level("info");
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<div id="a3ed5b52-0df3-4007-938f-5c6012e956c8" data-root-id="p1004" style="display: contents;"></div>
|
|
|
|
<script type="application/json" id="p1215">
|
|
{"14ecb273-a373-45b0-a890-2c9208400025":{"version":"3.0.2","title":"Bokeh Application","defs":[],"roots":[{"type":"object","name":"Figure","id":"p1004","attributes":{"width":700,"height":300,"sizing_mode":"scale_width","x_range":{"type":"object","name":"FactorRange","id":"p1014","attributes":{"factors":["Durian","Surstr\u00f6mming","Liquorice","Vodka","Balut","Civet coffee","Maggot Cheese","Blood sausage","Escargots snail","Tarantula","Frog","Chicken feet"]}},"y_range":{"type":"object","name":"Range1d","id":"p1016","attributes":{"end":9}},"x_scale":{"type":"object","name":"CategoricalScale","id":"p1018"},"y_scale":{"type":"object","name":"LinearScale","id":"p1020"},"title":{"type":"object","name":"Title","id":"p1007","attributes":{"text":"Counts"}},"renderers":[{"type":"object","name":"GlyphRenderer","id":"p1042","attributes":{"data_source":{"type":"object","name":"ColumnDataSource","id":"p1001","attributes":{"selected":{"type":"object","name":"Selection","id":"p1003","attributes":{"indices":[],"line_indices":[]}},"selection_policy":{"type":"object","name":"UnionRenderers","id":"p1002"},"data":{"type":"map","entries":[["x",["Liquorice","Maggot Cheese","Vodka","Blood sausage","Escargots snail","Balut","Tarantula","Frog","Civet coffee","Durian","Surstr\u00f6mming","Chicken feet"]],["y",[2,1,2,1,1,2,1,1,2,3,3,1]]]}}},"view":{"type":"object","name":"CDSView","id":"p1043","attributes":{"filter":{"type":"object","name":"AllIndices","id":"p1044"}}},"glyph":{"type":"object","name":"VBar","id":"p1039","attributes":{"x":{"type":"field","field":"x"},"width":{"type":"value","value":0.9},"top":{"type":"field","field":"y"},"line_color":{"type":"value","value":"#1f77b4"},"fill_color":{"type":"value","value":"#1f77b4"}}},"nonselection_glyph":{"type":"object","name":"VBar","id":"p1040","attributes":{"x":{"type":"field","field":"x"},"width":{"type":"value","value":0.9},"top":{"type":"field","field":"y"},"line_color":{"type":"value","value":"#1f77b4"},"line_alpha":{"type":"value","value":0.1},"fill_color":{"type":"value","value":"#1f77b4"},"fill_alpha":{"type":"value","value":0.1},"hatch_alpha":{"type":"value","value":0.1}}},"muted_glyph":{"type":"object","name":"VBar","id":"p1041","attributes":{"x":{"type":"field","field":"x"},"width":{"type":"value","value":0.9},"top":{"type":"field","field":"y"},"line_color":{"type":"value","value":"#1f77b4"},"line_alpha":{"type":"value","value":0.2},"fill_color":{"type":"value","value":"#1f77b4"},"fill_alpha":{"type":"value","value":0.2},"hatch_alpha":{"type":"value","value":0.2}}}}}],"toolbar":{"type":"object","name":"Toolbar","id":"p1011"},"toolbar_location":null,"left":[{"type":"object","name":"LinearAxis","id":"p1028","attributes":{"ticker":{"type":"object","name":"BasicTicker","id":"p1029","attributes":{"mantissas":[1,2,5]}},"formatter":{"type":"object","name":"BasicTickFormatter","id":"p1030"},"major_label_policy":{"type":"object","name":"AllLabels","id":"p1031"}}}],"below":[{"type":"object","name":"CategoricalAxis","id":"p1022","attributes":{"ticker":{"type":"object","name":"CategoricalTicker","id":"p1023"},"formatter":{"type":"object","name":"CategoricalTickFormatter","id":"p1024"},"major_label_policy":{"type":"object","name":"AllLabels","id":"p1025"}}}],"center":[{"type":"object","name":"Grid","id":"p1027","attributes":{"axis":{"id":"p1022"},"grid_line_color":null}},{"type":"object","name":"Grid","id":"p1034","attributes":{"dimension":1,"axis":{"id":"p1028"}}},{"type":"object","name":"Legend","id":"p1057","attributes":{"visible":false,"items":[{"type":"object","name":"LegendItem","id":"p1058","attributes":{"label":{"type":"field","field":"x"},"renderers":[{"id":"p1042"}]}}]}}]}}]}}
|
|
</script>
|
|
<script type="text/javascript">
|
|
(function() {
|
|
const fn = function() {
|
|
Bokeh.safely(function() {
|
|
(function(root) {
|
|
function embed_document(root) {
|
|
const docs_json = document.getElementById('p1215').textContent;
|
|
const render_items = [{"docid":"14ecb273-a373-45b0-a890-2c9208400025","roots":{"p1004":"a3ed5b52-0df3-4007-938f-5c6012e956c8"},"root_ids":["p1004"]}];
|
|
root.Bokeh.embed.embed_items(docs_json, render_items);
|
|
}
|
|
if (root.Bokeh !== undefined) {
|
|
embed_document(root);
|
|
} else {
|
|
let attempts = 0;
|
|
const timer = setInterval(function(root) {
|
|
if (root.Bokeh !== undefined) {
|
|
clearInterval(timer);
|
|
embed_document(root);
|
|
} else {
|
|
attempts++;
|
|
if (attempts > 100) {
|
|
clearInterval(timer);
|
|
console.log("Bokeh: ERROR: Unable to run BokehJS code because BokehJS library is missing");
|
|
}
|
|
}
|
|
}, 10, root)
|
|
}
|
|
})(window);
|
|
});
|
|
};
|
|
if (document.readyState != "loading") fn();
|
|
else document.addEventListener("DOMContentLoaded", fn);
|
|
})();
|
|
</script>
|
|
</body>
|
|
</html> |