tecsolucion

help me with  render UniqueValueRenderer

Discussion created by tecsolucion on Jul 4, 2013
Latest reply on Jul 5, 2013 by evtguy
I have a code to generate dynamic render but does not work, and probe many things and do not see anything.


this work

renderer.addValue(1,simbolo1);
                renderer.addValue(2,simbolo1);
                renderer.addValue(3,simbolo0);



this no work


           
var array = new Array();

            array[1] = 'simbolo1';
            array[2] = 'simbolo2';
            array[3] = 'simbolo0';
      



            for (var indice in array) {


               renderer.addValue(parseFloat(indice), array[indice]);




            }





Can anyone help



Thanks

Outcomes