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
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:
Opinions expressed by DZone contributors are their own.