UNPKG

jqwidgets-framework

Version:

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

25 lines 1.08 kB
/// <reference path="../../../jqwidgets-ts/jqwidgets.d.ts" /> function createBulletChart(selector) { // initialization options - validated in typescript // jqwidgets.BulletChartOptions has generated TS definition var options = { width: 500, height: 80, barSize: "40%", title: "Revenue 2014 YTD", description: "(U.S. $ in thousands)", ranges: [ { startValue: 0, endValue: 200, opacity: 0.5 }, { startValue: 200, endValue: 250, opacity: 0.3 }, { startValue: 250, endValue: 300, opacity: 0.1 } ], pointer: { value: 270, label: "Revenue 2014 YTD", size: 8, color: "Black" }, target: { value: 260, label: "Revenue 2013 YTD", size: 4, color: "Black" }, ticks: { position: "both", interval: 50, size: 10 }, labelsFormat: "c", showTooltip: true }; // creates an instance var myBulletChart = jqwidgets.createInstance(selector, 'jqxBulletChart', options); } //# sourceMappingURL=typescript-bulletchart.js.map