Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-platform
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
shenshaokai
jinfa-platform
Commits
8687048c
Commit
8687048c
authored
Jan 11, 2022
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修复指针不显示的问题
parent
9c3e9605
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
index.tsx
src/components/Charts/Gauge/index.tsx
+5
-4
No files found.
src/components/Charts/Gauge/index.tsx
View file @
8687048c
...
@@ -4,14 +4,14 @@ import {
...
@@ -4,14 +4,14 @@ import {
Coordinate
,
Coordinate
,
Point
,
Point
,
Annotation
,
Annotation
,
registerShape
,
}
from
'bizcharts'
;
}
from
'bizcharts'
;
// import Point from 'bizcharts/lib/geometry/Point';
// import { Annotation } from 'bizcharts/lib';
import
{
registerShape
}
from
'@antv/g2'
;
import
React
from
'react'
;
import
React
from
'react'
;
import
autoHeight
from
'../autoHeight'
;
import
autoHeight
from
'../autoHeight'
;
import
{
getIntl
}
from
'umi'
;
import
{
getIntl
}
from
'umi'
;
const
intl
=
getIntl
();
const
intl
=
getIntl
();
export
interface
GaugeProps
{
export
interface
GaugeProps
{
title
:
React
.
ReactText
;
title
:
React
.
ReactText
;
color
?:
string
;
color
?:
string
;
...
@@ -73,7 +73,7 @@ registerShape('point', 'pointer', {
...
@@ -73,7 +73,7 @@ registerShape('point', 'pointer', {
attrs
:
{
attrs
:
{
x
:
center
.
x
,
x
:
center
.
x
,
y
:
center
.
y
,
y
:
center
.
y
,
r
:
6
,
r
:
4
,
stroke
:
cfg
.
color
,
stroke
:
cfg
.
color
,
lineWidth
:
3
,
lineWidth
:
3
,
fill
:
'#fff'
,
fill
:
'#fff'
,
...
@@ -103,6 +103,7 @@ const Gauge: React.FC<GaugeProps> = (props) => {
...
@@ -103,6 +103,7 @@ const Gauge: React.FC<GaugeProps> = (props) => {
nice
:
true
,
nice
:
true
,
},
},
};
};
const
data
=
[{
value
:
percent
/
10
}];
const
data
=
[{
value
:
percent
/
10
}];
const
textStyle
:
{
const
textStyle
:
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment