Radial Gauge

Linear Gauge

Bullet Graph

Segmented Display

Click on the button to see me

This sample demonstrates how to get DataViz SegmentedDisplay image data URL.
The DataViz SegmentedDisplay can export its image to a data URL (e.g., data:image/png;base64,iVBORw0KGg...). This data may then be rendered in the browser, which could then be saved.

For detailed implementation, please take a look at the HTML code tab.
<!DOCTYPE html>
	Export To Image Example - HTML5 jQuery Segmented Display JavaScript Plugin
	<link rel="stylesheet" type="text/css" href="../../css/dataviz.gauges.css" />
	<script src="../../js/dataviz.gauges.min.js" type="text/javascript"></script>
	<script lang="javascript" type="text/javascript">
		var segmentedDisplay = new DataViz.SegmentedDisplay({
			background: '#DCDCDC',
			border: {
				padding: 10,
				lineWidth: 4,
				strokeStyle: '#76786A'
			digits: 10,
			segmentMode: 'sevenSegment',
			text: '0123456789',
			textForeground: '#333333',
			textForegroundUnlit: 'rgba(201, 201, 201, 0.5)'

		function exportToImage() {

			var config = {
				fileName: 'SegmentedDisplay.png',
				type: 'image/png' // 'image/png' or 'image/jpeg'


		<div id="container" style="width: 500px; height: 100px;">
		<br />
		<input id="button" onclick="exportToImage()" type="button" value="Export to Image" />