score:1
Accepted answer
I found a way how to achieve it. Check the below code which shows how to find the unique x positions for each group and use the renderer tool to render a custom text:
events: {
load() {
const chart = this;
const y = chart.plotTop + chart.title.alignAttr.y;
chart.renderer.text(
'Round',
10, //fixed left-margin
y
).attr({
zIndex: 5
}).add()
setTimeout(function() {
const xPositions = [...new Set(chart.series[0].nodes.map(node => node.prevX))]
xPositions.forEach((x, i) => {
chart.renderer.text(
i + 1,
x + chart.plotLeft,
y
).add()
})
}, 10)
}
}
Demo: https://jsfiddle.net/BlackLabel/u02hvz1a/
API: https://api.highcharts.com/class-reference/Highcharts.SVGRenderer#text
Source: stackoverflow.com
Related Articles
- Add textbox to chart and draw strings
- FusionCharts Failed to draw different chart on same data source
- How to set default range selected on chart draw in Highcharts/Highstock
- using angular directive to draw highchart pie chart but when i am using it in success function it is not working
- HighCharts Stock Chart error code 18
- trying to draw dotted lines over the chart
- How to draw the below chart using highchart?
- Not able to draw a Pie Chart with external csv file in HighCharts
- Highcharts - draw line chart with summed values but show breakup on hover
- Draw pie chart using spring boot, thymeleaf, js, highchart but can't
- How to draw a bar chart that one series has both positive and negative values in Highcharts?
- unable to draw pie chart in angularjs using highcharts
- Highcharts display label for pie chart using html table as data source
- Need to draw arrow line from bubble chart to another div using css3
- Highcharts: how to draw line segments with click-and-drag and without chart to scroll?
- How to draw a straight dashed line across chart at zero
- Draw something under highstock chart navigator
- How draw a stacked column chart with type datetime
- Strange character in the Highstock source code
- Highstock - Draw Line on yAxis in front of the chart
- How to draw connectors for venn diagram chart in Highcharts?
- how can we draw column chart with stacked column chart in a single high chart?
- highcharts - Draw horizontal line outside the chart area
- Highcharts draw (and remove) glyphs on the chart
- How to draw an outer border for a donut chart - Highcharts
- Load JSON file into highcharts to draw a Line Chart
- draw pie chart from arrays in highcharts
- How to draw branched chart in Highcharts?
- How to draw line plus bar chart using highcharts/d3.js or any other chart library?
- HighCharts Line Chart draw y axis line for entire line points and only one line
- Highcharts tooltip x axis font size
- What is the name of the Highcharts type interface that provides series types?
- Highcharts - three series using left Y axis and the fourth using the right Y axis
- Highcharts column how to move series name to the title position with bigger text size
- Multiple categories and series in Highcharts
- How to add a vertical plot line in multiple line series and show the tooltip on Plot line in highchart
- Y-axis labels on spiderweb graphs
- How can I set different distance of each points in highchart timeline?
- Complicated multidimensional array to use in highchart series
- Google Charts creates a new line in graph instead of a Tooltip message.
- Highcharts: Polar chart does not display series correctly in dinamically loaded data
- Cannot display name with special character in highchart
- HighCharts title styles i.e textDecoration property not applying when we export the chart using canvg
- Highchart - position x-axis label bottom to next label
- How to get multiple series data in tooltip highcharts?
- Setting min and max for chart in Highcharts library error
- Series with different time ranges in Highcharts
- difference between 'stackLabels' and 'dataLabels' in highcharts
- Highcharts change label text for a single series
- Hide popup when onclick of map where no features