Skip to content

Tooltip label is incorrect on Bar chart when min is defined #3618

Closed

Description

@Jareechang

Expected Behavior

When min is defined, the first tooltip label should display the label at the minimum.

ex. when min is set to 'March', the tooltip should show 'March' as the label.

Current Behavior

currently, it displays data label two indexes down.

ex. when min is set to 'March', it displays 'May'.

Possible Solution

It seems the API slices the datasets into a subset when min or max is defined. Possible solution is to map the index of the parseVisibleItems method.

Steps to Reproduce (for bugs)

  1. Chart type 'bar'
  2. Set min on the chart
  3. Hover over the first bar

Environment

Activity

  1. Jareechang commented on Nov 17, 2016

    @Jareechang
    ContributorAuthor

    I am currently working on this one, @etimberg feel free to assign this to me.

  2. etimberg commented on Nov 17, 2016

    @etimberg
    Member

    ok, sounds good @Jareechang

  3. KoyoSE commented on Nov 29, 2016

    @KoyoSE
    Contributor

    #3620 and #3649 have fixed the same problem.
    I tried the test below.

    Build from the current latest code

    https://jsfiddle.net/T_SAiTO/jw29rrnq/
    Tool tip label of bar chart : NG
    Tool tip label of horizontal bar chart : OK

    Invalidated the change of #3620 from the above build.(only#3649)

    https://jsfiddle.net/T_SAiTO/vogqedw1/
    Tool tip label of bar chart : OK
    Tool tip label of horizontal bar chart : OK

    Invalidated the change of #3649 from the above build.(only#3620)

    https://jsfiddle.net/T_SAiTO/mnL7wmfj/
    Tool tip label of bar chart : OK
    Tool tip label of horizontal bar chart : NG

    Thank you for your consideration.

  4. etimberg commented on Nov 29, 2016

    @etimberg
    Member

    Sounds like we need to revert the second change.

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions