UNPKG

jqwidgets-framework

Version:

jQWidgets is an advanced Angular, Vue, Blazor, React, Web Components, jquery, ASP .NET MVC, Custom Elements and HTML5 UI framework.

48 lines (45 loc) 2.69 kB
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title id="Description">This demo showcases the negative values support of jqxBulletChart. </title> <meta name="keywords" content="bullet chart, bullet graph, BulletChart, chart, jQuery bullet graph, jQuery bullet chart, jQWidgets, jqxBulletChart, negative, negative value, target, value" /> <meta name="description" content="This demo showcases the negative values support of jqxBulletChart." /> <link rel="stylesheet" href="../../../jqwidgets/styles/jqx.base.css" type="text/css" /> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta name="viewport" content="width=device-width, initial-scale=1 maximum-scale=1 minimum-scale=1" /> <script type="text/javascript" src="../../../scripts/jquery-1.12.4.min.js"></script> <script type="text/javascript" src="../../../jqwidgets/jqxcore.js"></script> <script type="text/javascript" src="../../../jqwidgets/jqxdata.js"></script> <script type="text/javascript" src="../../../jqwidgets/jqxtooltip.js"></script> <script type="text/javascript" src="../../../jqwidgets/jqxbulletchart.js"></script> <script type="text/javascript" src="../../../scripts/demos.js"></script> <script type="text/javascript"> $(document).ready(function () { $("#bulletChart").jqxBulletChart({ width: getWidth('bulletChart'), height: 80, barSize: "40%", title: "Profit", description: "(1000s)", ranges: [ { startValue: -50, endValue: 150, color: "#000000", opacity: 0.5 }, { startValue: 150, endValue: 200, color: "#000000", opacity: 0.3 }, { startValue: 200, endValue: 250, color: "#000000", opacity: 0.1 } ], pointer: { value: -20, label: "Profit", size: "25%", color: "Black" }, target: { value: 200, label: "Target profit", size: 4, color: "Black" }, ticks: { position: "far", interval: 50, size: 10 }, showTooltip: true }); }); </script> </head> <body> <div id="bulletChart"> </div> <div style="position: absolute; bottom: 5px; right: 5px;"> <a href="https://www.jqwidgets.com/" alt="https://www.jqwidgets.com/"><img alt="https://www.jqwidgets.com/" title="https://www.jqwidgets.com/" src="https://www.jqwidgets.com/wp-content/design/i/logo-jqwidgets.png"/></a> </div> </body> </html>