HTML5 gauges running on TypeScript – review online demo and get the sample.
Join the DZone community and get the full member experience.
Join For Free
TypeScript is a new and evolving object oriented programming language developed and maintained by Microsoft. This language is compiled to common JavaScript. It supports and implies static typing which allows determining of the compatibility errors on the compilation stage. TypeScript is compatible with common JavaScript and this makes it possible to use common JavaScript libraries such as Perfect Widgets offering JavaScript gauges and other data visualization controls.
The only trick is that it’s necessary to connect to .d.ts definition files for compatibility validation. Availability of the .d.ts file provides the ability to display IntelliSense tooltips for classes of the used library.
This simple Perfect Widgets TypeScript demo shows how to connect your data visualization project to the .d.ts file in order to use Perpetuum gauges as well as how to use Perfect Widgets library with TypeScript: how to add a gauge to the page and how to interact with it from code.
Online demo is available here:
http://perfectwidgets.com/Content/Samples/TypeScript/TypeScript.html
Opinions expressed by DZone contributors are their own.
Comments