Skip to content

Commit

Permalink
[optimize] update ECharts-JSX
Browse files Browse the repository at this point in the history
  • Loading branch information
TechQuery committed May 5, 2024
1 parent 3a159d1 commit 0f6306a
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 21 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"preview": "vitepress preview"
},
"dependencies": {
"echarts-jsx": "^1.1.1"
"echarts-jsx": "^1.2.0-rc.0"
},
"devDependencies": {
"@types/node": "^20.12.7",
Expand Down
17 changes: 12 additions & 5 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 15 additions & 15 deletions questionnaire.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,22 +70,22 @@ onMounted(() => {
<ec-legend top="center" right="0" />
<ec-tooltip trigger="item"/>
<ec-pie-chart
:radius="['40%', '70%']"
:avoidLabelOverlap="false"
:label="{ show: false, position: 'center' }"
:emphasis="{
label: {
show: true,
fontSize: 40,
fontWeight: 'bold'
radius='["40%", "70%"]'
avoidLabelOverlap="false"
label='{ "show": false, "position": "center" }'
emphasis='{
"label": {
"show": true,
"fontSize": 40,
"fontWeight": "bold"
}
}"
:labelLine="{ show: false }"
:data="[
{ value: 0.7337, name: '男' },
{ value: 0.2583, name: '女' },
{ value: 0.008, name: '其他' }
]"
}'
labelLine='{ "show": false }'
data='[
{ "value": 0.7337, "name": "男" },
{ "value": 0.2583, "name": "女" },
{ "value": 0.008, "name": "其他" }
]'
/>
</ec-svg-renderer>

Expand Down

1 comment on commit 0f6306a

@github-actions
Copy link

Choose a reason for hiding this comment

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

Deploy preview for 2023-china-open-source-report ready!

✅ Preview
https://2023-china-open-source-report-n7fbtsdkn-kaiyuanshes-projects.vercel.app

Built with commit 0f6306a.
This pull request is being automatically deployed with vercel-action

Please sign in to comment.