score:1
Accepted answer
Using jquery to select point is not the best solution. Highcharts provides point events like click
where you have an access to clicked point instance, or you can select a point using the chart.get() method by point id.
To change the selected area color you have to define color property when a point (area) is selected:
series: [{
states: {
select: {
color: '#a4edba'
}
}
}]
Now you have to invoke select() method on the clicked or selected point, as well as you invoked zoomTo()
method:
series: [{
point: {
events: {
click: function() {
var point = this;
point.zoomTo();
point.select();
}
}
},
states: {
select: {
color: '#a4edba'
}
}
}]
});
Source: stackoverflow.com
Related Query
- Coloring a region programmatically based by user selection with Highmaps
- HighStock Chart: Extract time based on user selection from the Navigator window
- Change highcharts axis value based on User Selection
- Programmatically draw rect and line in Highcharts with zoom
- Highcharts - Global configuration with common code and unique data & Headings
- How to use Highmaps and Highcharts with Meteor?
- Highcharts / Highmaps with Angular - Cannot run demo
- Highmaps with rich information in separate container
- c# WPF Webbrowser with Highchart, Javascript from external source not working "An error has occurred in the script on this page"
- How to get Series Name Based on Selection in Highcharts
- Highmaps with Highcharts : Highcharts error #17 with jQuery
- passing formatting JavaScript code to HighCharts with JSON
- Highmaps border color of region
- Highcharts fill map based on data values with React TypeScript
- Multiple data series and multiple data tooltip with HighMaps
- Highcharts - selection error with live data and different time intervals
- HighMaps with drilledDown
- Have an issue with JavaScript, AJAX code displaying data
- Programmatically zoom out with highcharts-ng
- Getting started with Highmaps tooltips
- highcharts highmaps parsing json data to display world map with rich info
- Render charts based on type with AngularJS components
- Highmaps - Issue with Internet Explorer
- Map for Highmaps with England, Wales and Scotland etc
- Programmatically change dataLabel's border with Highcharts
- Strange character in the Highstock source code
- Creating a bubble map from custom GeoJson with Highcharts / Highmaps
- Highcharts series visibility with csv data source
- Get value in province label with highmaps in the highcharter package
- How to Hide rest of the region when user clicks pie chart?
More Query from same tag
- Passing dynamic php values for Highchart graphs
- Highstock grouping show hidden serie values in tooltip
- How to use html/unicode symbols as marker-symbols in highcharts?
- Highcharts ajax not working
- highcharts single line with arrow arrow
- HighChart : update group column chart
- Share tooltip between all series types
- Highcharts - bar chart - show series name under bar
- How do I make a Tornado Chart using Highcharts
- How to add image/icon to a chart in Highcharts
- How to change area graph color above certain value in Highcharts
- Highcharts - Tooltip width in styled mode
- Is it possible to turn boost mode in highcharts only when client's browser starts to jank?
- new Highcharts.Chart creating trouble. Why?
- Highcharts: update series on multiple charts with same data
- how to fix '-1' value displaying while clicked on navigator in highchart ? (When date-range not used for navigator)
- How to connect js array to highcharts
- Multiple Charts not moving in sync at random times when adding value on interval
- Dynamically add a Highchart point while preserve categories
- Highcharts - Getting chart on click event
- Is angular2-highcharts paid ? Can i use it for my Client?
- how to dynamically set the minPointLength except 0
- Adding images to top of each column for each group on a chart
- Not able to show minimal height for a bar in highcharts
- Custom HighCharts - change the height of plotLines , show the marker value by default at a specific x and y
- Highchart xaxis data decrease when shift
- Highcharts navigator mouse over not working
- HighCharts API pie chart CSS how to select drilldown labels
- Using an input box to get a variable?
- Export Jquery chart to csv,pdf and excel