score:0
Original object with data from user could be find in this.options.y
, so you can always use that value, see: http://jsfiddle.net/bRZaw/9/
score:1
Pie charts are supposed to represent a part of a total so it is expected that negative numbers won't work because you can't have a negative part of a total. If you need to represent negative values then you probably should use another type of chart.
In case that you actually want to just show that value (given that you said it isn't really significant over all), try wrapping it in an absolute value, Math.abs(yourValue) should do the trick.
score:1
You can show 0 for negative numbers in legend by updating labelFormatter
as below:
labelFormatter: function () {
if (this.y === null) {
return this.name + ': 0%';
} else {
return this.name + ': ' + this.y + '%';
}
}
Source: stackoverflow.com
Related Articles
- Highcharts Pie Chart - Showing Negative value as "null" in legend
- HighCharts Pie Chart Legend value alignment
- How to suppress items with NULL value from HighCharts legend
- Remove gap in Highcharts column chart from null value from JSON file in React
- Highcharts pie chart legend items showing gradient colors
- Highcharts Pie Chart Add Value to the Legend
- HighCharts : Total Value is not showing in Pie Chart
- Highcharts chart option backgroundColor:'transparent' showing black on IE 8
- How to set Highcharts chart maximum yAxis value
- How to display the value instead of percentage in a pie chart using jquery Highcharts
- Set highcharts y-axis min value to 0, unless there is negative data
- Highcharts - Legend Positioning outside the chart
- Highcharts Pie Chart Drilldown not showing on third drill
- Grand Totals in HighCharts Pie Chart Legend
- Show value of last point as label or tooltip on Highcharts Stock Chart
- Highcharts line chart tooltips not showing correctly?
- How get data name in Highcharts pie chart legend instead of "Slice" using array of values?
- Highcharts spline chart points not showing unless zoomed in
- Show N/A in datalabels, when value is null - Highcharts
- Highcharts - resize legend on chart resize?
- Highcharts connecting scatter chart and pie chart with single legend
- Highcharts reversed line chart is partially hidden at min value
- HighCharts - Show tooltip on column where value is 0 or null
- Legend and Axis titles not showing in Highcharts Graph
- Legend and Axis titles not showing in Highcharts Graph
- Highcharts tree map showing wrong min value
- Highcharts navigator error: Invalid negative value for <rect> attribute width
- Highcharts not showing tooltip after update from null
- Highcharts - Display legend for Pie chart in two columns
- Highcharts problem - showing labels in zoomable chart
- Highcharts Column Chart number LOW but column looks HIGH
- Chart not visible
- Highcharts Pyramid Chart displays no data with JSON, PHP
- Individual positioning of x-axis labels in a polar highchart
- Highcharts Circular Percentage Chart
- Apply different colors to different words according to their weight using Highcharts API
- How can i force Highcharts to use same symbols in Legend and Series?
- Highcharts export menu does not show up fully
- Stacked area in Highcharts make my series fading in and fading out
- Highstocks 2.04 Bug?: Tooltip dates > 20 years displaying as 1st of month
- Highcharts php data
- Highcharts JS: How do I decrease the spacing between Y values?
- Highcharts display scrollbar when zooming
- How do I attach a click event to the hcmap function within Highcharter library within R shiny?
- Highstock columns overlapping one another even if there is space
- how to set underline style on subtitle highchart?
- Change/Swap Highcharts Data
- How to pass multiple Highcharts parameters in JSON array
- How do I reduce the space between title and chart of a High Chart?
- Highcharts - spider web chart questions