Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Defined styles for marker selected state cannot be applied to bar/column charts #7315

Closed
lotsawa opened this issue Oct 24, 2017 · 2 comments
Closed
Assignees

Comments

@lotsawa
Copy link

@lotsawa lotsawa commented Oct 24, 2017

Expected behaviour

plotOptions: {
          series: {
            allowPointSelect: true,
            marker: {
              states: {
                select: {
                  fillColor: 'red',
                  lineWidth: 0
                }
              }
            }
          },

Bars and columns styled with defined options above should draw with red filling when selected.

Actual behaviour

Default style is always used.

Live demo with steps to reproduce

http://jsfiddle.net/xaw7059x/

Affected browser(s)

Tested on Google Chrome Version 61.0.3163.100 (Official Build) (64-bit)

@pawelfus
Copy link
Contributor

@pawelfus pawelfus commented Oct 25, 2017

Hi @shicechi

Column series doesn't have markers, you can set options in series.states.select, demo: http://jsfiddle.net/xaw7059x/1/

Code:

  plotOptions: {
    series: {
      allowPointSelect: true,
      states: {
        select: {
          color: 'red',
          borderWidth: 4,
          borderColor: 'green'
        }
      }
    }
  },
@KacperMadej
Copy link
Contributor

@KacperMadej KacperMadej commented Oct 25, 2017

So it looks like an API documentation error, because marker is there while it shouldn't be:
https://api.highcharts.com/highcharts/series.column.marker

@KacperMadej KacperMadej self-assigned this Oct 25, 2017
KacperMadej added a commit that referenced this issue Oct 25, 2017
…ow in hover and select states in column.states.
TorsteinHonsi added a commit that referenced this issue Nov 2, 2017
…ow in hover and select states in column.states.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants