DmitryBaranovskiy / g.raphael

Charts for Raphaël
http://g.raphaeljs.com/
1.51k stars 435 forks source link

linechart draws outside of graph area #109

Open aCaB opened 13 years ago

aCaB commented 13 years ago

Under certain circumnstances, line drawing goes far beyond the edge of the axis. This is the simplest test case i could produce:

<div id="graph"></div>
<script type="text/javascript">
    var r = Raphael('graph', 650, 250);
    var lchart = r.g.linechart(30, 10, 500, 220, [8, 22], [[0, 1]], {axis: "0 0 1 1", symbol: "o"});
</script>
aCaB commented 13 years ago

This is the result produced by the above code: http://img687.imageshack.us/img687/9544/graph1or.png

This is the same with shading turned on: http://img842.imageshack.us/img842/3984/graph2u.png