score:5
Accepted answer
You should not give the slices name through xAxis' categories field. Slice names should be included in the data object. Try this:
sliceNames = [];
$('tbody th', table).each(function (i)
{
sliceNames.push(this.innerHTML);
});
options.series[j - 1].data.push({name: sliceNames[i - 1], y: parseFloat(this.innerHTML)});
You don't need categories object at all, just populate the slices name into any array variable and use that while pushing data.
score:1
I'm pretty new to HighChart, but couldn't you just format the output of your tooltip or dataLabel using something like this...
this.series.name = this.series.chart.options.xAxis[0]
.categories[this.series.processedYData.indexOf(this.y)];
Source: stackoverflow.com
Related Query
- How to get text from html table in pie chart (highchart)?
- How do I make each row in a HTML table a pie chart in Highcharts?
- Highcharts display label for pie chart using html table as data source
- How do I add a dropdown to change endRow value in a chart displaying date from an HTML table
- How do I get remove of 'data table' option from High chart export
- How to remove white space from pie chart in highchart.js?
- How get data name in Highcharts pie chart legend instead of "Slice" using array of values?
- How to make a pie chart from highcharts responsive
- How can I prevent my HighChart bar chart from being inverted?
- how to exclude last column from highchart from table
- Highcharts - How to make a scatter plot with multiple series from HTML table
- Generate chart from html table : JQuery
- How to display a clickable pie chart in the cell of a html table?
- How to remove sliced line from pie high chart if there there is only one object in data
- Highcharts: How to align text label middle center of pie chart
- How to create chart with highchart in which bar doesn't start from 0 in y axis?
- How to get a Highchart to appear in HTML pages?
- How to get image of graph from highchart in web page only?
- How to show highchart graph depends on select tag from HTML
- How to get chart min and max values after Drag zooming in highChart chart?
- How to get region/province code from IP address
- How to get Pie Chart data to display using AppCoda example and iOS Charts?
- How to Get element properties from Highchart
- How to fire a jquery function onchange from an html element in highchart event on click?
- Highchart - How do I create the attached image gauge within a semicircle pie chart
- How to get access to the chart from HighchartsReact component to ResponsiveGridLayout component when I'm using functional react component
- How do I get this text inside of this HTML using Selenium Webdriver?
- How can I get a data label in my Highcharts Pie Chart that is a font-awesome icon?
- how remove picture frame for Highchart chart pie
- How to start highchart column chart from left most corner of x-axis?
More Query from same tag
- Highcharts Pie Custom Legend, possible?
- Showing Context Menu on right click of High Chart series
- Highchart styling issue. Chart doesn't show up as it is coded
- React Highcharts: How to display tooltip value to specific div outside of the chart
- Highstock scrollbar not covering the whole length in multiple series
- Realtime backend platform for reporting / dashboards?
- Highcharts: how display tooltip, when point = null?
- Pass custom date object from jalali-moment library to time.Date option
- How do you change the height value when more items are added to highcharts dynamically?
- Highcharts bar zoom issue when using transparent series
- why the labels is not display in chart
- JSON, Highcharts and Coldfusion json data
- Fast way of graphing db statistics onto a webpage
- highcharts.js column/bar overlap (datetime Xaxis)
- How to make xAxis on bar chart match pointWidth
- Highstock Single Navigator for multiple Charts
- Highcharts gauge keep tooltip visible and centered
- Delete button when it's clicked javascript
- R Highcharter: dynamic drilldown in Shiny on the fly
- Highcharts create legend for waterwall and stack column chart
- Combine Dates with Homerun Data from JSON
- Highcharts - Segmented column bar
- How to create arrays for Highchart?
- Convert and Sort Data for HighChart Column Range Representation
- show/hide series vanishes styling of datalable
- Accessing another list in the dataLabels.formatter function in Highcharts
- Set position for each flag in highstock
- Better way to use Ruby/Sinatra to pass data to Highcharts?
- Gradle sync failed. Basic functionality will not work properly
- Trying to overlay scatter plot on grouped box plot using highcharts.js