+1  A: 

Are your values really totals per day? It looks like it's the total per order, with the date of the order.

The problem with your first graph is that you're not bucketing your values to totals per day - Open Flash Chart won't do this for you. You could do this as part of your SQL query (eg use DATE() to convert the datetimes to dates), or with PHP by parsing and reformatting the dates, and adding together values for the same day. Note that depending on how you handle the x-axis you might also need to add 0 entries for days without any orders.

The problem with your second graph is that you're setting one element per second, but your data should be per day. The important thing here is to understand the difference between line charts and scatter charts in Open Flash Chart. Line charts are plotted using a one-dimensional array of data points, whereas scatter charts are plotted with co-ordinates.

therefromhere
@therefromhere, you are correct. The Total amount is Per Order, but per day. Sorry about that.So what value should i replace $labels->set_steps(86400) with. I want to display Order Per Day in the chart, for a given Month. What changes do i have to make to the code for the 2nd Graph.
Ibn Saeed
Once you've got an array of per-day totals, don't set the range and step, instead just pass in the array of 31 date string as your x-labels.
therefromhere