Home Forums Chart Support PHP Charts & Graphs with Multiple Axes Reply To: PHP Charts & Graphs with Multiple Axes

#28761

@ShashiRanjan,

datapoint1 is entered directly into this gallery. data is not fixed in my project, there is an input field, if you change the input, another graph is drawn.
So I need a dynamic array so that different datapoint is created each time.
i wrote a dynamic array but when i put that in javascript cod, plot is not drawn.

my dynamic Array:
$dataPoints1 = array();

$n=33;
$m=34;
while($m<$max){

//for ($x=0; $x<$max; $x++) {
$dataPoints1[] = array(“x”=> $pieces[$n], “y”=> $pieces[$m]);
// }

$n=$n+11;
$m=$m+11;

}