score:43
Accepted answer
You do this by attaching a handler to the legendItemClick
event and just returning false
. This will prevent the default action which is to toggle the pie sector.
point: {
events: {
legendItemClick: function () {
return false; // <== returning false will cancel the default action
}
}
}
See this example http://jsfiddle.net/mfras3r/3vVGB/1/
score:3
pie: {
showInLegend: true,
allowPointSelect: false, // disable selected
}
score:5
pie: {
showInLegend: true,
allowPointSelect: false,
point:{
events : {
legendItemClick: function(e){
e.preventDefault();
}
}
}
}
Source: stackoverflow.com
Related Query
- How to disable legend click to stop pie slice from disappearing in Highcharts?
- How Can I Hide a Pie Chart's Slice in HighCharts Without Removing It From the Legend?
- Show tootip and select pie slice on legend click of pie chart in HighCharts
- highcharts - how to controle slice pie from bottom
- how to show legend in PIE chart from chart to pie drilldown highcharts
- Highcharts pie chart - offset a single slice on legend click
- Highcharts : How to perform an action on Pie chart's legend click ?
- Highcharts Pie Slice Offset on Legend Click
- How to modify highcharts legend item click event?
- How can I remove the white border from HighCharts pie chart?
- How to hide a highcharts pie slice programatically
- Enable or disable data labels shown in pie charts in Highcharts on click of a button
- How get data name in Highcharts pie chart legend instead of "Slice" using array of values?
- How do I remove the color swatch from my HighCharts legend without affecting the column?
- How to make a pie chart from highcharts responsive
- How to center highcharts pie chart and legend on a page?
- How to trigger a legend click in HighCharts with jQuery?
- How to suppress items with NULL value from HighCharts legend
- How to add different click events on each pie of a pie chart created by highcharts usin jquery
- Highcharts Pie Chart: How to ignore disabled legend items
- How to stop Highcharts from recalculating ticks positions when a series is toggled?
- Highlight a slice of pie chart in highcharts on click of a div
- Highcharts - Scatter plot: How to send information from clicks to a function with information about the click as parameters
- Legend is disappearing on HighCharts pie refreshing
- Highcharts hide legend item from Pie chart
- Highcharts - How to combine unique legend for multi-series pie chart which perform same action for both series? (like onclick: show/hide)
- Click on Highcharts pie rendering border although legend item click is disabled
- HighCharts Disable some Series Name from the Legend
- How do I stop a highmap from zooming in when I click on a point?
- Highcharts Pie chart how to reduce space between chart and legend caused by plot width
More Query from same tag
- HighCharts - Set default Axis options for my extension
- How to add two different mouse over for two different type of series in same chart?
- minPointLength is not working for horizontal Trellis bar charts in Highcharts
- Exception when converting to image from Base-64 string
- where to put phantomjs.exe in Tomcat 7 on Windows 7
- Network-graph not getting formatted properly
- highcharts - render text with decimal 'x' and 'y'
- HighCharts : Is it possible to customize the colors of individual series?
- Delete Highchart top line with heatmap
- Merge two or more graphs using library
- Highcharts.stockChart Range Selector (zoom) Button Position After the Chart Container
- Highchart labels are selected if I hover over tool-tip, while dragging the chart
- How can i load external json data in highcharts to show the bar chart
- Django - 'SafeText' object has no attribute 'get'
- level series in a highchart
- Having trouble mapping highcharter aesthetics to reactive object elements
- HighStock: chart gets broken when navigator touches right border
- How to reformat a HighChart series to for CSV export
- Add new series[0].data into already existing highchart
- Highcharts navigator error: Invalid negative value for <rect> attribute width
- angular2-highcharts first point loses on xAxis
- VBA User Defined Function returning strange or no results
- Highcharts - date on xAxis label difference on tooltip
- How to render Highcharts to div with id as container - Angular?
- Enable scrollbar using highcharts.js
- Stacking columns but not lines in same chart highcharts
- Highcharts plotOptions.series.compare='percent' renders blank
- Highcharts data will not load using angular directive
- Resize height with Highcharts
- Setting options.rangeSelector.selected to 0 does not set zoom to correct level in highstock