Skip to content

Help on adding the data to datasets #959

Closed
mahesh1532 opened this Issue Feb 13, 2013 · 1 comment

2 participants

@mahesh1532

I have created the 3 different arrays from different sql tables. Now if i want to plot them same as "Turning series ON/OFF" example. The data can be availble in array/string for each data. can you help me to assign these data into dataset in php and plot them in graph.

The data is as :

$data1 = array([1341354816000, 1], [ 1341358185000, 2] , [ 1341361620000, 3] , [ 1341538421000, 4] , [ 1341621724000, 5] , [ 1341868470000, 6] , [ 1342133445000, 7] , [ 1342645937000, 8] , [ 1342651985000, 9] , [ 1342744374000, 10] , [ 1343151552000, 11] , [ 1343285910000, 12] , [ 1343286178000, 13] , [ 1343288137000, 14] , [ 1343307010000, 15] , [ 1343307401000, 16] , [ 1343625187000, 17] , [ 1343648616000, 18] , [ 1343649176000, 19] , [ 1343649567000, 20] , [ 1343649898000, 21] , [ 1343867245000, 22] , [ 1343938551000, 23] , [ 1343938916000, 24] , [ 1343939382000, 25] , [ 1344041570000, 26] , [ 1344051059000, 27] , [ 1344235565000, 28] , [ 1344236000000, 29] , [ 1344248074000, 30] );

$data2 = array([1341354816000, 1], [ 1341358185000, 2] , [ 1341361620000, 3] , [ 1342133445000, 4] , [ 1342645937000, 5] , [ 1342651985000, 6] , [ 1342744374000, 7] , [ 1343286178000, 8] , [ 1343288137000, 9] , [ 1343307010000, 10] , [ 1343307401000, 11] , [ 1343625187000, 12] , [ 1343867245000, 13] , [ 1343938551000, 14] , [ 1343938916000, 15] , [ 1343939382000, 16] , [ 1344041570000, 17] , [ 1344051059000, 18] , [ 1344248074000, 19] , [ 1344322547000, 20] , [ 1344330089000, 21] , [ 1344360922000, 22] , [ 1344405113000, 23] , [ 1344445006000, 24] , [ 1344447855000, 25] , [ 1344479054000, 26] );

$data3 = array([1341354816000, 1], [ 1341358185000, 2] , [ 1341361620000, 3] , [ 1341538421000, 4] , [ 1341621724000, 5] , [ 1342133445000, 6] , [ 1342645937000, 7] , [ 1342651985000, 8] , [ 1342744374000, 9] , [ 1343286178000, 10] , [ 1343288137000, 11] , [ 1343307010000, 12] , [ 1343307401000, 13] , [ 1343625187000, 14] , [ 1343867245000, 15] , [ 1343938551000, 16] , [ 1343938916000, 17] , [ 1343939382000, 18] );
@dnschnur dnschnur was assigned Feb 13, 2013
@dnschnur
Flot member

This is a question for the forums; the issue tracker is for confirmed bugs and enhancements only.

@dnschnur dnschnur closed this Feb 13, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.