Horizontal Progress bar API reference
The SVG Horizontal Bar chart can be customised to appear like a Horizontal Progress bar. This means that all of the Horizontal Bar chart properties are available to you.
The Horizontal Bar chart can be customised to appear as a Horizontal Progress bar. This means that all of the properties of the Horizontal Bar chart, such as tooltips, can be used as well. There's a demo in the download archive.
Example
See all of the 1200+ demos in the download archive.
<script>
new RGraph.SVG.HBar({
id: 'chart-container',
data: [10],
options: {
colors: ['#eee'],
marginLeft: 15,
marginRight: 15,
backgroundGrid: false,
colorsStroke: '#ccc',
marginInner: 10,
xaxisScale: false,
linewidth: .5
}
}).draw();
new RGraph.SVG.HBar({
id: 'chart-container',
data: [7],
options: {
xaxisScaleMax: 10,
title: 'Results of the weekends competition',
titleColor: '#666',
colorsSequential: true,
backgroundGrid: false,
tooltips: ['Monday was an average day'],
tooltipsCss: {
backgroundColor: '#333',
fontWeight: 'bold',
fontSize: '14pt',
opacity: 0.85
},
marginLeft: 15,
marginRight: 15,
marginInner: 15,
xaxisScaleUnitsPost: '%'
}
}).grow();
</script>
See also