pkdevbox / milkchart

Automatically exported from code.google.com/p/milkchart
0 stars 0 forks source link

Error when column values are too large and chart not drawn #9

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Paste code given in Column example 
2.Put in large values such as 104640, 92106 and 107988 within an HTML table 
containing three columns and one row
3.Error given in firebug: 

An invalid or illegal string was specified" code: "12
[Break on this error] this.ctx.fillRect(rowO...in.y-colHeight, colWidth, 
colHeight); 

What is the expected output? What do you see instead?
Instead of chart, I only see the axis drawn.

What version of the product are you using? On what operating system?
Here is the HTML code:
<table id ="chart" border = "1">
<thead><tr><th>Current Total Cost</th><th>Product A</th><th>Product 
B</th></tr></thead>
<tbody><tr><td>104640</td><td>92106</td><td>107988</td></tr></tbody>
<tfoot><td>Current Total Cost</td><td>Product A</td><td>Product B</td></tfoot>

Javascript:
    window.addEvent('domready', function() {
    var chart = new MilkChart.Column("chart");
    })

Please provide any additional information below.

Original issue reported on code.google.com by milindon...@gmail.com on 30 Jun 2010 at 7:57

GoogleCodeExporter commented 9 years ago
I noticed the same issue

Original comment by javinie...@gmail.com on 29 May 2011 at 10:22

GoogleCodeExporter commented 9 years ago
https://github.com/theiviaxx/MilkChart/issues/5

Original comment by theivi...@gmail.com on 12 Jun 2011 at 7:43