Comments (1)
import React from 'react';
import ReactDOM from 'react-dom';
import { Bullet } from '@ant-design/plots';
const DemoBullet = () => {
const data = [
{
title: '5🌟',
ranges: [100, 80],
measures: [50, 40],
targets: [85],
},
{
title: '4🌟',
ranges: [100, 10],
measures: [12, 40],
targets: [40, 70],
},
{
title: '3🌟',
ranges: [100],
measures: [20],
targets: [22],
},
{
title: '0-2🌟',
ranges: [100],
measures: [30],
targets: [10],
},
];
const color = {
ranges: ['#FFbcb8', '#FFe0b0', '#bfeec8'],
measures: ['#5B8FF9', '#61DDAA'],
targets: ['#f0f'],
};
const config = {
data,
color
};
return <Bullet {...config} />;
};
ReactDOM.render(, document.getElementById('container'));
如何关闭图例
from g2plot.
Related Issues (20)
- 🤔 [QUESTION] 请问mix有多个折线图如何配置label HOT 1
- 🐛 [BUG] 官网很多示例点击跳转都是404
- 🤔 [QUESTION] 我在使用CirclePacking 数据量比较大的时候我想拥有放大缩小功能 我使用了svg 进行渲染 并且使用D3的zoom来进行实现
- 🤔 [QUESTION]G2 5.0有计划支持么 HOT 1
- 🐛 [BUG] 双轴图中 又折线图跟柱状图, 如果添加了scrollbar, 那么柱状图就变形了, 宽度只有之前得一半, G2是没这个问题得,只有g2plot会又这个问题
- 柱状图数据为null, 会影响旁边柱子的tooltip
- 漏斗图渲染🐛 [BUG]
- autoFit属性更新失效🐛 [BUG]
- 🥰 [FEATURE] tooltip显示名称后面的冒号隐藏
- 🐛 [BUG] legend 的显示的数据条数不正确
- 🐛 [BUG]水波图(初始化percent为0),changeData后,界面percent值更新,但波浪不显示 HOT 1
- 🐛 [BUG]混合图表无法使用,codesandbox示例里面也无法渲染,点击进入'@antv/g2plot'里面也没有该方法
- 🐛 [BUG] DualAxes multilpe lines: tooltip crosshairs is wrong。
- 🐛 [BUG] Heatmap密度图展示问题,寻求解决方案
- 🐛 [BUG] Treemap cannot read properties of undefined (reading replace)
- 🤔 [QUESTION] 这项目还继续维护吗
- 🤔 [QUESTION] 图表联动问题反馈 HOT 2
- 🐛 [BUG]堆叠图存在点位和坐标不符 HOT 1
- 🐛 [BUG]折线图设置好y轴的min,max后,渲染的piont被坐标轴覆盖
- 🤔 [QUESTION] 堆叠折线双轴图无法设置y轴title么?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from g2plot.