Skip to content

Commit

Permalink
remove pie labels, update legend style in theme
Browse files Browse the repository at this point in the history
  • Loading branch information
theBstar committed Sep 18, 2024
1 parent cd88859 commit e1eb489
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/components/charts/Piechart/Piechart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export default function Piechart(props: PiechartProps) {
type: "pie",
radius: "60%",
data,
label: { show: false },
emphasis: {
itemStyle: {
shadowBlur: 10,
Expand Down
3 changes: 3 additions & 0 deletions src/components/charts/echartTheme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,9 @@ const echartTheme: EChartsOption = {
},
},
legend: {
type: "scroll",
orient: "horizontal",
left: "center",
textStyle: {
color: "#999999",
},
Expand Down

0 comments on commit e1eb489

Please sign in to comment.