Skip to content

Non-empty options.markers.discrete Array causes invisible tooltip marker in line chart #3475

@mouxdev

Description

@mouxdev

Description

Using the options.markers.discrete Array to stylize only certain markers in a chart causes the tooltip marker to disappear

Steps to Reproduce

  1. Create a chart using the standard options from the documentation and add discrete markers
{
    chart: {
      type: 'line'
    },
    series: [{
      name: 'sales',
      data: [30,40,35,50,49,60,70,91,125]
    }],
    xaxis: {
      categories: [1991,1992,1993,1994,1995,1996,1997, 1998,1999]
    },
    markers: {
        discrete: [
            {
                seriesIndex: 0,
                dataPointIndex: 3,
                fillColor: "#000000",
                size: 5
            }
        ]
    }
  }

Expected Behavior

The chart reacts to hovering by showing a tooltip along with a marker indicating which datapoint is being focused on right now on the line (first screenshot)

Actual Behavior

The chart reacts to hovering by showing only the tooltip (second screenshot)

Screenshots


Reproduction Link

Link to codepen reproducing this error

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions