Skip to content

Improve chart edit rendering #14288

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
3 tasks done
zt8989 opened this issue Mar 5, 2025 · 7 comments
Closed
3 tasks done

Improve chart edit rendering #14288

zt8989 opened this issue Mar 5, 2025 · 7 comments
Assignees
Milestone

Comments

@zt8989
Copy link

zt8989 commented Mar 5, 2025

将折线图更新为饼状图,饼状图异常

Is there an existing issue for this?

  • I have searched the existing issues

Can the issue be reproduced with the default theme (daylight/midnight)?

  • I was able to reproduce the issue with the default theme

Could the issue be due to extensions?

  • I've ruled out the possibility that the extension is causing the problem.

Describe the problem

  1. 添加/chart, 录入折线图
  2. 修改为饼状图,饼状图异常,展示了折线图的x轴

折线图

{
  "xAxis": {
    "type": "category",
    "boundaryGap": false,
    "data": [
      "Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"
    ]
  },
  "yAxis": {
    "type": "value"
  },
  "series": [
    { 
        "data": [ 820, 932, 901, 934, 1290, 1330, 1320 ],
      "type": "line",
      "areaStyle": {}
    }
  ]
}

饼状图

{
      "title": {
        "text": "思源功能模块分布",
        "left": "center"
      },
      "tooltip": {
        "trigger": "item",
        "formatter": "{a} <br/>{b}: {c} ({d}%)"
      },
      "legend": {
        "orient": "vertical",
        "left": "left",
        "data": ["笔记编辑", "知识图谱", "插件扩展", "社区支持"]
      },
      "series": [
        {
          "name": "功能模块",
          "type": "pie",
          "radius": "55%",
          "center": ["50%", "60%"],
          "data": [
            { "value": 40, "name": "笔记编辑" },
            { "value": 30, "name": "知识图谱" },
            { "value": 20, "name": "插件扩展" },
            { "value": 10, "name": "社区支持" }
          ],
          "emphasis": {
            "itemStyle": {
              "shadowBlur": 10,
              "shadowOffsetX": 0,
              "shadowColor": "rgba(0, 0, 0, 0.5)"
            }
          }
        }
      ]
    }

Expected result

仅展示饼状图的图案

Screenshot or screen recording presentation

Image
Image

Version environment

- Version: 3.1.23
- Operating System: Macos 4.2.1 (23C71)
- Browser (if used):

Log file

More information

No response

@zt8989 zt8989 changed the title Please enter the title of the bug report 将折线图更新为饼状图,饼状图异常 Mar 5, 2025
@TCOTC
Copy link
Contributor

TCOTC commented Mar 5, 2025

我重现不了,录屏看看?

@88250
Copy link
Member

88250 commented Mar 5, 2025

我这里也无法重现,暂时关闭了,欢迎楼主随时录屏补充操作步骤,谢谢。

@88250 88250 closed this as completed Mar 5, 2025
@shuojie819
Copy link

我可以重现哎

PixPin_2025-03-05_18-18-15.mp4

@TCOTC
Copy link
Contributor

TCOTC commented Mar 5, 2025

哦!确实有这个问题,我看上面的截图理解成折线图和饼图会一起显示了

@zt8989
Copy link
Author

zt8989 commented Mar 6, 2025

复现到问题了,是不是要 open issue

@88250
Copy link
Member

88250 commented Mar 6, 2025

收到,确实可以重现了。

@88250 88250 reopened this Mar 6, 2025
Vanessa219 added a commit that referenced this issue Mar 6, 2025
Vanessa219 added a commit that referenced this issue Mar 6, 2025
@Vanessa219
Copy link
Member

Vanessa219 commented Mar 6, 2025

3.1.25

@88250 88250 changed the title 将折线图更新为饼状图,饼状图异常 Improve chart rendering Mar 6, 2025
@88250 88250 added this to the 3.1.25 milestone Mar 6, 2025
@88250 88250 changed the title Improve chart rendering Improve chart edit rendering Mar 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants