|
<?xml version='1.0' encoding='utf-8'?> |
|
<svg xmlns="http://www.w3.org/2000/svg" id="chart-dbf7f645-053d-493a-a6c9-96a6d9c9d6c9" class="pygal-chart" viewBox="0 0 800 600"><!--Generated with pygal 3.0.4 (etree) ©Kozea 2012-2016 on 2024-07-05--><!--http://pygal.org--><!--http://github.com/Kozea/pygal--><defs><style type="text/css">#chart-dbf7f645-053d-493a-a6c9-96a6d9c9d6c9{-webkit-user-select:none;-webkit-font-smoothing:antialiased;font-family:Consolas,"Deja Vu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace}#chart-dbf7f645-053d-493a-a6c9-96a6d9c9d6c9 .title{font-family:Consolas,"Deja Vu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace;font-size:16px}#chart-dbf7f645-053d-493a-a6c9-96a6d9c9d6c9 .legends .legend text{font-family:Consolas,"Deja Vu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace;font-size:14px}#chart-dbf7f645-053d-493a-a6c9-96a6d9c9d6c9 .axis text{font-family:Consolas,"Deja Vu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace;font-size:10px}#chart-dbf7f645-053d-493a-a6c9-96a6d9c9d6c9 .axis text.major{font-family:Consolas,"Deja Vu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace;font-size:10px}#chart-dbf7f645-053d-493a-a6c9-96a6d9c9d6c9 .text-overlay text.value{font-family:Consolas,"Deja Vu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace;font-size:16px}#chart-dbf7f645-053d-493a-a6c9-96a6d9c9d6c9 .text-overlay text.label{font-family:Consolas,"Deja Vu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace;font-size:10px}#chart-dbf7f645-053d-493a-a6c9-96a6d9c9d6c9 .tooltip{font-family:Consolas,"Deja Vu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace;font-size:14px}#chart-dbf7f645-053d-493a-a6c9-96a6d9c9d6c9 text.no_data{font-family:Consolas,"Deja Vu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace;font-size:64px} |
|
#chart-dbf7f645-053d-493a-a6c9-96a6d9c9d6c9{background-color:rgba(249,249,249,1)}#chart-dbf7f645-053d-493a-a6c9-96a6d9c9d6c9 path,#chart-dbf7f645-053d-493a-a6c9-96a6d9c9d6c9 line,#chart-dbf7f645-053d-493a-a6c9-96a6d9c9d6c9 rect,#chart-dbf7f645-053d-493a-a6c9-96a6d9c9d6c9 circle{-webkit-transition:150ms;-moz-transition:150ms;transition:150ms}#chart-dbf7f645-053d-493a-a6c9-96a6d9c9d6c9 .graph > .background{fill:rgba(249,249,249,1)}#chart-dbf7f645-053d-493a-a6c9-96a6d9c9d6c9 .plot > .background{fill:rgba(255,255,255,1)}#chart-dbf7f645-053d-493a-a6c9-96a6d9c9d6c9 .graph{fill:rgba(0,0,0,.87)}#chart-dbf7f645-053d-493a-a6c9-96a6d9c9d6c9 text.no_data{fill:rgba(0,0,0,1)}#chart-dbf7f645-053d-493a-a6c9-96a6d9c9d6c9 .title{fill:rgba(0,0,0,1)}#chart-dbf7f645-053d-493a-a6c9-96a6d9c9d6c9 .legends .legend text{fill:rgba(0,0,0,.87)}#chart-dbf7f645-053d-493a-a6c9-96a6d9c9d6c9 .legends .legend:hover text{fill:rgba(0,0,0,1)}#chart-dbf7f645-053d-493a-a6c9-96a6d9c9d6c9 .axis .line{stroke:rgba(0,0,0,1)}#chart-dbf7f645-053d-493a-a6c9-96a6d9c9d6c9 .axis .guide.line{stroke:rgba(0,0,0,.54)}#chart-dbf7f645-053d-493a-a6c9-96a6d9c9d6c9 .axis .major.line{stroke:rgba(0,0,0,.87)}#chart-dbf7f645-053d-493a-a6c9-96a6d9c9d6c9 .axis text.major{fill:rgba(0,0,0,1)}#chart-dbf7f645-053d-493a-a6c9-96a6d9c9d6c9 .axis.y .guides:hover .guide.line,#chart-dbf7f645-053d-493a-a6c9-96a6d9c9d6c9 .line-graph .axis.x .guides:hover .guide.line,#chart-dbf7f645-053d-493a-a6c9-96a6d9c9d6c9 .stackedline-graph .axis.x .guides:hover .guide.line,#chart-dbf7f645-053d-493a-a6c9-96a6d9c9d6c9 .xy-graph .axis.x .guides:hover .guide.line{stroke:rgba(0,0,0,1)}#chart-dbf7f645-053d-493a-a6c9-96a6d9c9d6c9 .axis .guides:hover text{fill:rgba(0,0,0,1)}#chart-dbf7f645-053d-493a-a6c9-96a6d9c9d6c9 .reactive{fill-opacity:.7;stroke-opacity:.8;stroke-width:1}#chart-dbf7f645-053d-493a-a6c9-96a6d9c9d6c9 .ci{stroke:rgba(0,0,0,.87)}#chart-dbf7f645-053d-493a-a6c9-96a6d9c9d6c9 .reactive.active,#chart-dbf7f645-053d-493a-a6c9-96a6d9c9d6c9 .active .reactive{fill-opacity:.8;stroke-opacity:.9;stroke-width:4}#chart-dbf7f645-053d-493a-a6c9-96a6d9c9d6c9 .ci .reactive.active{stroke-width:1.5}#chart-dbf7f645-053d-493a-a6c9-96a6d9c9d6c9 .series text{fill:rgba(0,0,0,1)}#chart-dbf7f645-053d-493a-a6c9-96a6d9c9d6c9 .tooltip rect{fill:rgba(255,255,255,1);stroke:rgba(0,0,0,1);-webkit-transition:opacity 150ms;-moz-transition:opacity 150ms;transition:opacity 150ms}#chart-dbf7f645-053d-493a-a6c9-96a6d9c9d6c9 .tooltip .label{fill:rgba(0,0,0,.87)}#chart-dbf7f645-053d-493a-a6c9-96a6d9c9d6c9 .tooltip .label{fill:rgba(0,0,0,.87)}#chart-dbf7f645-053d-493a-a6c9-96a6d9c9d6c9 .tooltip .legend{font-size:.8em;fill:rgba(0,0,0,.54)}#chart-dbf7f645-053d-493a-a6c9-96a6d9c9d6c9 .tooltip .x_label{font-size:.6em;fill:rgba(0,0,0,1)}#chart-dbf7f645-053d-493a-a6c9-96a6d9c9d6c9 .tooltip .xlink{font-size:.5em;text-decoration:underline}#chart-dbf7f645-053d-493a-a6c9-96a6d9c9d6c9 .tooltip .value{font-size:1.5em}#chart-dbf7f645-053d-493a-a6c9-96a6d9c9d6c9 .bound{font-size:.5em}#chart-dbf7f645-053d-493a-a6c9-96a6d9c9d6c9 .max-value{font-size:.75em;fill:rgba(0,0,0,.54)}#chart-dbf7f645-053d-493a-a6c9-96a6d9c9d6c9 .map-element{fill:rgba(255,255,255,1);stroke:rgba(0,0,0,.54) !important}#chart-dbf7f645-053d-493a-a6c9-96a6d9c9d6c9 .map-element .reactive{fill-opacity:inherit;stroke-opacity:inherit}#chart-dbf7f645-053d-493a-a6c9-96a6d9c9d6c9 .color-0,#chart-dbf7f645-053d-493a-a6c9-96a6d9c9d6c9 .color-0 a:visited{stroke:#3F51B5;fill:#3F51B5}#chart-dbf7f645-053d-493a-a6c9-96a6d9c9d6c9 .color-1,#chart-dbf7f645-053d-493a-a6c9-96a6d9c9d6c9 .color-1 a:visited{stroke:#3F51B5;fill:#3F51B5}#chart-dbf7f645-053d-493a-a6c9-96a6d9c9d6c9 .color-2,#chart-dbf7f645-053d-493a-a6c9-96a6d9c9d6c9 .color-2 a:visited{stroke:#3F51B5;fill:#3F51B5}#chart-dbf7f645-053d-493a-a6c9-96a6d9c9d6c9 .color-3,#chart-dbf7f645-053d-493a-a6c9-96a6d9c9d6c9 .color-3 a:visited{stroke:#3F51B5;fill:#3F51B5}#chart-dbf7f645-053d-493a-a6c9-96a6d9c9d6c9 .text-overlay .color-0 text{fill:black}#chart-dbf7f645-053d-493a-a6c9-96a6d9c9d6c9 .text-overlay .color-1 text{fill:black}#chart-dbf7f645-053d-493a-a6c9-96a6d9c9d6c9 .text-overlay .color-2 text{fill:black}#chart-dbf7f645-053d-493a-a6c9-96a6d9c9d6c9 .text-overlay .color-3 text{fill:black} |
|
#chart-dbf7f645-053d-493a-a6c9-96a6d9c9d6c9 text.no_data{text-anchor:middle}#chart-dbf7f645-053d-493a-a6c9-96a6d9c9d6c9 .guide.line{fill:none}#chart-dbf7f645-053d-493a-a6c9-96a6d9c9d6c9 .centered{text-anchor:middle}#chart-dbf7f645-053d-493a-a6c9-96a6d9c9d6c9 .title{text-anchor:middle}#chart-dbf7f645-053d-493a-a6c9-96a6d9c9d6c9 .legends .legend text{fill-opacity:1}#chart-dbf7f645-053d-493a-a6c9-96a6d9c9d6c9 .axis.x text{text-anchor:middle}#chart-dbf7f645-053d-493a-a6c9-96a6d9c9d6c9 .axis.x:not(.web) text[transform]{text-anchor:start}#chart-dbf7f645-053d-493a-a6c9-96a6d9c9d6c9 .axis.x:not(.web) text[transform].backwards{text-anchor:end}#chart-dbf7f645-053d-493a-a6c9-96a6d9c9d6c9 .axis.y text{text-anchor:end}#chart-dbf7f645-053d-493a-a6c9-96a6d9c9d6c9 .axis.y text[transform].backwards{text-anchor:start}#chart-dbf7f645-053d-493a-a6c9-96a6d9c9d6c9 .axis.y2 text{text-anchor:start}#chart-dbf7f645-053d-493a-a6c9-96a6d9c9d6c9 .axis.y2 text[transform].backwards{text-anchor:end}#chart-dbf7f645-053d-493a-a6c9-96a6d9c9d6c9 .axis .guide.line{stroke-dasharray:4,4;stroke:black}#chart-dbf7f645-053d-493a-a6c9-96a6d9c9d6c9 .axis .major.guide.line{stroke-dasharray:6,6;stroke:black}#chart-dbf7f645-053d-493a-a6c9-96a6d9c9d6c9 .horizontal .axis.y .guide.line,#chart-dbf7f645-053d-493a-a6c9-96a6d9c9d6c9 .horizontal .axis.y2 .guide.line,#chart-dbf7f645-053d-493a-a6c9-96a6d9c9d6c9 .vertical .axis.x .guide.line{opacity:0}#chart-dbf7f645-053d-493a-a6c9-96a6d9c9d6c9 .horizontal .axis.always_show .guide.line,#chart-dbf7f645-053d-493a-a6c9-96a6d9c9d6c9 .vertical .axis.always_show .guide.line{opacity:1 !important}#chart-dbf7f645-053d-493a-a6c9-96a6d9c9d6c9 .axis.y .guides:hover .guide.line,#chart-dbf7f645-053d-493a-a6c9-96a6d9c9d6c9 .axis.y2 .guides:hover .guide.line,#chart-dbf7f645-053d-493a-a6c9-96a6d9c9d6c9 .axis.x .guides:hover .guide.line{opacity:1}#chart-dbf7f645-053d-493a-a6c9-96a6d9c9d6c9 .axis .guides:hover text{opacity:1}#chart-dbf7f645-053d-493a-a6c9-96a6d9c9d6c9 .nofill{fill:none}#chart-dbf7f645-053d-493a-a6c9-96a6d9c9d6c9 .subtle-fill{fill-opacity:.2}#chart-dbf7f645-053d-493a-a6c9-96a6d9c9d6c9 .dot{stroke-width:1px;fill-opacity:1;stroke-opacity:1}#chart-dbf7f645-053d-493a-a6c9-96a6d9c9d6c9 .dot.active{stroke-width:5px}#chart-dbf7f645-053d-493a-a6c9-96a6d9c9d6c9 .dot.negative{fill:transparent}#chart-dbf7f645-053d-493a-a6c9-96a6d9c9d6c9 text,#chart-dbf7f645-053d-493a-a6c9-96a6d9c9d6c9 tspan{stroke:none !important}#chart-dbf7f645-053d-493a-a6c9-96a6d9c9d6c9 .series text.active{opacity:1}#chart-dbf7f645-053d-493a-a6c9-96a6d9c9d6c9 .tooltip rect{fill-opacity:.95;stroke-width:.5}#chart-dbf7f645-053d-493a-a6c9-96a6d9c9d6c9 .tooltip text{fill-opacity:1}#chart-dbf7f645-053d-493a-a6c9-96a6d9c9d6c9 .showable{visibility:hidden}#chart-dbf7f645-053d-493a-a6c9-96a6d9c9d6c9 .showable.shown{visibility:visible}#chart-dbf7f645-053d-493a-a6c9-96a6d9c9d6c9 .gauge-background{fill:rgba(229,229,229,1);stroke:none}#chart-dbf7f645-053d-493a-a6c9-96a6d9c9d6c9 .bg-lines{stroke:rgba(249,249,249,1);stroke-width:2px} |
|
.tooltip .value{font-size:1em !important}.axis text{font-size:9px !important}</style><script type="text/javascript">window.pygal = window.pygal || {};window.pygal.config = window.pygal.config || {};window.pygal.config['dbf7f645-053d-493a-a6c9-96a6d9c9d6c9'] = {"allow_interruptions": false, "box_mode": "tukey", "classes": ["pygal-chart"], "css": ["file://style.css", "file://graph.css", "inline:\n .tooltip .value {\n font-size: 1em !important;\n }\n .axis text {\n font-size: 9px !important;\n }\n "], "defs": [], "disable_xml_declaration": false, "dots_size": 2.5, "dynamic_print_values": false, "explicit_size": false, "fill": false, "force_uri_protocol": "https", "formatter": null, "half_pie": false, "height": 600, "include_x_axis": false, "inner_radius": 0, "interpolate": null, "interpolation_parameters": {}, "interpolation_precision": 250, "inverse_y_axis": false, "js": ["file:///Users/samuelholloway/Documents/Code/agents-playground/.venv/lib/python3.11/site-packages/pygaljs/static/2.0.x/pygal-tooltips.js"], "legend_at_bottom": false, "legend_at_bottom_columns": null, "legend_box_size": 12, "logarithmic": false, "margin": 20, "margin_bottom": null, "margin_left": null, "margin_right": null, "margin_top": null, "max_scale": 20, "min_scale": 20, "missing_value_fill_truncation": "x", "no_data_text": "No data", "no_prefix": false, "order_min": null, "pretty_print": false, "print_labels": false, "print_values": false, "print_values_position": "center", "print_zeroes": true, "range": [37, 750], "rounded_bars": null, "secondary_range": null, "show_dots": true, "show_legend": false, "show_minor_x_labels": true, "show_minor_y_labels": true, "show_only_major_dots": false, "show_x_guides": false, "show_x_labels": true, "show_y_guides": true, "show_y_labels": true, "spacing": 10, "stack_from_top": false, "strict": false, "stroke": true, "stroke_style": null, "style": {"background": "rgba(249, 249, 249, 1)", "ci_colors": [], "colors": ["#3F51B5", "#3F51B5", "#3F51B5", "#3F51B5"], "dot_opacity": "1", "font_family": "Consolas, \"Deja Vu Sans Mono\", \"Bitstream Vera Sans Mono\", \"Courier New\", monospace", "foreground": "rgba(0, 0, 0, .87)", "foreground_strong": "rgba(0, 0, 0, 1)", "foreground_subtle": "rgba(0, 0, 0, .54)", "guide_stroke_color": "black", "guide_stroke_dasharray": "4,4", "label_font_family": "Consolas, \"Deja Vu Sans Mono\", \"Bitstream Vera Sans Mono\", \"Courier New\", monospace", "label_font_size": 10, "legend_font_family": "Consolas, \"Deja Vu Sans Mono\", \"Bitstream Vera Sans Mono\", \"Courier New\", monospace", "legend_font_size": 14, "major_guide_stroke_color": "black", "major_guide_stroke_dasharray": "6,6", "major_label_font_family": "Consolas, \"Deja Vu Sans Mono\", \"Bitstream Vera Sans Mono\", \"Courier New\", monospace", "major_label_font_size": 10, "no_data_font_family": "Consolas, \"Deja Vu Sans Mono\", \"Bitstream Vera Sans Mono\", \"Courier New\", monospace", "no_data_font_size": 64, "opacity": ".7", "opacity_hover": ".8", "plot_background": "rgba(255, 255, 255, 1)", "stroke_opacity": ".8", "stroke_opacity_hover": ".9", "stroke_width": "1", "stroke_width_hover": "4", "title_font_family": "Consolas, \"Deja Vu Sans Mono\", \"Bitstream Vera Sans Mono\", \"Courier New\", monospace", "title_font_size": 16, "tooltip_font_family": "Consolas, \"Deja Vu Sans Mono\", \"Bitstream Vera Sans Mono\", \"Courier New\", monospace", "tooltip_font_size": 14, "transition": "150ms", "value_background": "rgba(229, 229, 229, 1)", "value_colors": [], "value_font_family": "Consolas, \"Deja Vu Sans Mono\", \"Bitstream Vera Sans Mono\", \"Courier New\", monospace", "value_font_size": 16, "value_label_font_family": "Consolas, \"Deja Vu Sans Mono\", \"Bitstream Vera Sans Mono\", \"Courier New\", monospace", "value_label_font_size": 10}, "title": "Speed in Nanoseconds (ns) of Test Exponential", "tooltip_border_radius": 0, "tooltip_fancy_mode": true, "truncate_label": 50, "truncate_legend": null, "width": 800, "x_label_rotation": 270, "x_labels": ["test_ints", "test_floats", "test_decimals", "test_fractions"], "x_labels_major": null, "x_labels_major_count": null, "x_labels_major_every": null, "x_title": "Trial", "xrange": null, "y_label_rotation": 0, "y_labels": null, "y_labels_major": null, "y_labels_major_count": null, "y_labels_major_every": null, "y_title": "Duration", "zero": 37, "legends": ["benchmarks/spatial/numerical_test.py::TestExponential::test_ints - 198373 rounds", "benchmarks/spatial/numerical_test.py::TestExponential::test_floats - 198373 rounds", "benchmarks/spatial/numerical_test.py::TestExponential::test_decimals - 84503 rounds", "benchmarks/spatial/numerical_test.py::TestExponential::test_fractions - 87913 rounds"]}</script><script type="text/javascript">(function() { |
|
var $, get_translation, init, init_svg, matches, padding, r_translation, sibl, svg_ns, tooltip_timeout, xlink_ns; |
|
|
|
svg_ns = 'http://www.w3.org/2000/svg'; |
|
|
|
xlink_ns = 'http://www.w3.org/1999/xlink'; |
|
|
|
$ = function(sel, ctx) { |
|
if (ctx == null) { |
|
ctx = null; |
|
} |
|
ctx = ctx || document; |
|
return Array.prototype.slice.call(ctx.querySelectorAll(sel), 0).filter(function(e) { |
|
return e !== ctx; |
|
}); |
|
}; |
|
|
|
matches = function(el, selector) { |
|
return (el.matches || el.matchesSelector || el.msMatchesSelector || el.mozMatchesSelector || el.webkitMatchesSelector || el.oMatchesSelector).call(el, selector); |
|
}; |
|
|
|
sibl = function(el, match) { |
|
if (match == null) { |
|
match = null; |
|
} |
|
return Array.prototype.filter.call(el.parentElement.children, function(child) { |
|
return child !== el && (!match || matches(child, match)); |
|
}); |
|
}; |
|
|
|
Array.prototype.one = function() { |
|
return this.length > 0 && this[0] || {}; |
|
}; |
|
|
|
padding = 5; |
|
|
|
tooltip_timeout = null; |
|
|
|
r_translation = /translate\((\d+)[ ,]+(\d+)\)/; |
|
|
|
get_translation = function(el) { |
|
return (r_translation.exec(el.getAttribute('transform')) || []).slice(1).map(function(x) { |
|
return +x; |
|
}); |
|
}; |
|
|
|
init = function(ctx) { |
|
var bbox, box, config, el, graph, inner_svg, num, parent, tooltip, tooltip_el, tt, uid, untooltip, xconvert, yconvert, _i, _j, _k, _len, _len1, _len2, _ref, _ref1, _ref2, _ref3; |
|
if ($('svg', ctx).length) { |
|
inner_svg = $('svg', ctx).one(); |
|
parent = inner_svg.parentElement; |
|
box = inner_svg.viewBox.baseVal; |
|
bbox = parent.getBBox(); |
|
xconvert = function(x) { |
|
return ((x - box.x) / box.width) * bbox.width; |
|
}; |
|
yconvert = function(y) { |
|
return ((y - box.y) / box.height) * bbox.height; |
|
}; |
|
} else { |
|
xconvert = yconvert = function(x) { |
|
return x; |
|
}; |
|
} |
|
if (((_ref = window.pygal) != null ? _ref.config : void 0) != null) { |
|
if (window.pygal.config.no_prefix != null) { |
|
config = window.pygal.config; |
|
} else { |
|
uid = ctx.id.replace('chart-', ''); |
|
config = window.pygal.config[uid]; |
|
} |
|
} else { |
|
config = window.config; |
|
} |
|
tooltip_el = null; |
|
graph = $('.graph').one(); |
|
tt = $('.tooltip', ctx).one(); |
|
_ref1 = $('.reactive', ctx); |
|
for (_i = 0, _len = _ref1.length; _i < _len; _i++) { |
|
el = _ref1[_i]; |
|
el.addEventListener('mouseenter', (function(el) { |
|
return function() { |
|
return el.classList.add('active'); |
|
}; |
|
})(el)); |
|
el.addEventListener('mouseleave', (function(el) { |
|
return function() { |
|
return el.classList.remove('active'); |
|
}; |
|
})(el)); |
|
} |
|
_ref2 = $('.activate-serie', ctx); |
|
for (_j = 0, _len1 = _ref2.length; _j < _len1; _j++) { |
|
el = _ref2[_j]; |
|
num = el.id.replace('activate-serie-', ''); |
|
el.addEventListener('mouseenter', (function(num) { |
|
return function() { |
|
var re, _k, _len2, _ref3, _results; |
|
_ref3 = $('.serie-' + num + ' .reactive', ctx); |
|
_results = []; |
|
for (_k = 0, _len2 = _ref3.length; _k < _len2; _k++) { |
|
re = _ref3[_k]; |
|
_results.push(re.classList.add('active')); |
|
} |
|
return _results; |
|
}; |
|
})(num)); |
|
el.addEventListener('mouseleave', (function(num) { |
|
return function() { |
|
var re, _k, _len2, _ref3, _results; |
|
_ref3 = $('.serie-' + num + ' .reactive', ctx); |
|
_results = []; |
|
for (_k = 0, _len2 = _ref3.length; _k < _len2; _k++) { |
|
re = _ref3[_k]; |
|
_results.push(re.classList.remove('active')); |
|
} |
|
return _results; |
|
}; |
|
})(num)); |
|
el.addEventListener('click', (function(el, num) { |
|
return function() { |
|
var ov, re, rect, show, _k, _l, _len2, _len3, _ref3, _ref4, _results; |
|
rect = $('rect', el).one(); |
|
show = rect.style.fill !== ''; |
|
rect.style.fill = show ? '' : 'transparent'; |
|
_ref3 = $('.serie-' + num + ' .reactive', ctx); |
|
for (_k = 0, _len2 = _ref3.length; _k < _len2; _k++) { |
|
re = _ref3[_k]; |
|
re.style.display = show ? '' : 'none'; |
|
} |
|
_ref4 = $('.text-overlay .serie-' + num, ctx); |
|
_results = []; |
|
for (_l = 0, _len3 = _ref4.length; _l < _len3; _l++) { |
|
ov = _ref4[_l]; |
|
_results.push(ov.style.display = show ? '' : 'none'); |
|
} |
|
return _results; |
|
}; |
|
})(el, num)); |
|
} |
|
_ref3 = $('.tooltip-trigger', ctx); |
|
for (_k = 0, _len2 = _ref3.length; _k < _len2; _k++) { |
|
el = _ref3[_k]; |
|
el.addEventListener('mouseenter', (function(el) { |
|
return function() { |
|
return tooltip_el = tooltip(el); |
|
}; |
|
})(el)); |
|
} |
|
tt.addEventListener('mouseenter', function() { |
|
return tooltip_el != null ? tooltip_el.classList.add('active') : void 0; |
|
}); |
|
tt.addEventListener('mouseleave', function() { |
|
return tooltip_el != null ? tooltip_el.classList.remove('active') : void 0; |
|
}); |
|
ctx.addEventListener('mouseleave', function() { |
|
if (tooltip_timeout) { |
|
clearTimeout(tooltip_timeout); |
|
} |
|
return untooltip(0); |
|
}); |
|
graph.addEventListener('mousemove', function(el) { |
|
if (tooltip_timeout) { |
|
return; |
|
} |
|
if (!matches(el.target, '.background')) { |
|
return; |
|
} |
|
return untooltip(1000); |
|
}); |
|
tooltip = function(el) { |
|
var a, baseline, cls, current_x, current_y, dy, h, i, key, keys, label, legend, name, plot_x, plot_y, rect, serie_index, subval, text, text_group, texts, traversal, value, w, x, x_elt, x_label, xlink, y, y_elt, _l, _len3, _len4, _len5, _m, _n, _ref4, _ref5, _ref6, _ref7, _ref8; |
|
clearTimeout(tooltip_timeout); |
|
tooltip_timeout = null; |
|
tt.style.opacity = 1; |
|
tt.style.display = ''; |
|
text_group = $('g.text', tt).one(); |
|
rect = $('rect', tt).one(); |
|
text_group.innerHTML = ''; |
|
label = sibl(el, '.label').one().textContent; |
|
x_label = sibl(el, '.x_label').one().textContent; |
|
value = sibl(el, '.value').one().textContent; |
|
xlink = sibl(el, '.xlink').one().textContent; |
|
serie_index = null; |
|
parent = el; |
|
traversal = []; |
|
while (parent) { |
|
traversal.push(parent); |
|
if (parent.classList.contains('series')) { |
|
break; |
|
} |
|
parent = parent.parentElement; |
|
} |
|
if (parent) { |
|
_ref4 = parent.classList; |
|
for (_l = 0, _len3 = _ref4.length; _l < _len3; _l++) { |
|
cls = _ref4[_l]; |
|
if (cls.indexOf('serie-') === 0) { |
|
serie_index = +cls.replace('serie-', ''); |
|
break; |
|
} |
|
} |
|
} |
|
legend = null; |
|
if (serie_index !== null) { |
|
legend = config.legends[serie_index]; |
|
} |
|
dy = 0; |
|
keys = [[label, 'label']]; |
|
_ref5 = value.split('\n'); |
|
for (i = _m = 0, _len4 = _ref5.length; _m < _len4; i = ++_m) { |
|
subval = _ref5[i]; |
|
keys.push([subval, 'value-' + i]); |
|
} |
|
if (config.tooltip_fancy_mode) { |
|
keys.push([xlink, 'xlink']); |
|
keys.unshift([x_label, 'x_label']); |
|
keys.unshift([legend, 'legend']); |
|
} |
|
texts = {}; |
|
for (_n = 0, _len5 = keys.length; _n < _len5; _n++) { |
|
_ref6 = keys[_n], key = _ref6[0], name = _ref6[1]; |
|
if (key) { |
|
text = document.createElementNS(svg_ns, 'text'); |
|
text.textContent = key; |
|
text.setAttribute('x', padding); |
|
text.setAttribute('dy', dy); |
|
text.classList.add(name.indexOf('value') === 0 ? 'value' : name); |
|
if (name.indexOf('value') === 0 && config.tooltip_fancy_mode) { |
|
text.classList.add('color-' + serie_index); |
|
} |
|
if (name === 'xlink') { |
|
a = document.createElementNS(svg_ns, 'a'); |
|
a.setAttributeNS(xlink_ns, 'href', key); |
|
a.textContent = void 0; |
|
a.appendChild(text); |
|
text.textContent = 'Link >'; |
|
text_group.appendChild(a); |
|
} else { |
|
text_group.appendChild(text); |
|
} |
|
dy += text.getBBox().height + padding / 2; |
|
baseline = padding; |
|
if (text.style.dominantBaseline !== void 0) { |
|
text.style.dominantBaseline = 'text-before-edge'; |
|
} else { |
|
baseline += text.getBBox().height * .8; |
|
} |
|
text.setAttribute('y', baseline); |
|
texts[name] = text; |
|
} |
|
} |
|
w = text_group.getBBox().width + 2 * padding; |
|
h = text_group.getBBox().height + 2 * padding; |
|
rect.setAttribute('width', w); |
|
rect.setAttribute('height', h); |
|
if (texts.value) { |
|
texts.value.setAttribute('dx', (w - texts.value.getBBox().width) / 2 - padding); |
|
} |
|
if (texts.x_label) { |
|
texts.x_label.setAttribute('dx', w - texts.x_label.getBBox().width - 2 * padding); |
|
} |
|
if (texts.xlink) { |
|
texts.xlink.setAttribute('dx', w - texts.xlink.getBBox().width - 2 * padding); |
|
} |
|
x_elt = sibl(el, '.x').one(); |
|
y_elt = sibl(el, '.y').one(); |
|
x = parseInt(x_elt.textContent); |
|
if (x_elt.classList.contains('centered')) { |
|
x -= w / 2; |
|
} else if (x_elt.classList.contains('left')) { |
|
x -= w; |
|
} else if (x_elt.classList.contains('auto')) { |
|
x = xconvert(el.getBBox().x + el.getBBox().width / 2) - w / 2; |
|
} |
|
y = parseInt(y_elt.textContent); |
|
if (y_elt.classList.contains('centered')) { |
|
y -= h / 2; |
|
} else if (y_elt.classList.contains('top')) { |
|
y -= h; |
|
} else if (y_elt.classList.contains('auto')) { |
|
y = yconvert(el.getBBox().y + el.getBBox().height / 2) - h / 2; |
|
} |
|
_ref7 = get_translation(tt.parentElement), plot_x = _ref7[0], plot_y = _ref7[1]; |
|
if (x + w + plot_x > config.width) { |
|
x = config.width - w - plot_x; |
|
} |
|
if (y + h + plot_y > config.height) { |
|
y = config.height - h - plot_y; |
|
} |
|
if (x + plot_x < 0) { |
|
x = -plot_x; |
|
} |
|
if (y + plot_y < 0) { |
|
y = -plot_y; |
|
} |
|
_ref8 = get_translation(tt), current_x = _ref8[0], current_y = _ref8[1]; |
|
if (current_x === x && current_y === y) { |
|
return el; |
|
} |
|
tt.setAttribute('transform', "translate(" + x + " " + y + ")"); |
|
return el; |
|
}; |
|
return untooltip = function(ms) { |
|
return tooltip_timeout = setTimeout(function() { |
|
tt.style.display = 'none'; |
|
tt.style.opacity = 0; |
|
if (tooltip_el != null) { |
|
tooltip_el.classList.remove('active'); |
|
} |
|
return tooltip_timeout = null; |
|
}, ms); |
|
}; |
|
}; |
|
|
|
init_svg = function() { |
|
var chart, charts, _i, _len, _results; |
|
charts = $('.pygal-chart'); |
|
if (charts.length) { |
|
_results = []; |
|
for (_i = 0, _len = charts.length; _i < _len; _i++) { |
|
chart = charts[_i]; |
|
_results.push(init(chart)); |
|
} |
|
return _results; |
|
} |
|
}; |
|
|
|
if (document.readyState !== 'loading') { |
|
init_svg(); |
|
} else { |
|
document.addEventListener('DOMContentLoaded', function() { |
|
return init_svg(); |
|
}); |
|
} |
|
|
|
window.pygal = window.pygal || {}; |
|
|
|
window.pygal.init = init; |
|
|
|
window.pygal.init_svg = init_svg; |
|
|
|
}).call(this); |
|
</script></defs><title>Speed in Nanoseconds (ns) of Test Exponential</title><g class="graph custombox-graph vertical"><rect x="0" y="0" width="800" height="600" class="background" /><g transform="translate(74, 46)" class="plot"><rect x="0" y="0" width="706.0" height="414.0" class="background" /><g class="axis y always_show"><path d="M0.000000 414.000000 h706.000000" class="line" /><g class="guides"><path d="M0.000000 404.363524 h706.000000" class="guide line" /><text x="-5" y="407.863523573201" class="">40</text><title>40</title></g><g class="guides"><path d="M0.000000 382.031017 h706.000000" class="guide line" /><text x="-5" y="385.53101736972707" class="">80</text><title>80</title></g><g class="guides"><path d="M0.000000 359.698511 h706.000000" class="guide line" /><text x="-5" y="363.19851116625307" class="">120</text><title>120</title></g><g class="guides"><path d="M0.000000 337.366005 h706.000000" class="guide line" /><text x="-5" y="340.86600496277913" class="">160</text><title>160</title></g><g class="guides"><path d="M0.000000 315.033499 h706.000000" class="guide line" /><text x="-5" y="318.5334987593052" class="">200</text><title>200</title></g><g class="guides"><path d="M0.000000 292.700993 h706.000000" class="guide line" /><text x="-5" y="296.20099255583125" class="">240</text><title>240</title></g><g class="guides"><path d="M0.000000 270.368486 h706.000000" class="guide line" /><text x="-5" y="273.8684863523573" class="">280</text><title>280</title></g><g class="guides"><path d="M0.000000 248.035980 h706.000000" class="guide line" /><text x="-5" y="251.53598014888337" class="">320</text><title>320</title></g><g class="guides"><path d="M0.000000 225.703474 h706.000000" class="guide line" /><text x="-5" y="229.20347394540946" class="">360</text><title>360</title></g><g class="guides"><path d="M0.000000 203.370968 h706.000000" class="guide line" /><text x="-5" y="206.8709677419355" class="">400</text><title>400</title></g><g class="guides"><path d="M0.000000 181.038462 h706.000000" class="guide line" /><text x="-5" y="184.53846153846155" class="">440</text><title>440</title></g><g class="guides"><path d="M0.000000 158.705955 h706.000000" class="guide line" /><text x="-5" y="162.2059553349876" class="">480</text><title>480</title></g><g class="guides"><path d="M0.000000 136.373449 h706.000000" class="guide line" /><text x="-5" y="139.87344913151367" class="">520</text><title>520</title></g><g class="guides"><path d="M0.000000 114.040943 h706.000000" class="guide line" /><text x="-5" y="117.54094292803973" class="">560</text><title>560</title></g><g class="guides"><path d="M0.000000 91.708437 h706.000000" class="guide line" /><text x="-5" y="95.20843672456579" class="">600</text><title>600</title></g><g class="guides"><path d="M0.000000 69.375931 h706.000000" class="guide line" /><text x="-5" y="72.87593052109185" class="">640</text><title>640</title></g><g class="guides"><path d="M0.000000 47.043424 h706.000000" class="guide line" /><text x="-5" y="50.54342431761785" class="">680</text><title>680</title></g><g class="guides"><path d="M0.000000 24.710918 h706.000000" class="guide line" /><text x="-5" y="28.210918114143908" class="">720</text><title>720</title></g></g><g class="axis x"><path d="M0.000000 0.000000 v414.000000" class="line" /><g class="guides"><path d="M98.432692 0.000000 v414.000000" class="guide line" /><text x="98.43269230769229" y="429.0" class="backwards" transform="rotate(270 98.432692 429.000000)">test_ints</text></g><g class="guides"><path d="M268.144231 0.000000 v414.000000" class="guide line" /><text x="268.1442307692308" y="429.0" class="backwards" transform="rotate(270 268.144231 429.000000)">test_floats</text></g><g class="guides"><path d="M437.855769 0.000000 v414.000000" class="guide line" /><text x="437.8557692307692" y="429.0" class="backwards" transform="rotate(270 437.855769 429.000000)">test_decimals</text></g><g class="guides"><path d="M607.567308 0.000000 v414.000000" class="guide line" /><text x="607.5673076923076" y="429.0" class="backwards" transform="rotate(270 607.567308 429.000000)">test_fractions</text></g></g><g class="series serie-0 color-0"><g class="boxes"><g class="box"><path stroke-width="3" d="M61.096154 405.403042 L135.769231 405.403042" class="reactive tooltip-trigger" /><path stroke-width="3" d="M23.759615 405.222303 L173.105769 405.222303" class="reactive tooltip-trigger" /><path stroke-width="3" d="M61.096154 404.685834 L135.769231 404.685834" class="reactive tooltip-trigger" /><path stroke-width="2" d="M98.432692 405.403042 L98.432692 405.222553" class="reactive tooltip-trigger" /><path stroke-width="2" d="M98.432692 404.685834 L98.432692 405.042313" class="reactive tooltip-trigger" /><rect x="23.759615384615383" y="405.04231327785794" height="0.18023931650481018" width="149.34615384615384" class="subtle-fill reactive tooltip-trigger" /><circle cx="98.4326923076923" cy="405.5790314644541" r="3" class="subtle-fill reactive tooltip-trigger" /><circle cx="98.4326923076923" cy="213.92739141306808" r="3" class="subtle-fill reactive tooltip-trigger" /><desc class="value">Min: 37.8229 |
|
Q1-1.5IQR: 38.1381 |
|
Q1: 38.4614 |
|
Median: 38.4618 |
|
Q3: 38.7842 |
|
Q3+1.5IQR: 39.4227 |
|
Max: 381.0923</desc><desc class="x centered">98.4326923076923</desc><desc class="y centered">405.11520895704354</desc><desc class="x_label" /></g></g></g><g class="series serie-1 color-1"><g class="boxes"><g class="box"><path stroke-width="3" d="M230.807692 399.854183 L305.480769 399.854183" class="reactive tooltip-trigger" /><path stroke-width="3" d="M193.471154 399.854183 L342.817308 399.854183" class="reactive tooltip-trigger" /><path stroke-width="3" d="M230.807692 399.634196 L305.480769 399.634196" class="reactive tooltip-trigger" /><path stroke-width="2" d="M268.144231 399.854183 L268.144231 399.854183" class="reactive tooltip-trigger" /><path stroke-width="2" d="M268.144231 399.634196 L268.144231 399.853871" class="reactive tooltip-trigger" /><rect x="193.4711538461538" y="399.8538708173067" height="0.00031248147797668935" width="149.34615384615384" class="subtle-fill reactive tooltip-trigger" /><circle cx="268.1442307692307" cy="400.5253935135079" r="3" class="subtle-fill reactive tooltip-trigger" /><circle cx="268.1442307692307" cy="263.8509947441911" r="3" class="subtle-fill reactive tooltip-trigger" /><desc class="value">Min: 46.8745 |
|
Q1-1.5IQR: 48.0767 |
|
Q1: 48.0767 |
|
Median: 48.0767 |
|
Q3: 48.0773 |
|
Q3+1.5IQR: 48.4708 |
|
Max: 291.6736</desc><desc class="x centered">268.1442307692307</desc><desc class="y centered">399.8101234103881</desc><desc class="x_label" /></g></g></g><g class="series serie-2 color-2"><g class="boxes"><g class="box"><path stroke-width="3" d="M400.519231 362.959183 L475.192308 362.959183" class="reactive tooltip-trigger" /><path stroke-width="3" d="M363.182692 358.765956 L512.528846 358.765956" class="reactive tooltip-trigger" /><path stroke-width="3" d="M400.519231 354.584429 L475.192308 354.584429" class="reactive tooltip-trigger" /><path stroke-width="2" d="M437.855769 362.959183 L437.855769 359.927437" class="reactive tooltip-trigger" /><path stroke-width="2" d="M437.855769 354.584429 L437.855769 357.833587" class="reactive tooltip-trigger" /><rect x="363.1826923076923" y="357.83358652529216" height="2.0938508891993024" width="149.34615384615384" class="subtle-fill reactive tooltip-trigger" /><circle cx="437.8557692307692" cy="363.1879691499154" r="3" class="subtle-fill reactive tooltip-trigger" /><circle cx="437.8557692307692" cy="205.69905413907236" r="3" class="subtle-fill reactive tooltip-trigger" /><desc class="value">Min: 113.7500 |
|
Q1-1.5IQR: 114.1598 |
|
Q1: 119.5900 |
|
Median: 121.6703 |
|
Q3: 123.3403 |
|
Q3+1.5IQR: 129.1599 |
|
Max: 395.8301</desc><desc class="x centered">437.8557692307692</desc><desc class="y centered">358.81411840530023</desc><desc class="x_label" /></g></g></g><g class="series serie-3 color-3"><g class="boxes"><g class="box"><path stroke-width="3" d="M570.230769 101.227822 L644.903846 101.227822" class="reactive tooltip-trigger" /><path stroke-width="3" d="M532.894231 54.300603 L682.240385 54.300603" class="reactive tooltip-trigger" /><path stroke-width="3" d="M570.230769 7.990848 L644.903846 7.990848" class="reactive tooltip-trigger" /><path stroke-width="2" d="M607.567308 101.227822 L607.567308 77.731714" class="reactive tooltip-trigger" /><path stroke-width="2" d="M607.567308 7.990848 L607.567308 54.300603" class="reactive tooltip-trigger" /><rect x="532.8942307692307" y="54.30060312240647" height="23.431111145625948" width="149.34615384615384" class="subtle-fill reactive tooltip-trigger" /><circle cx="607.5673076923076" cy="124.10646545361942" r="3" class="subtle-fill reactive tooltip-trigger" /><circle cx="607.5673076923076" cy="-27395.717326047183" r="3" class="subtle-fill reactive tooltip-trigger" /><desc class="value">Min: 541.9715 |
|
Q1-1.5IQR: 582.9497 |
|
Q1: 625.0339 |
|
Median: 667.0016 |
|
Q3: 667.0016 |
|
Q3+1.5IQR: 749.9475 |
|
Max: 49833.0337</desc><desc class="x centered">607.5673076923076</desc><desc class="y centered">59.110318031633426</desc><desc class="x_label" /></g></g></g></g><g class="titles"><text x="400.0" y="26" class="title plot_title">Speed in Nanoseconds (ns) of Test Exponential</text><text x="427.0" y="580.0" class="title">Trial</text><text x="0" y="279.0" class="title" transform="rotate(-90 0.000000 253.000000)">Duration</text></g><g transform="translate(74, 46)" class="plot overlay"><g class="series serie-0 color-0" /><g class="series serie-1 color-1" /><g class="series serie-2 color-2" /><g class="series serie-3 color-3" /></g><g transform="translate(74, 46)" class="plot text-overlay"><g class="series serie-0 color-0" /><g class="series serie-1 color-1" /><g class="series serie-2 color-2" /><g class="series serie-3 color-3" /></g><g transform="translate(74, 46)" class="plot tooltip-overlay"><g transform="translate(0 0)" style="opacity: 0" class="tooltip"><rect rx="0" ry="0" width="0" height="0" class="tooltip-box" /><g class="text" /></g></g></g></svg> |