score:1
Accepted answer
Ahh I used tickPositioner and solved it!
xAxis: {
type: 'Linear',
tickmarkPlacement: 'on',
tickPositioner: function() {
var positions = [],
ext = this.getExtremes(),
xMax = Math.round(ext.max),
xMin = Math.round(ext.min);
for (var i = xMin; i < xMax; i++) {
if (i % <?php echo number_format($num_results/3,0);?> == 0) {
positions.push(i);
}
}
positions.push(xMax);
return positions;
},
labels: {
autoRotation: 0,
},
categories: ["2017-07","2017-08","2017-09","2017-10","2017-11","2017-12","2018-01","2018-02","2018-03","2018-04","2018-05","2018-06","2018-07","2018-08","2018-09","2018-10","2018-11","2018-12","2019-01","2019-02","2019-03","2019-04","2019-05","2019-06"]
}
score:0
You are missing 2 categories to show 2019-06
...
categories: ["2017-07","2017-08","2017-09","2017-10","2017-11",
"2017-12","2018-01","2018-02","2018-03","2018-04",
"2018-05","2018-06","2018-07","2018-08","2018-09",
"2018-10","2018-11","2018-12","2019-01","2019-02",
"2019-03","2019-04","2019-05","2019-06","24th","the 25th"]
},
Source: stackoverflow.com
Related Query
- How to show first and last label of x axis Highcharts
- Show only first and last xAxis label in Highcharts
- How to rotate first and last x-axis label in Highcharts chart?
- Show only the first and last y-axis label on a graph 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 force Highcharts to show last label on xAxis?
- Why does this Highcharts graph only show tooltip for the first and last nodes?
- how to show column and area charts with different y axis with same category and same x axis in highcharts
- How to show only the last 100 candlesticks or hide the first 50 candlesticks in Highcharts Stock Chart?
- How to show first and last date ticks in the navigator - Highcharts?
- How can I show last 10 indexes in Highcharts Timeline and left using scroll?
- Highcharts : Venn Diagram how to show total and union numbers?
- How to add space between chart and axis in highcharts
- How to change axis label size when exporting in Highcharts / Highstock
- Highcharts axis label before first point
- How to set dataLabel Format and axis label angle in R highcharter package
- Show value of last point as label or tooltip on Highcharts Stock Chart
- How can I force highcharts to show every x-axis label regardless of spacing constraints?
- How to show only specific x-axis values on datetime axis in Highcharts
- how to pass values to tooltip which not in x and y axis in highcharts
- Highcharts show plot value on x axis label
- How to start and end a dynamically generetad datetime highchart's xAxis on the first and last tick
- How can I hide and show a category in highcharts
- How do you show grid lines for both x axis and y axis in highchart?
- How To Show All Data Labels For Datetime Axis In Highcharts
- How to position axis label in highcharts
- Highcharts - how to create multiple y axis and group the data series
- Highcharts - Why is there extra spacing before the first column and after the last column?
- Force Highcharts to show last x-axis label
- 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 ?
More Query from same tag
- Highchart Min Max for y-axis per series
- Conditional coloring of marker in box plot in highcharts
- Multiple highstock charts on one page
- Fixed padding in callout box of timeline chart
- Highcharts - Exporting options for print to match export to png
- Chartkick Datepicker/Range Selector - Possibility to choose dates to show data
- Gauge graph with gradient green-yellow-red
- Highcharts X-Axis time from JS date
- Highcharts line chart won't display line chart in IE
- Does highcharts support displaying groups of columns at different x values?
- Simple bar chart in jQuery HighCharts and MVC 2 application?
- Bind dynamic Json data in pie chart
- How can I make React Native in Android aware of a click event in a tooltip in a Highcharts chart?
- Turning HighChart into a stacked Bar Graph with Title
- How to define format for Drilldown Pie Charts in Highcharts
- Highcharts simple column chart: data not showing
- Javascript error: permission denied Highcharts IE8 jQuery AJAX
- Multiple xAxis line on Highcharts
- Highcharts : Plotting Data versus Date
- Synchronize two highstock charts, same rangeSelector across two tabs
- Start x axis at minimum value
- Highstock - Minimal Zoom
- Highcharts as an Out-of-the-Office calendar
- Best (easy) way to fill highcharts with data from database?
- Why doesn't HighCharts render when I pull it in with Ajax?
- Javascript Highcharts v3.0.5 - How to hide Y Axis Title when using multiple Y Axis
- JS: how do I concatenate a variable into a API call with the dot syntax?
- Highstock flags onSeries
- Highchart - ThingSpeak - IoT - issues with graphs (axes)
- Needing to convert JSON Object to JSON Array for Highcharts