score:6

Accepted answer

why not make the xaxis datetime and pass in your daily values then set the xaxis min to 7 days back from your last point?

here is an example of what to do: jsfiddle

most important link for highcharts: reference

since we do not know how you are pulling in the data and sending to highcharts the rest is up to you. the main thing is to read the reference documentation. highcharts is crazy powerful and highly customizable. also, if you have a time-based data set please make sure the data you pass in is in chronological order. while it will not fail to render your jumbled values it will look odd and cause mass hysteria.

score:2

var x = new array();

for(i=0;i<30; $i++)
       {
         x[i]="june "+x[i];
       }

/* chart object */

chart = new highcharts.chart({
        chart: { },
        .
        .
        xaxis: {
           categories: x
        }
});

before you define x axis array, then to use call highchart chart function.


Related Query

More Query from same tag