score:0
You can do that with the series.events.legend.itemClick
- Api Documentation
series: [{
name: 'Point 1',
color: '#00FF00',
data: [1, 2.5, 3, 4, 3.2],
visible: false,
showInLegend: true,
events: {
legendItemClick: function() {
return false;
}
}
}
edit : Completly invisible legend Updated Fiddle
score:0
You can do a little trick to achieve it: create a "phantom" series that has no data and link the hidden series to it. Legend item will be generated for the phantom series and will serve for the hidden series too. Then disable the default action for this item in events.legendItemClick
:
series: [{
// Phantom series - created just to generate legend item
name: 'Series 1',
events: {
legendItemClick: function(e) {
e.preventDefault();
}
}
}, {
data: [3, 0],
visible: false,
name: 'Series 1',
linkedTo: ':previous',
}, {
data: [1, 2],
name: 'Series 2'
}]
Live demo: http://jsfiddle.net/BlackLabel/dc4L30zv/
API references:
Source: stackoverflow.com
Related Query
- How to keep the highcharts legend "on" while hiding the series
- Hiding a Highcharts series without using the legend
- canvg and highcharts how to include chart legend and keep the chart size?
- Highcharts how do i keep space between series the same but increase space between categories?
- How to customize a legend in highcharts as the image and while clicking on the leg end appears lines inside linechart
- HighCharts Hide Series Name from the Legend
- Hiding _groups_ of series in Highcharts and jQuery: how to get acceptable performance?
- How can i hide all the Series in highcharts at a time
- Highcharts - How to display legend symbol inside the tooltip
- Highcharts - How to set custom colors for the series
- How can I delete all of the points from a highcharts series
- How to Check and Uncheck all the Legend elements in HighCharts Linechart?
- How do I remove the color swatch from my HighCharts legend without affecting the column?
- How do I style the series labels on a Highcharts pie chart?
- How can i keep the color the same in highcharts
- How to remove the halo/glow around a marker upon hovering a series in Highcharts
- How to hide series via the legend in highstock ?
- How do I hide a Highcharts series from the chart, but always show it in the tooltip?
- How to color series legend in highcharts when colorbypoint is set to true
- Highcharts : How do I keep the marker formatting and make the click event fire with a 5K+ point scatter plot?
- Highcharts - how to create multiple y axis and group the data series
- how to display 2 same highcharts without duplicate the code
- How to change the color of highcharts series graph to black & white during downloading it as an image?
- How to show the legend in HighCharts
- How to move the legend in Highcharts
- How can I add a text link just below the legend box in highcharts
- How can I set the legend symbol color for a series when using colorByPoint?
- how to continue the graph line when missing series of data in middle of highcharts
- Highcharts -> how to add vertical title to bar? how to make the symbol in the legend a rectangle?
- Highcharts - How do I keep both line points in from splitting between the two bar charts
More Query from same tag
- Loading JSON into a Highcharts pie chart
- HighCharts - how to set labels font color for printing?
- Columns HighChart remove spacing for empty data series
- Highcharts datalabels are not showing infront of each slice in pie chart
- Highcharts won't fit in Bootstrap 3 modal body
- Hichcharts Add Button to toggle between Series
- Lazy Highcharts DateTime formatting
- HighCharts, Json Format
- Highstock Update Data getJson
- How to auto save highcharts as image in specific folder
- Highcharts scatter external data
- Highcharts Pie chart
- How to get Highchart plots plotted only for starting and ending points
- Highstock charts | How do I store a series start and end value in variables?
- Rendering Highcharts Chart in Two Container
- How to de-couple and do dependency injection with highcharts-ng
- Create highcharts using angularjs ng-repeat
- Highcharts, changing legend icon to represent image
- Combine an object parameter with array values in Highcharts reduce method
- Custom hover / tooltip data on highcharts network chart
- Multiple categories for hc_yAxis
- Nodata message with React 0.13.3 and react-highcharts 3.0.0
- Highchart : xaxis Adding extra Dates randomly
- High Chart X Axis to display month and year
- HighCharts Axis Formatting in Chrome
- Highcharts Waterfall graph using a column graph
- How to set individual colors for high chart pies
- Highcharts Line Chart Drill down into multiple series
- Highcharts ( stockchart series line is not connecting to the last point
- How to change the color of the each slice in piechart based on the backend response using highcharts