UNPKG

siesta-lite

Version:

Stress-free JavaScript unit testing and functional testing tool, works in NodeJS and browsers

104 lines (95 loc) 3.09 kB
<!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>The source code</title> <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" /> <script type="text/javascript" src="../resources/prettify/prettify.js"></script> <style type="text/css"> .highlight { display: block; background-color: #ddd; } </style> <script type="text/javascript"> function highlight() { document.getElementById(location.hash.replace(/#/, "")).className = "highlight"; } </script> </head> <body onload="prettyPrint(); highlight();"> <pre class="prettyprint lang-js">/* Siesta 5.6.1 Copyright(c) 2009-2022 Bryntum AB https://bryntum.com/contact https://bryntum.com/products/siesta/license */ Ext.define(&#39;Siesta.Project.Browser.UI.CoverageChart&#39;, { extend : &#39;Ext.chart.Chart&#39;, alias : &#39;widget.coveragechart&#39;, requires : [ &#39;Ext.chart.axis.Numeric&#39;, &#39;Ext.chart.axis.Category&#39;, &#39;Ext.chart.series.Bar&#39;, // weirdly this class contains important override for &quot;allowSchedule&quot; method // is not required by any class &#39;Ext.chart.overrides.AbstractChart&#39; ], border : false, margin : &#39;35% 35%&#39;, animate : { easing : &#39;bounceOut&#39;, duration : 600 }, store : { fields : [&#39;name&#39;, &#39;value&#39;] }, axes : [ { type : &#39;numeric&#39;, position : &#39;left&#39;, fields : [&#39;value&#39;], minimum : 0, maximum : 100, label : { renderer : Ext.util.Format.numberRenderer(&#39;0&#39;), fill : &#39;#555&#39; }, grid : { odd : { stroke : &#39;#efefef&#39; }, even : { stroke : &#39;#efefef&#39; } } }, { type : &#39;category&#39;, position : &#39;bottom&#39;, fields : [&#39;name&#39;], label : { fill : &#39;#555&#39; } } ], series : [{ type : &#39;bar&#39;, axis : &#39;left&#39;, xField : &#39;name&#39;, yField : &#39;value&#39;, label : { display : &#39;outside&#39;, &#39;text-anchor&#39; : &#39;middle&#39;, field : &#39;value&#39;, orientation : &#39;horizontal&#39;, fill : &#39;#aaa&#39;, renderer : function (value, label, storeItem, item, i, display, animate, index) { return value + &#39;%&#39;; } }, renderer : function (sprite, storeItem, barAttr, i, store) { barAttr.fill = &#39;rgb(89, 205, 82)&#39;; return barAttr; } }] });</pre> </body> </html>