nehed-amri / dwpe

Automatically exported from code.google.com/p/dwpe
MIT License
0 stars 0 forks source link

Percent data not correctly parsed when { parseDirection: 'y' } #71

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Table with percentage data (e.g. <td>15%</td>, <td>23%</td>)
2. $('table').visualize({parseDirection: 'y'});

What is the expected output? What do you see instead?

My Y axis goes from 0 to 0 rather than in the appropriate range.
The data is parsed properly when parseDirection='x'

The problem is caused by the data is parsed.  In the x-direction, the code uses 
parseFloat($el.text()) but in y-direction it used $el.text*1.

What version of the product are you using? On what operating system?

Latest version on Chrome/Win7.

*** Please use labels below to identify the type of issue and the widget to
which it applies. ***

Char widget

The attached version of visualize.jQuery.js has a fix for the problem.

Original issue reported on code.google.com by nonp...@gmail.com on 23 Sep 2011 at 11:26

Attachments: