score:1
Accepted answer
You can set align: 'right'
attribute for the last label:
chart: {
events: {
render: function() {
var ticks = this.xAxis[0].ticks;
Highcharts.objectEach(ticks, function(tick) {
if (tick.isLast && tick.label.xy.opacity) {
tick.label.attr({
align: 'right'
});
}
});
}
}
}
Live demo: https://jsfiddle.net/BlackLabel/tv5f0x2a/
API Reference: https://api.highcharts.com/class-reference/Highcharts#.objectEach%3CT%3E
score:0
This might be the chart container width being too small, or the chart itself is too small.
You should try:
- have you tried changing chart width? https://api.highcharts.com/highcharts/chart.width
- try making the container for the chart wider
Source: stackoverflow.com
Related Query
- The last label on xaxis disappears partly in Highcharts
- Highcharts - How to hide the last category tick label on xAxis with scrollbar
- Show only first and last xAxis label in Highcharts
- Last label on xaxis disappears when resize
- In Highcharts drilldown charts, Custom Formatting of X-Axis label displays the label with underline even in the last level
- Not able to view the last label in xaxis
- Highcharts AreaRange Chart issues with xAxis and last data point label
- Show only the first and last y-axis label on a graph highcharts
- Set the with of xAxis label to 50% on a Highcharts BarChart
- Highcharts Column type visualization: multiple data points for the same Xaxis label
- HighCharts - show last labels in xAxis
- Show specific series values in the stack label using highcharts
- Show value of last point as label or tooltip on Highcharts Stock Chart
- Panning in Highcharts will not allow to go back to the max of the xAxis
- Highcharts missing first date label on xAxis
- Highcharts - xAxis label for each point
- How to change Highcharts xAxis label color individually?
- Highcharts: How to provide a custom stack label in highcharts bar graph from within the stackLabel formatter?
- Last y-axis label not displaying on highcharts spiderweb
- Highcharts : How to fix labels to the top when xAxis rotation is 90°?
- HighCharts Time-based Quarterly Data - xAxis Label Issue
- Get x-axis label into the first colomn of the table - highcharts
- How to force Highcharts to show last label on xAxis?
- Highcharts Bubble Chart - How to move an individual point's data label (dataLabel) to the front/top
- How to start and end a dynamically generetad datetime highchart's xAxis on the first and last tick
- Why is the first label on highcharts bar chart missing?
- how to display 2 same highcharts without duplicate the code
- Highcharts - Why is there extra spacing before the first column and after the last column?
- Force Highcharts to show last x-axis label
- HighCharts + xAxis label formatter
More Query from same tag
- Loading multiple variables using Highcharts and jquery with php
- Customisation of RangeSelectors in highstock
- HighCharts Angular - data from API not showing in chart
- How to set Highcharts options in Angular 5
- Highstock chart doesn't show correct width in Phonegap app
- rCharts HighCharts X-axs grouping
- Highcharts multiple charts on a single page using c# asp.net mvc3
- Highcharts, how to localize language when exporting
- Highstocks: "columnrange" columns are always evenly spaced. How do I make highstocks show any gaps in the data?
- Highcharts - removing a segment from a pie chart
- (Highcharts) button inside tooltip can't trigger
- Webpack Highcharts Plugin IIFE
- Treemap with Multiple Series
- How to prevent label overlapping? How to write text at a point relative to plotLines?
- problem Highchart Show/Hide data label on hover legend
- Trouble showing results with pie highchart
- how to add percentage sign along with int value in graph in java script
- Highcharts with live data: align chart on left side
- get plotBand on Highcharts to span first column
- highcharts dynamic spline with fluid size issue in table
- HighCharts/HighStocks: Pie graph with Highstock
- Highcharts X-Axis Alignment
- Highcharts - How can I remove starting and ending padding from area chart
- HighChart on Android dynamically update
- Is there any way to merge this two x-axis in one axis?
- highcharts adding point dynamically
- Highcharts strange grouping behaviour
- Add a max width to legend in Highcharts
- Is there an option to update or draw last candle on a chart based on real-time trading?
- Can not access Highcharts chart from container, so I can't change data in a chart dynamically