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

If a series is selected inside legend area, selected series must have priority in mouse events #33

Closed
youjung-hong opened this issue Feb 5, 2018 · 1 comment

Comments

@youjung-hong
Copy link
Contributor

Version

v2.15.0

Development Environment

Chrome, OSX

Current Behavior

2018-02-05 5 32 15
Series is rendered in order to series index.
priority of 크리스마스, the 0 index is higher than 달력, the 1 index.

As two series has same data 0, we could only show tooltip of 크리스마스.
However, when 달력 is selected inside legend area. It should show tooltip of 달력.
Because selection means 달력 series will only be activated.

var container = document.getElementById('chart-area');
var data = {
       categories: ['2018.01.25'],
    series: [
          {
            name: '크리스마스',
            data: [0]
        },
        {
            name: '달력',
            data: [0]
        }
    ]
};
var options = {
    chart: {
        width: 400,
        height: 300,
        title: '날짜별 검색량'
    },
    series: {
        showDot: true
    }
};
var chart = tui.chart.lineChart(container, data, options);

Expected Behavior

When 달력 is selected inside legend area. It should show tooltip of 달력.

youjung-hong pushed a commit that referenced this issue Feb 13, 2018
* feat: change selected legend z-index (resolves: #33)

* refactor: change methods to reset series orders
@youjung-hong
Copy link
Contributor Author

resolved at v2.16.0

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

No branches or pull requests

1 participant