score:1
Accepted answer
According to the github thread this should be fixed in the newest master branch.
score:1
In general, if you have negative values in the data that you are displaying, use a bar chart instead of a pie chart. Pie charts are supposed to represent a part of a total, a part-to-whole relationship, thus negative numbers won't work because you can't have a negative part of a total.
In case that you actually want to just show that value, try wrapping it in an absolute value;
plotOptions: {
pie: {
allowPointSelect: true,
cursor: 'pointer',
dataLabels: {
enabled: true,
formatter: function() {
return this.point.positive ? this.y : this.y * (-1);// <-- or wrap in absolute Math.abs(this.y)
},
color: 'black',
style: {
font: '13px Trebuchet MS, Verdana, sans-serif'
}
}
}
}
Source: stackoverflow.com
Related Query
- Highcharts - Pie chart with negative values
- Highcharts - Area Chart - Stacking with series containing negative and positive values
- Column chart with negative values and categories on xAxis in HighCharts
- Highcharts - Keep Zero Centered on Y-Axis with Negative Values
- Total of values in HighCharts Pie Chart
- Highcharts - best way to handle and display zero (or negative) values in a line chart series with logarithmic Y axis
- Highcharts - Column With Negative Values - Column Color
- Highcharts - Issue with negative values when displaying multiple axes
- Highcharts connecting scatter chart and pie chart with single legend
- Highcharts: having trouble recreating stacked area chart from Excel with positive and negative values
- Grouping Legends in Pie Chart with Highcharts
- Highcharts - Getting a 3d effect with selected pie chart slices
- Highcharts - Negative color with 'line' type polar chart
- Not able to draw a Pie Chart with external csv file in HighCharts
- Highcharts vertical stacked bar chart with negative values, is it possible?
- Highcharts - Cannot set x-axes categories in column charts with negative values
- Highcharts - draw line chart with summed values but show breakup on hover
- Highcharts - Dealing with small values in Funnel chart
- Highcharts - pie chart with html div at center
- Show/Update Separate Bar graphs with Drilldown Pie chart of Highcharts
- Highcharts display label for pie chart using html table as data source
- HighCharts populate Pie Chart with data from SQL Database
- highcharts lollipop/dumbbell chart change position/colour of positive and negative marker values
- Highcharts Semi Donut Pie with Negative Percentage
- Highcharts pie chart plotting different values
- Highcharts drilldown to pie chart - Clicking on axis label with multiple series causes pie charts to overlap
- highcharts gauge use with negative values
- highcharts issues in pie chart with gradient fill
- Highcharts - Pie chart with parial doughnut overlap
- PIE CHART - Data Visualization With DataTables and Highcharts
More Query from same tag
- Highchart Renderer By min and max
- HighCharts: How to display unique text for yAxis Label in a spline chart
- Is there any way to test the highcharts with large data-set with Jest and React.?
- Save Highchart directly to specific path
- HighCharts Drill down not working
- Highcharts - navigation by 3rd element in series 'hidden' in plot
- Trying to figure out how to assign specific colors to specific data points in Highchart Pie chart
- Render Highcharts data table to separate container as chart via drawing API?
- Generate a line chart over column chart using highcharts
- highcharts different tick interval
- Highstock get detailed info when data is grouped
- How to import highchart-more into angular 4 project
- Using a JSON Object in HighCharts
- Hover entire container contents with an Overlay
- how do you make scrollbar work in highcharts
- bootstrap data-toggle="tab" - how to make a tab active with a JS call
- HIghcharts individual plot point color
- Why doesn't this simple Highcarts JS Fiddle example reset the XAxis with SetCategories call?
- Highcharts series showing different data for 'column' and 'line' chart
- Bug in new highcharts renderer?
- Highcharts not rendering data points
- Highcharts - How do I track/follow a live updated chart without using a navigator?
- Heatmap: Append new data rows
- Getting user feedback by clicking on a data point/tooltip in Highchart JS
- highcharts arearange to turn off x-axix line
- No animation when adding points to two serieses in Highcharts
- how to draw charts with json file data in highcharts
- Highcharts timeseries, X-axis min not working
- Using datetime axes, but with changing scales
- Highchart chinese colon display incorrect when exporting