html/scripts/RGraph/RGraph.bar.js
function myOnresizebeforedraw (obj)
            {
                var gutterLeft = obj.Get('chart.gutter.left');
                var gutterRight = obj.Get('chart.gutter.right');
            
                obj.Set('chart.hmargin', (obj.canvas.width - gutterLeft - gutterRight) / (obj.original_data[0].length * 2));
            }
function myOnresizebeforedraw (obj)
            {
                var gutterLeft = obj.Get('chart.gutter.left');
                var gutterRight = obj.Get('chart.gutter.right');
            
                obj.Set('chart.hmargin', (obj.canvas.width - gutterLeft - gutterRight) / (obj.original_data[0].length * 2));
            }
function myOnresizebeforedraw ( obj ) { var gutterLeft = obj . Get ( 'chart.gutter.left' ) ; var gutterRight = obj . Get ( 'chart.gutter.right' ) ; obj . Set ( 'chart.hmargin' , ( obj . canvas . width - gutterLeft - gutterRight ) / ( obj . original_data [ 0 ] . length * 2 ) ) ; }
This recalculates the Line chart hmargin when the chart is resized
This recalculates the Line chart hmargin when the chart is resized