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

xrange series does not update when selected #8104

Closed
spacedarcy opened this Issue Mar 29, 2018 · 2 comments

Comments

Projects
None yet
2 participants
@spacedarcy

spacedarcy commented Mar 29, 2018

Expected behaviour

When clicking on an xrange series, the series should update visually.

Actual behaviour

When clicking on an xrange series, the series will only visibly update on zoom or reflow.

Live demo with steps to reproduce

http://jsfiddle.net/aqupng7k/

  1. select a series in the chart, observe that the visual state does not change
  2. zoom in on the series you clicked, you should see the state of the series has changed

Product version

Highcharts v6.0.7

Affected browser(s)

Google Chrome 65.0.3325.181, OSX High Sierra

@pawelfus

This comment has been minimized.

Contributor

pawelfus commented Mar 30, 2018

Hi @spacedarcy

Thanks for reporting this bug!

Workaround:
Redraw point after selection: http://jsfiddle.net/BlackLabel/aqupng7k/4/

    point: {
      events: {
        select: function() {
          this.selected = true;
          this.series.drawPoint(this, 'attr');
        },
        unselect: function() {
          this.selected = false;
          this.series.drawPoint(this, 'attr');
        }
      }
    },

@pawelfus pawelfus added the Bug label Mar 30, 2018

@spacedarcy

This comment has been minimized.

spacedarcy commented Mar 30, 2018

This workaround unblocks me. Thanks for the quick turnaround!

@pawelfus pawelfus self-assigned this Apr 6, 2018

pawelfus added a commit that referenced this issue Apr 6, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment