Hello, I have a list of the options the user want to represent in  a 
LineChart. He selects the options and the he draw the Chart. 
Representing the data is ok.

And the result is smh like this https://jsfiddle.net/h7k273yb/

My problem is that I can not dynamically  add trendiness .

*I tried with a loop.*

  var options= {
          width:100,
          height:100
};


var temp=" " ;

for (i = 0; i < options.length; i++) { 
  temp+=  i+": { \
         color: 'black',\
         lineWidth: 6,\
    }";

}


options.trendlines=temp;


*Also I tried with setOption*

chart.setOption('trendlines', temp);


None of them worked! Any ideas??

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/d/optout.
  • [visualization-api] dynam... Kostas Poulakidas
    • Re: [visualization-a... 'Sergey Grabkovsky' via Google Visualization API
      • Re: [visualizati... Kostas Poulakidas
        • Re: [visuali... 'Sergey Grabkovsky' via Google Visualization API
          • Re: [vis... Kostas Poulakidas
            • Re:... 'Sergey Grabkovsky' via Google Visualization API
              • ... Kostas Poulakidas
                • ... 'Sergey Grabkovsky' via Google Visualization API
                • ... 'Sergey Grabkovsky' via Google Visualization API
                • ... Kostas Poulakidas
                • ... 'Sergey Grabkovsky' via Google Visualization API

Reply via email to