Skip to content

eduardoroliveira/Chartjs-tsgauge

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

TSGauge

Extension for Chart.js that allows you to draw "Speedometer" graphs.

Compatibility

Requires Chart.js 2.7.0 or later.

Install

<script src="Gauge.js"></script>

Example:

var ctx = document.getElementById("canvas").getContext("2d");
new Chart(ctx, {
	type: "tsgauge",
	data: {
		datasets: [{
			backgroundColor: ["#0fdc63", "#fd9704", "#ff7143"],
			borderWidth: 0,
			gaugeData: {
				value: 7777,
				valueColor: "#ff7143"
			},
			gaugeLimits: [0, 3000, 7000, 10000]
		}]
	},
	options: {
		events: []
	}
});

About

Gauge extension for Chart.js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%