score:6
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.
Source: stackoverflow.com
Related Query
- Hightcharts Display Date month on X-Axis
- Display JavaScript Date in X axis in hightcharts
- Highchart datetime x-axis : display end of month date instead of first day of month
- High Chart X Axis to display month and year
- Display of plotted point labels not appearing properly on X Range Chart for the first date of month - Highcharts
- Highchar display wrong month in date chart
- Time display at x axis instead of date display in highstock
- how to display the date at X axis and other column at y axis in highcharts
- How to display highchart y axis with constistant data
- Highcharts - best way to handle and display zero (or negative) values in a line chart series with logarithmic Y axis
- Highcharts display series.name on X Axis
- Highcharts - Display only year in x axis and stop auto formatting
- Highcharts x axis date full range even if there is not enough data
- Don't display not present date values
- Display HH:MM on y axis highcharts
- How to get month name from ISO date using moment js
- Display blank space if data is not present for a particular date
- how to display 2 same highcharts without duplicate the code
- not able ot show date in x axis in highcharts
- Format highcharts date tooltip to display timezone
- How to display rounded corners in a highcharts column on a Y Axis that starts above 0
- Highcharts date time axis
- (Highcharts) x axis date format doesn't match to tooltip's date format
- How to display all dates with a given Start Date and End Date even if there is no data?
- Highcharts show days of month dates in X axis (from JSON file). tickInterval: not work?
- How to Display Month and Year in xAxis of Highcharts datetime graph
- How to display last data point value in a tag on Y Axis in line chart of highChartjs
- Adding symbols and annotations to Highchart date axis
- How to make the Y Axis values not start from 0 in highcharts? How to display forcefully display the last category data on X axis in HighCharts ?
- Align date ticks on x axis
More Query from same tag
- how to add an color picker control to highchart for changing the color of series by user
- Display threshold line even if threshold value is higher than max y-axis value in HighStock
- Creating a 1D chart using Highcharts
- Highcharts blank chart with x and y axis
- Click event on highcharts chrosshair
- how to set visibility of div in controller (SAP UI5)
- How to set minutes as units in Highstock chart using data from CSV
- How to change the chart title dynamically on tooltip hover in the points Highcharts.. React JS
- HighChart: add data series dynamically with dynamically added categories on yAxis
- Highcharts: line graph with many datapoints
- Keeping the x axis interval fixed highstock
- Custom data label for a single point in OHLC candlestick in Highcharts
- Highstocks: Disable the Vertical line while hovering on legend or chart
- Add additional data to a Highcharts series for use in formatters
- Use FusionCharts in sandbox solution
- Highchart - Connect nulls only when value is null
- Intermittent Highcharts heatmap issue when using EO.PDF
- highcharts v3.0Beta bubblechart not rendering. Possible bug?
- Typescript: Highcharts not accepting series unless it is individually added
- Click event in drilldown chart - Highcharts
- HighCharts Funnel - Set minimum size of each section
- Declare min and max values from a CSV
- Highcharts dynamic data from an Api
- In polar chart, connect each series on base with an individual line
- Cannot find /js/highcharts.js in GWT project
- How to send other variables in x-axis of ReactHighCharts?
- How to apply highchart's license
- javascript display multiple Highcharts using single function
- Using modified JS version in Highcharts to bring back the pre-3.0 export buttons
- JSON for high chart imported with json.load generated error when using json.dump