Q:

How can I change the color of the selected point in Highcharts?

I have an HighCharts line plot in which the user can click points using this code:
 plotOptions: {
     series: {
        point: {
           events: {
              click: function(event) {
               // some processing
              }
 ...

I want to change the color of the selected point. 
I know that I could write :
marker: {
   states: {
      select: {
         fillColor: 'red',
...

But, in my case, I really need to do this inside click, How can I do it ?

A:

You can always use the update function for that:
    plotOptions:{
        series:{
            marker:{
                states:{
                    select:{
                        lineColor:'red',
                        fillColor:'red'
                    }
                }
            },
            point:
            {
              events:{
                  click: function(){
                      this.setState("select");
                      this.update({
                          marker:{
                              fillColor:'red',
                              lineColor:'red',
                          }
                      })
                  }
               }
            }
        }
    },

When this refers to the point the user clicked.
As you can see, I composed a custom "select" state with some custom properties, and applied this state when user clicks a point. I also used update in order to change the point marker attributes, so I make sure the point reserves the new attributes after the state is no longer active:
http://jsfiddle.net/gprevqdf/2/

