score:10
Accepted answer
You just need to add a simple data formatter to have the datalables to be displayed only on the last datapoint.
plotOptions: {
series: {
dataLabels: {
enabled: true,
formatter: function(){
var isLast = false;
if(this.point.x === this.series.data[this.series.data.length -1].x && this.point.y === this.series.data[this.series.data.length -1].y) isLast = true;
return isLast ? this.y : '';
}
}
}
},
Source: stackoverflow.com
Related Query
- Show value of last point as label or tooltip on Highcharts Stock Chart
- Highcharts AreaRange Chart issues with xAxis and last data point label
- Highcharts Pie Chart ignores percentageDecimals tooltip setting and has floating point inaccuracy issue
- Highcharts - only show tooltip when hovering directly on point
- create a sticky tooltip for a point or a permanent label using HighCharts
- Show HighCharts tooltip when chart loads
- HighCharts - Show tooltip on column where value is 0 or null
- Show only first and last xAxis label in Highcharts
- How to force Highcharts to show last label on xAxis?
- Highcharts show plot value on x axis label
- Highcharts stock chart - Technical Indicators - Stock price is missing in the tooltip when selecting the 'All' range
- HighCharts - Show categories in x axis intead of the value of x in Bubble Chart
- HighCharts Stock Chart error code 18
- Highcharts - how to set custom content in point tooltip (popup) on 3D scatter chart or how to customize point tooltip information?
- Force Highcharts to show last x-axis label
- Why does this Highcharts graph only show tooltip for the first and last nodes?
- Show Indicator at last point on Highchart spline chart
- How to display last data point value in a tag on Y Axis in line chart of highChartjs
- How to show xAxis label in tooltip in a Highcharts area chart?
- Highcharts display label for pie chart using html table as data source
- Highcharts - Bar chart show full label on Y Axis
- HighCharts show selected point from chart on Pie Chart
- How to show other point property in bubble highcharts using tooltip
- Highcharts - Show a string category label in the tooltip for a line graph
- Highcharts - Highstock chart showing double line on hovering data points to show tooltip
- How to display only last point on highcharts and that point should travel with chart line?
- Bold X-Axis Label on Point Hover in Highcharts Column Chart
- show tooltip for each point of highcharts network graph in Angular
- Show Highcharts tooltip at the bottom of the chart in responsive mobile version
- How to show only the last 100 candlesticks or hide the first 50 candlesticks in Highcharts Stock Chart?
More Query from same tag
- Highchart range selector doesn't show up
- Highcharts - Disable the legend of secondary y axis by default
- Highchart X-axis truncate shows weird characters
- Change tooltip position where mouse found
- Drilldown different chart types leave artifacts when drilling up?
- How can i show the count value as well as % on my highchart pie chart?
- last label in x axis with datetime format not coming in highchart
- How can i assign the same yAxis.categories values to series.data in HighCharts?
- use highchart and highstock on the same page
- Highcharts not referenced error when using setOptions
- How to display top 3 data label in piechart highchart
- Shared tooltip with multiple stacks
- How to add a line break in Highchart legend in R?
- Highcharts numeric x-axis
- Highcharts Polar Chart customization
- Highcharts multiple pie chart series hover
- Highchart pie legend circles
- HighStock datagrouping approximation functions
- Highcharts adding labels/columns with no data
- How to remove bullet from tooltip when using highchart?
- Displaying labels near of each bar
- Move the legend a little bit higher
- HIghcharts.js add catgories with addseries on column chart
- Disabling Handlebars in HighStock charts navigator
- Highchart polar chart with scatter in specific directions
- Tooltip Options not working for Highcharts Treemap
- Overlap bars in highchart's columnrange plot
- Recreating a highcharts donut chart in highcharter
- Highcharts :Column chart with percentage grouping on X-Axis
- How can I access the 'this' field in plotOptions of highcharts