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

Comments

Projects
None yet
3 participants
@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

This comment has been minimized.

Show comment
Hide comment
@pawelfus

pawelfus Oct 25, 2017

Contributor

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'
        }
      }
    }
  },
Contributor

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

This comment has been minimized.

Show comment
Hide comment
@KacperMadej

KacperMadej Oct 25, 2017

Contributor

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

Contributor

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 added the Docs label Oct 25, 2017

@KacperMadej KacperMadej self-assigned this Oct 25, 2017

KacperMadej added a commit that referenced this issue Oct 25, 2017

Fixed #7315, removed wrong docs for series.column.marker and for shad…
…ow in hover and select states in column.states.

TorsteinHonsi added a commit that referenced this issue Nov 2, 2017

Fixed #7315, removed wrong docs for series.column.marker and for shad…
…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