score:1
It seems that you have a typo in your positioner
function. You should use plotY
insted of ploty
property:
tooltip: {
positioner: function(width, height, point) {
return {
x: point.plotX,
y: point.plotY,
}
}
}
Live demo: http://jsfiddle.net/BlackLabel/poxv4wq1/
API Reference: https://api.highcharts.com/highcharts/tooltip.positioner
EDIT:
The positioner function return a tooltip coordinates relative to the entire chart. The values point.plotX
and point.plotY
are relative to the plot area, so you need to add chart.plotTop
and chart.plotLeft
values:
positioner: function(width, height, point) {
var columnWidth = this.chart.series[0].options.pointWidth;
return {
x: point.plotX + this.chart.plotLeft,
y: point.plotY - columnWidth / 2 + this.chart.plotTop - height
};
}
Live demo: http://jsfiddle.net/BlackLabel/0cjftrsy/
score:0
ok, becouse of the label styles. The position of the toolTip is of.
This how i fixed it.
This example worked with http://jsfiddle.net/fqbkozpr/1/
return {
x: Math.max(point.plotX, width), // To the right.
y: point.plotY + height, // Make sure to be under the line
};
Source: stackoverflow.com
Related Query
- Highcharts: Position tooltip above the bar on a bar chart
- Highcharts position tooltip at the middle of stacked bar
- How to position highcharts tooltip above chart with outside:true
- Highcharts Bar Chart - How to set the minimum bar width/length
- Highcharts - Bar - Setting the X axis width and the chart area width to be constant
- HighCharts tooltip appearing behind the dialog holding the chart
- Highcharts 3d bar chart data labels position is wrong
- Highcharts stock chart - Technical Indicators - Stock price is missing in the tooltip when selecting the 'All' range
- Why is the first label on highcharts bar chart missing?
- Ordering the stacking in a highcharts bar chart in R
- Compare two data points inside the tooltip in a Highcharts combination chart
- Get the end points of each bar in a highcharts column chart
- Highcharts - position column chart from the top
- .net Highcharts can't show the bar chart correctly in mvc
- Highcharts gantt or any chart x-axis scroll position to be at the start/left side on loading chart
- How can i load external json data in highcharts to show the bar chart
- Want to make the Highcharts Bar Chart data labels appear on the far right in the chart
- Show Highcharts tooltip at the bottom of the chart in responsive mobile version
- Highcharts - Column Chart Drilldown, how to change the drilldown bar color based on some value
- HighCharts basic bar chart provide the xAxis categories with Series
- Highcharts bar chart tooltip HTML positioning
- Unable to correctly position the tooltip content in HighCharts
- Highcharts Chart Bar - How can I display in the chart, only one column from my HTML table?
- How to position Highcharts tooltip on top of bar or at 0 line of Y-axis for negative value
- Reduce length of the bar in Bar chart in Highcharts
- Position shared tooltip above the stacked columns
- Showing tooltip on right side of the column in a vertical bar chart
- How to modify the code so that Highcharts graph does not cover fixed navigation bar at the top of the page?
- How can I create a horizontal stacked bar chart with labels on the bars themselves as well as labels above the bars?
- realign Labels inside and outside the bar chart on highcharts
More Query from same tag
- Why does HighCharts reverse the order of my series?
- Prevent Nil Values in Transformed Array
- How do I initialize HighChart series values with AJAX?
- Highcharts xrange refuses to exhibit drilldown behavior
- rerender view when model property change in EmberJS
- How to set the x axis dynamically in High Charts 2.3.5
- Highcharts Annotation SVG doesn't move with other shapes
- Highcharts height issue - remove white space at the top. See JSFiddle :)
- Outline or border for the spline series in highcharts
- Start chart from threshold
- How to set intervals for multiple y-axis in Highcharts?
- trouble embeding highcharts in a html php page
- Sweep animation with highcharts pie
- Highchart data does not start with 0 gives error
- On Export The Updated yAxis Title Is Lost
- How to display only last data point on highcharts?
- Highchart Column hides in the middle of Highchart Scroll bar
- Radar Chart Not working in React Highcharts
- Extjs with HighCharts
- Highcarts doesn't load my JSON data
- Datalabels are not shown in 3D Highcharts bar/column
- Set yAxis background color in Highstock
- How to remove margin gap in area spline chart for highcharts?
- HighCharts Pie Chart - Add text inside each slice
- sync width of xAxis between two charts, when one chart has multiple yAxis
- JSON-Object as string: Use of concat(), eval() and/or JSON.parse()?
- Highcharts Sunburst levels radius
- Matomo: report for single url
- Highcharts: issue to load multiple series
- Highcharts dynamicly update legend with grouped values