Skip to content

[Bug] bar chart deploy markLine ,yAxis is 0.005,markLine don't show, #21486

@th8664484

Description

@th8664484

Version

6.0.0

Link to Minimal Reproduction

https://echarts.apache.org/examples/zh/editor.html?c=bar-simple&theme=dark&code=yy8oyczPU7Ct5uVSAAKlCseKzGIlKwUoHyxWUlmQChRSSk4sSU3PL6pU0kGSTEksSQRKRhvomeoY6hjFQuVqobRSJR4DyxJzSlNRTMvNzANK6BroGZihCCdWAIXRRTPzSlKLgGZApAyM0K0uTi3KTAXZHY3QhOQMsJq8xFywU55t7X7Z3v-0YQ-yc1Acm5RYhCGH8LyBgaEOxBFgNiwYkHxQlO2TmQcyCc0JKAZhSmFxNFYPPNnR9XLmBHQXIgM8hsAiCeh2UzwmKOUAfRBcUpmDwxsoapPzc_KLQC5TTkszAQJ8TqvFLgWLSfLCo5tAeMB9DUpug8rbmMLo6QmSvitzk_JBqV8pLx-YslBVIBkCZcbyctUCAA&enc=deflate

Steps to Reproduce

Image `option ={ "xAxis": { "type": "category", "data": [0.5,1,2], }, "yAxis": { "type": "value", "min": -0.006, "max": 0.006, "interval": 0.002, }, "series": [ { "name": "测量值", "type": "bar", "data": [0.001,0.002,0.001], "markLine": { "data": [ { "name": "上限",
                    "yAxis": 0.005,
                    "lineStyle": {
                        "color": "#ff4444",
                    }
                },
                {
                    "name": "下限",
                    "yAxis": -0.005,
                    "lineStyle": {
                        "color": "#ff4444",
                    }
                }
            ],
            "symbol": "none"
        }
    }
]

}`

Image

`option ={
"xAxis": {
"type": "category",
"data": [0.5,1,2],
},
"yAxis": {
"type": "value",
"min": -0.06,
"max": 0.06,
"interval": 0.002,
},
"series": [
{
"name": "测量值",
"type": "bar",
"data": [0.001,0.002,0.001],
"markLine": {
"data": [
{
"name": "上限",

                    "yAxis": 0.005,
                    "lineStyle": {
                        "color": "#ff4444",
                    }
                },
                {
                    "name": "下限",
                    "yAxis": -0.005,
                    "lineStyle": {
                        "color": "#ff4444",
                    }
                }
            ],
            "symbol": "none"
        }
    }
]

}`

Image

`option ={
"xAxis": {
"type": "category",
"data": [0.5,1,2],
},
"yAxis": {
"type": "value",
"min": -0.06,
"max": 0.06,
"interval": 0.002,
},
"series": [
{
"name": "测量值",
"type": "bar",
"data": [0.001,0.002,0.001],
"markLine": {
"data": [
{
"name": "上限",

                    "yAxis": 0.05,
                    "lineStyle": {
                        "color": "#ff4444",
                    }
                },
                {
                    "name": "下限",
                    "yAxis": -0.05,
                    "lineStyle": {
                        "color": "#ff4444",
                    }
                }
            ],
            "symbol": "none"
        }
    }
]

}`

Current Behavior

Doesn't yAxis in markLine support 3 decimal places?

Expected Behavior

Doesn't yAxis in markLine support 3 decimal places?

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugenThis issue is in EnglishpendingWe are not sure about whether this is a bug/new feature.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions