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

pieChart 생성 후 tooptip #815

Open
baeda0707 opened this issue Sep 3, 2024 · 0 comments
Open

pieChart 생성 후 tooptip #815

baeda0707 opened this issue Sep 3, 2024 · 0 comments

Comments

@baeda0707
Copy link

baeda0707 commented Sep 3, 2024

pieChart에 0인 데이터가 있으면 tooltip이 이상하게 표기되는 것 같습니다.
데이터는 실수치를 입력하겨 %를 입력하지 않았습니다.

demo를 사용하여 test 했습니다.
( https://nhn.github.io/tui.chart/latest/tutorial-example09-01-pie-chart-basic)

pie_chart

[ sample data ]

  const el = document.getElementById('chart-area');
  const data = {
    categories: ['Browser'],
    series: [
      {
        name: 'Chrome',
        data: 0,
      },
      {
        name: 'IE',
        data: 0,
      },
      {
        name: 'Firefox',
        data: 1,
      },
      {
        name: 'Safari',
        data: 0,
      },
      {
        name: 'Opera',
        data: 0,
      },

    ],
  };
  const options = {
    chart: { title: 'Usage share of web browsers', width: 600, height: 400 },
  };
  const chart = toastui.Chart.pieChart({ el, data, options });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant