This demo shows how you can make use of the adjust
RGraph
event
so that when you adjust one bar on the chart the others are updated
with the remainder (so that they all add up to 300).
<script src="RGraph.common.core.js"></script> <script src="RGraph.common.dynamic.js"></script> <script src="RGraph.bar.js"></script>Put this where you want the chart to show up:
<canvas id="cvs" width="800" height="300">[No canvas support]</canvas>This is the code that generates the chart: