delezue / flot-android-chart

Automatically exported from code.google.com/p/flot-android-chart
0 stars 0 forks source link

not getting anything on x axis #18

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
i did every thing and understand clearly and drew the graph successfully.but 
the problem is tht i m not getting anything on the x axis while it is expected 
to draw the 2 aug ,3 aug,4 aug ......8 aug.
i have checked everywhere and not getting these points and if i specify min and 
max options like below, nothing is displayed

here is my code to draw the plot graph

function GotGraph(data) {   
     gdata = data;
     var lastWeek = new Date();
    lastWeek.setDate(lastWeek.getDate());   
    $.plot($("#graphHolder"), gdata, { xaxis: { mode: "time",min:             (lastWeek).getTime(),max: (new Date()).getTime()}     
    });           
}

here gdata is having series like [date ,data]

date is in long like date:1320545415454000
and data is like     data: 10 or 2o or 30 etc.

i m attaching the javascript page where i have written every thing and the java 
code from which i m accessing tht js file.

Original issue reported on code.google.com by yourans...@gmail.com on 8 Aug 2011 at 1:53

Attachments: