score:0
Accepted answer
You need to use setExtremes
method on xAxis
, for example:
chart.xAxis[0].setExtremes(
Date.UTC(2014, 8, 18),
Date.UTC(2014, 12, 18)
);
Live demo: https://jsfiddle.net/BlackLabel/qaphk3jd/
API Reference: https://api.highcharts.com/class-reference/Highcharts.Axis#setExtremes
Source: stackoverflow.com
Related Query
- How to display all dates with a given Start Date and End Date even if there is no data?
- Populate Highcharts X-Axis With Dates Given a From And To Date
- how to assign date time to highchart with intervals and date start
- High chart - Column Range Chart with Time range. How to get tooltip as Start and End time
- how to show if no result given date range and 0 result with django annotate?
- Display start and end date range in timeseries LineChart using HighCharts
- HIGHCHARTS - Given a series with UNIX stamps and values pairs for the data, how do I show only the date for the first and last point on xAxis?
- How to start and end a dynamically generetad datetime highchart's xAxis on the first and last tick
- Highcharts - How to populate date with Mysql and PHP?
- Highcharts show the same yAxis start and end value with multiple data series
- How do I display multiple charts automatically with PHP and MYSQL?
- highcharts with scrollbar, how to display all items on download image?
- How to display only last point on highcharts and that point should travel with chart line?
- how to sum up all values with same keys in an object inside an array and get their average
- How to display maximum and minimum value on the basis of date selected in High Charts?
- How I can Add Start and end point in stacked bar chart in chart js?
- Highcharts, datetime, xAxis label. How to show all dates on x axis, not only even dates?
- highstock selected rangeSelector is computed from the current end date in the slider and not from the start date
- how to get array or start index and end index after zoom on highchart
- How to properly deal with date objects in JSON and HighCharts?
- Create Line in Highcharts with start and end point
- How to show tickPositions as start and end for each bar in highcharts?
- How to make Column type series Secondary yAxis values dynamic and not always start with 0?
- Highcharts - how to display a chart with stacked and un-stacked columns side-by-side
- How to display Day and Date in Highcharts Column Graph using PHP
- how can I use rangeselector and navigation in highcharts in the given code
- Highstock charts | How do I store a series start and end value in variables?
- In highcharts, how do I get all categories showing with multiple series and xAxis type set to category?
- Highcharts: How to pass the color parameter with data and dates to the bar chart?
- how to display the date at X axis and other column at y axis in highcharts
More Query from same tag
- Firebase data not plotting in HighCharts
- Highcharts on Modal Element being Clipped
- how to change highstock date to persian date
- highcharts - need to auto scroll on x-axis on every 5 seconds with hide scroll bar
- JavaScript charting library to handle shading area between two lines
- Highstock/highcharts - yAxis title width
- Highcharts: How do I add data from a dict to a series
- JavaScript code inside TypeScript file .ts not working
- React: How to plot API response in highchart
- Click a point on a highcharts graph from outside of the chart
- Replace highcharts with images for report?
- How to set border for a highcharts pie?
- Toggle flags on/off with a button in highcharts/highstock
- Is any possible to custom split tooltip position?
- Chrome won't display the x-axis labels in Highcharts, Safari and Firefox do it
- Highcharts tooltip shadow angle
- How to use a 'plotWidth' calculation to position a highcharts pie
- How can I display my high-chart correctly and import data?
- Drawing a dynamic Mixed Bar and Line chart with HIghchart.js with socket.io for live data
- Sankey Diagram highchart Issue
- vue2-highcharts - Cannot redraw chart to position pies
- Update Tooltip onclick using customButton Highcharts
- How to show values in Highcharts tooltip other than x and y when data points are too high?
- Highchart stockChart Installation in Web Component
- Highchart columnrange, color code lines based on data
- JSF+HighCharts Integration Issue
- Highcharts conditional data labels
- Highcharts.js: Group some series but not others in bar chart
- Highcharts - hidden axis affects performance on redraw
- Highcharts area graph animation on setData