Skip to content
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

[Bug] Overflow of the pictorial elements when y-axis is set to a min. value other then 0. #19173

Closed
battlebeast01 opened this issue Oct 6, 2023 · 5 comments
Labels
difficulty: easy Issues that can be fixed more easily than the average. en This issue is in English new-feature topic: pictorialBar

Comments

@battlebeast01
Copy link

battlebeast01 commented Oct 6, 2023

Version

5.2.2

Link to Minimal Reproduction

https://echarts.apache.org/examples/en/editor.html?c=doc-example%2FpictorialBar-symbolSize&reset=1&edit=1&code=G4QwTgBGD2DGDWBTALhAvAKAhA5ABxGQAsAuAejIFkBaAJgBZ6A6AZgE4A2AGkdbbdgAGLsMFN6AdjpM2LAIzT6tKRyYBWObVi0mADjltquprVpyuLEwrlqmEwWwtXqNuw4DOtiWzVc5rXRYuLx8uCVZaNQBhOhZw_V0LNiYObzpedm4M_nTmTJ48_gAvCBpaDjE483oxXWUhEWpLXX0XHTZ6Dia9VrljeQFBRTluMXLaamY1DlGUjkNVDQkiOXCOXXohcTlzfx9aERSJX2Y5QXpD1N9FgwbbWjYFZok_ftXu3Re-1lWACToKqwJHISmU1MwJPRfN8fHJYC4ZI4hpYKkF_KkuijBEFLJDNsIdIJ1n4UponHinKjyYxYHsWiJKYIJuiJNwsRNcYwAMp0NQ6Y5fYyw3kQqGvGQaUG82x88w6Uy6YDUWwOXQrcRM4DMTgCdHYklmIK2DrmFXzMIyQS7HRqIgucKCaIA_xxILhV288IMXyWNRqXTS9RmLjy2i6IplDgql7ZQaNRYSKQQszUBNSOTMXScITKmRKYJ2DrUd2RAveejFiJqdyVWQW-j0yxmXZeQS6GLlGXsHj-TqGTtMQQxwr9qOD4d8NhSyI6FhZWw2AA2CNWXX8pgAMiK7FmeLpl73PpNB_MD4ODCGmDsOGeGwHmuUiMYiRItzPWPOr2oijgANwYaA8GQABLaAADt0AgABvL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BwIleiiUNEmy0aTCOgl9EMyMVtWgghzHQysTY1AtVfFOICUg9xct353y4Pk1S9sT5hNQJbCJUSVroXiS3FCdNnKIATknSSKcxLpzIVnLyMSEY4GaYkiAuj266PyR07u3Te69NQhMlJxjJmZOGfkgA6p_UOZdf6IFsQAx2RFQY-KyV4-ei9RbLwgKvdeyMt473yXvRcB8j4FSdnpM-fMIJC1vt4--_N8mBOQSU-poVs60X_PVSqUQbFgGQEweKyAADySiwLiOOgjSaWCiAiRQoBMRTBzJ-SYIQpgsksHiJ4XwjhEBxGdUQLJAAcq9RARE8rMNMtI_O2AVLIGxmACCPKeKQNbpNaA2M8C-NCngaA7hOocJQrJGFcKEXwTAsADSyB_LQAAApVMXOInAk1ppKVQhyxApkiL2FopIxucFcWLnYppI2ntsDCrRqK96BVTKKXtaFeam0cB3I0tKzGYlsG4AaowpiYa0buDOkxOqbrsA-s2sw9wrDFFiPcOajilraJMAAFbQDykagAOmBHAdqQ5o0qYuYqxEcJ4XOJElNYDa08VhtzOQnbRo6yoaFOhCNDKSLKuA_qwEmL5VrvXEasFJH_nKkiwK8kJXICpbw0StKpEyO3kIhRaL3BSKhRAZVsLwAIvAkayVSNHZKUEexYRmbREcPcIujAxluaCEXUAA

Steps to Reproduce

  1. create a bar chart with pictorial elements
  2. set yAxis.min to a certain number other then 0 (in the given example to 10).
  3. series-pictorialBar

Current Behavior

when i set yAxis.min to a certain number other then 0, the pictorial elements overflow the axis.

Expected Behavior

there should never be an overflow of pictorial elements, they should always start from the set yAxis.min value.

Environment

- OS:Linux Ubuntu 22.04
- Browser:Chrome 96.0.4664.55
- Framework:Vue@2.6.14

Any additional comments?

I especially would like to fix this issue while keeping the pictorials repetitive.

@echarts-bot echarts-bot bot added en This issue is in English pending We are not sure about whether this is a bug/new feature. labels Oct 6, 2023
@battlebeast01 battlebeast01 changed the title [Bug] Overflow of the pictorial elements when y-axis is set to a min. calue other then 0. [Bug] Overflow of the pictorial elements when y-axis is set to a min. value other then 0. Oct 6, 2023
@Ovilia Ovilia added difficulty: easy Issues that can be fixed more easily than the average. and removed pending We are not sure about whether this is a bug/new feature. labels Oct 7, 2023
@echarts-bot
Copy link

echarts-bot bot commented Oct 7, 2023

This issue is labeled with difficulty: easy.
@battlebeast01 Would you like to debug it by yourself? This is a quicker way to get your problem fixed. Or you may wait for the community to fix.

Please have a look at How to debug ECharts if you'd like to give a try. 🤓

@Ovilia Ovilia added this to the TBD milestone Oct 7, 2023
@Ovilia
Copy link
Contributor

Ovilia commented Oct 12, 2023

Just to clearify, like with bar series, when min value is set to be 5, a bar with value 15 will be rendered like this:
image

So should a pictorial bar. The shape should will be clipped.

@Ovilia
Copy link
Contributor

Ovilia commented Oct 12, 2023

BTW, if what you want is changing the position of the bars, you should use grid.bottom and grid.top to adjust, instead of using min value.

@Ovilia
Copy link
Contributor

Ovilia commented Oct 12, 2023

Since according to the document, there is no series-pictorialBar.clip, this should be a new feature instead of a bug.

@battlebeast01
Copy link
Author

Since according to the document, there is no series-pictorialBar.clip, this should be a new feature instead of a bug.

@Ovilia this is exactly what is needed.

@Ovilia Ovilia closed this as completed Jun 6, 2024
@Ovilia Ovilia removed this from the TBD milestone Jun 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
difficulty: easy Issues that can be fixed more easily than the average. en This issue is in English new-feature topic: pictorialBar
Projects
None yet
Development

No branches or pull requests

2 participants