Commit 8687048c authored by XieZhiXiong's avatar XieZhiXiong

fix: 修复指针不显示的问题

parent 9c3e9605
......@@ -4,14 +4,14 @@ import {
Coordinate,
Point,
Annotation,
registerShape,
} from 'bizcharts';
// import Point from 'bizcharts/lib/geometry/Point';
// import { Annotation } from 'bizcharts/lib';
import { registerShape } from '@antv/g2';
import React from 'react';
import autoHeight from '../autoHeight';
import { getIntl } from 'umi';
const intl = getIntl();
export interface GaugeProps {
title: React.ReactText;
color?: string;
......@@ -73,7 +73,7 @@ registerShape('point', 'pointer', {
attrs: {
x: center.x,
y: center.y,
r: 6,
r: 4,
stroke: cfg.color,
lineWidth: 3,
fill: '#fff',
......@@ -103,6 +103,7 @@ const Gauge: React.FC<GaugeProps> = (props) => {
nice: true,
},
};
const data = [{ value: percent / 10 }];
const textStyle: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment