score:2
Accepted answer
When the formatter function is evaluating the value to display, the context has access to the guide-line path element. I was able to hide the guideline by making the following change to the formatter:
formatter: function ()
{
var y = this.y;
//Hide the labels for empty pie slices
if (y == 0)
{
//If there is a pie chart label guideline, hide it
if (this.point.connector)
$(this.point.connector.element).attr("stroke", "#FFFFFF");
return "";
}
//If the label guideline was previously hidden, show it
if (this.point.connector)
$(this.point.connector.element).attr("stroke", "#000000");
...
}
score:0
Make connector width 0.
dataLabels: {
connectorWidth: 0,
...
}
score:2
You can try to use:
if(this.y == 0)
return null
else
return this.y
Source: stackoverflow.com
Related Query
- Hiding label guidelines on Highcharts pie charts
- Highcharts display label for pie chart using html table as data source
- Highcharts drilldown to pie chart - Clicking on axis label with multiple series causes pie charts to overlap
- Highcharts Pie charts get the selected pie id
- Enable or disable data labels shown in pie charts in Highcharts on click of a button
- Highcharts Pie Chart Label Threshold
- Tooltips getting cutoff in pie charts in highcharts
- Highcharts pie charts can have url links
- Using connecting legends for two Highcharts pie charts
- Use of DotNet HighCharts dll to make charts in code behind
- How to show multiple pie charts using highcharts
- highcharts pie dynamic label inside and outside for each slice
- Highcharts Pie Charts Show Outline When Empty
- Highcharts - Hiding plot line behind plot label
- Switch between pie charts and bar chart in highcharts
- Highcharts JS - share legend color between pie charts
- Fixing dataLabel position in pie charts Highcharts even when data is changing
- highcharts - is it possible to zoom pie charts
- How to have legends in Pie charts as data labels in HighCharts
- HTML table as data source for highstock charts using highcharts
- Enable Horizontal Scrollbar in Highcharts with Multiple Pie Charts
- Highcharts Exporting multiple Pie Charts
- How can I get a data label in my Highcharts Pie Chart that is a font-awesome icon?
- Why code of Horizonal line(y-axis) on a single in Highcharts get applied to all other charts integrated with Webdatarocks
- Pie of pie charts in Highcharts
- Position single data label of highcharts pie chart centered below the chart
- Highcharts Pie Chart turning off data label
- Highcharts | Label width control in bar charts
- Highcharts Align pie charts to the Left
- Highcharts pie charts individual sections are not receive focus. Tooltips are not displayed on focus
More Query from same tag
- Highcharts.js - Dynamically disable given category
- Highcharts Legend Selection double fires in Android WebView
- PivotPoints R & S alternate colors in Highstock
- Make RangeSelector into dropdown Highcharts
- Not well-ordered X Axis values
- NReco HTML-to-PDF Generator for .NET blank pdf angular 2 highchart
- Disable hover on HighCharts
- How to edit highstocks.js for 2 datepickers
- Only connect points within the same category (Highcharts)
- Highcharts gauge not shown
- Apply outer border for the highchart area chart
- How to draw branched chart in Highcharts?
- Can I add my own property in 'this' of xAxis labels formatter function in High Charts?
- How to create a row isolated heatmap with Highcharts
- Highcharts - trying to start x-axis tickmark at a half hour point
- Dynamic High Charts in Angular
- Highchart - add "onclick event" for total value stackLabel
- Highcharts TypeScript Boost module
- HighStocks - Adding 2 charts on same page
- Show multiple Y axis stacked one upon the Other in Highchart Line type graph
- High chart spline chart is not plotting with single data
- Highcharts yAxis labels click event
- Highcharts - Series data from MySQL in the expected format
- Highcharts Zoom out in steps
- Trying to figure out how to assign specific colors to specific data points in Highchart Pie chart
- How an I pass an array that is obtained within ngOnInti() to a graph that is outside of that function?
- Highcharts: structure legend by subtitles
- having trouble with AlphaVanatage API, which return a Json timeseries, and I am not able to work with in python, since I need to graph with Highgraph
- Highchart completely loaded after animation event
- Replace data set every min