SVG Bipolar updated to support uneven data
Written by Richard Heyes, RGraph author, on 1st April 2022The SVG bipolar chart now supports uneven data - ie you can mix grouped/regular data in the same dataset and it won't break.
This isn't an April Fools joke I promise (!) - the svg
Bipolar chart has been updated to support uneven data.
What does this mean? Well just take a look at the example
shown here - you can now mix regular and grouped/stacked sets
of bars on the same chart and it won't explode! Which is nice.
<script>
new RGraph.SVG.Bipolar({
id: 'chart-container',
left: [[4,5,1],8,6,[4,8,8],[5,1,2,3],1,[8,6]],
right: [9,[5,4,3,5],[4,2],4,1,[8,8,4,3],[4,5]],
options: {
tooltips: 'Value: %{value}',
yaxisLabels: ['Monday','Tuesday','Wednesday','Thursday','Friday','Saturday','Sunday'],
textSize: 16,
textBold: true
}
}).draw();
</script>