Skip to content
/ plib Public

A graphical presentation library for sensor datra etc. using HTML5 canvas

Notifications You must be signed in to change notification settings

paragi/plib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#A graphical presentation of numbers - easy to view at a glance. Primarily for sensor readings.

Contributor wanted

Please do not hesitate to add your contribution of any kind to this project

###Features:

  • Using only Javascript and HTML5 (No image files)
  • Gauges, bars and graphs
  • Mostly vectored graphics
  • Easy to implement and customise
  • Lots of predefined color gradients
  • No dependencies
  • All is done with just one simple funtion call

The aim of the project is to present numbers, without irrelevant information and in a manner that can be viewed with a glance.

Overview

#####Easy to use: 1 - Define a canvas tags, with the proper dimensions and an ID in you HTML:

<canvas id="gauge1" width="200" height="200" ></canvas>

2 - make a Javascript call to the present library function; use the ID, a value and some presentation options to style it:

present("gauge1",10,"gauge");

3 - When the value changes, call the present function again with the new value, but without styling options:

present("gauge1",12.5);

You can have as many unique presentations on a page, as you like.

Option tester

Use the option tester page to fine tune your styling options and cut/paste it to your code. (The generator is just a single html page, requiring the library)

About

A graphical presentation library for sensor datra etc. using HTML5 canvas

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published