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 Query
- Highcharts Pie Chart - Showing Negative value as "null" in legend
- HighCharts Pie Chart Legend value alignment
- 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
- How to display the value instead of percentage in a pie chart using jquery Highcharts
- Highcharts Pie Chart Drilldown not showing on third drill
- Grand Totals in HighCharts Pie Chart Legend
- How get data name in Highcharts pie chart legend instead of "Slice" using array of values?
- Highcharts connecting scatter chart and pie chart with single legend
- Highcharts - Display legend for Pie chart in two columns
- How to center highcharts pie chart and legend on a page?
- Creating series/group titles in legend in Highcharts JavaScript pie chart
- Show tootip and select pie slice on legend click of pie chart in HighCharts
- How to suppress items with NULL value from HighCharts legend
- Pie Chart is not showing correct value due to asynchronous data retrieve in Angular JS
- Highcharts - Pie chart with negative values
- Highcharts display label for pie chart using html table as data source
- HighCharts Pie chart is not showing all of dataLabels, it's cut off
- Remove gap in Highcharts column chart from null value from JSON file in React
- Gson to get Json value for a pie chart using Highcharts
- Highcharts convert: not showing pie chart data labels
- Create a Highcharts Pie Chart Legend Inside a Table
- Highcharts make pie chart goal value only 50%
- Highcharts hide legend item from Pie chart
- Highcharts - Pie chart legend remains hoverable on second series
- Highcharts - How to combine unique legend for multi-series pie chart which perform same action for both series? (like onclick: show/hide)
- Highcharts pie chart height auto sized including legend
- how to show legend in PIE chart from chart to pie drilldown highcharts
- Highcharts Pie chart how to reduce space between chart and legend caused by plot width
More Query from same tag
- Hover style for labels in legend
- How to disable the circle that appears in Highcharts without data?
- Highcharts yAxis self-adaption issue
- How to make the highcharts generated chart be scalable or responsive
- HighCharts: Updating stops in yAxis does not work
- single array timestamp as xAxis for multiple series
- Exclude "H:m"in dateTimeLabel Highcharts
- Highcharts: yAxis showing exponential values
- Highcharts - only apply style to certain labels
- High Chart inserting data from arrays into line graph
- how to have customized tooltip,when plot has two series
- Customizing default y-axis label in Highcharts
- Highchart renderer path issue in IE8
- issue on Adding Multi Text To Chart in Highcharts
- Thymeleaf: convert a list of objects to JSON when fields' name should contains a dash
- Drawing Bubble Chart by using npm highcharts with error #17
- Adding round corners to Highcharts Bar Chart with stacked bars when value is 0
- Highchart - Datalabel overlaps across slices
- How can I have both a legend and data labels, with different labels, in Highcharts?
- Highcharts - options dump.json
- Formatting jSON response for Highcharts
- how to resize custom button's width and height in highcharts
- Highcharts percentage variability position
- encode CSV to JSON according to certain scheme using PHP
- Highcharts - hide dataLabels leaders
- Tooltip z-Index in Multiple highcharts charts
- Is it possible to have the line chart data points in highcharts to be represented as a rectangle instead of a circle?
- npm throws this error '"**/node_modules/@angular/core/core"' has no exported member 'ɵɵFactoryDef'
- How to increase spacing between sideway bar charts in highcharts?
- Having Several Units on Highcharts Spiderweb