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

feat: add thresholds params in gauge mark #5021

Merged
merged 1 commit into from
May 15, 2023
Merged

Conversation

pepper-nice
Copy link
Contributor

示例

const chart = new Chart();

chart.options({
  type: 'gauge',
  data: {
    value: {
      target: 120,
      total: 400,
      name: 'score',
      thresholds: [100, 200, 400],
    },
  },
  scale: {
    color: {
      range: ['#F4664A', '#FAAD14', 'green'],
    },
  },
});

chart.render();
image

Copy link
Member

@pearmini pearmini left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

更新一下文档和案例,还有把其中一个案例隐藏掉:目前自定义 shape 的能力还没有透出。

Copy link
Member

@pearmini pearmini left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

更新一下文档和案例,还有把其中一个案例隐藏掉:目前自定义 shape 的能力还没有透出。

@pepper-nice pepper-nice merged commit c502d72 into v5 May 15, 2023
@pepper-nice pepper-nice deleted the feat/update-gauge-api branch May 15, 2023 06:31
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

Successfully merging this pull request may close these issues.

2 participants