On Nov 5, 2008, at 5:59 AM, moscorp wrote:


gchart can't recognize series data in barVert...

can't work in
var valueArray = $('#mpngicnt').text(); //80,30,50
series: [ $.gchart.series([ valueArray ], 'red')],

but it works in
series: [ $.gchart.series([ 80,30,50 ], 'red')],

how can i solve it !

`$('selector').text()` returns a string. From what I read in your working code, you need to pass an array.

var valueArray = $.trim($('#mpngicnt').text()).split(','); // [ 80, 30, 50 ]
    // I assume there is some code in the middle
    series: [ $.gchart.series(valueArray, 'red')]

Now, back to jQuery related posts.
--
Choan

Reply via email to