javascript - series declared dynamically Highcharts -


good evening, made chart visible in http://jsfiddle.net/6u7fw/1/. turns out, have defined variable "data" array, since not know numbers (in graph three, more).

you can declare variable "series" in dynamic way, code possible enter data ("data") , not static?

series: [{     name: name,     data: data[2] }, {     name: name,     data: data[1] }, {     name: "",     data: data[0] }] 

thank in advance dave

let me explain:

you can like:

series: function() { (i=0; <data.length; i++) { return { name: "", data: data[i]} } } 

Comments

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -