Yeah, it work it, now i'm having trouble with columns :s
It dont remove proper, something is wrong
Sexta-feira, 23 de Novembro de 2012 15:51:02 UTC, Pedro Guimarães escreveu:
>
> ***Code below: Working well.***
>
> (...)
> var check_box_values = $('#myForm
> [type="checkbox"]:not(:checked)').map(function ()
> {
> return this.value;
> }).get();
>
> *
> **Code below: Working well.***
>
> function f(check_box_values)
> {
> (...)
> var obj = jQuery.parseJSON(jsonData);
> var data = google.visualization.arrayToDataTable(obj);
>
> *
> **Code below: for cycle goes fine but if statement never starts***
>
> for (var i = 1; i < data.getNumberOfColumns()-1; i++) {
>> {
>> if ($.inArray(i, check_box_values) > -1)
>> {
>> data.removeColumn(i);
>> }
>> }
>> }
>>
>
> ***Html code: Working well.***
>
> What am I doing wrong?
> note: the check_box_values array is populated.
>
> ***edit: (eg.)***
> `getNumberOfColumns: 6`
> check_box_values array: [1,3,5]
>
--
You received this message because you are subscribed to the Google Groups
"Google Visualization API" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-visualization-api/-/CZSqJ6Lu9NcJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-visualization-api?hl=en.