O'Reilly logo

Mastering Internet of Things by Peter Waher

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Plotting graphs

No sensor application is complete without plotting graphs. We can do this directly from the web interface hosted on the sensor itself. We have already defined a web page for it: /History.md. We first need to add the Waher.Script.Graphs NuGet package to the project. It adds graph plotting functions to our scripting engine. It uses the cross-platform SkiaSharp two-dimensional drawing package to do the actual drawing. We must just make sure to add the corresponding assemblies of Waher.Script and Waher.Script.Graphs to the types inventory when we initialize the application.

For a list of script syntax supported, including some extension libraries, see http://waher.se/Script.md.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required