You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "jackhickson (via GitHub)" <gi...@apache.org> on 2025/11/23 15:49:27 UTC
[PR] fix(parallel): calculate axis extent after processing series extents [echarts]
jackhickson opened a new pull request, #21387:
URL: https://github.com/apache/echarts/pull/21387
## Brief Information
This pull request is in the type of:
- [x ] bug fixing
- [ ] new feature
- [ ] others
### What does this PR do?
Calculate the correct axis extent for parallel axes when any series after the first has a larger value than the first series.
[demo](https://echarts.apache.org/examples/en/editor.html?c=parallel-simple&theme=dark&code=rVCxasMwFNzzFbdpESV2S2lcOqRQOhTaQoYOwYOwHolAtoyi0pjgf--TZRuTOYPPcO_07u65NhjX4AWXFdAqr6wluz2bU4E9M8AF2tQF1hKNqqmA-PamIoFeLsfZPP6kgB8yh2O41uSzZlu732YxHxBJdZ84TNpd5TyJiQxdG8lKBTo43828VkFxYvF2rogb8HIJ8e6cjv-vj4ivSotykPeMZXx5Im8oNk0JxuXTFcbl1jS0C53l0RT0z-hwLPCQtiXZmGBU7LP8brORyNZ8uCdunsIMrmzO2Mvbm-ZslkV45G9xi1R7cC1X_fM_&enc=deflate)
`option = {
parallelAxis: [
{ dim: 0, name: 'Price' },
{ dim: 1, name: 'Net Weight' },
{ dim: 2, name: 'Amount' },
{
dim: 3,
name: 'Score',
type: 'category',
data: ['Excellent', 'Good', 'OK', 'Bad']
}
],
series: [{
type: 'parallel',
lineStyle: {
width: 4
},
data: [
[12.99, 100, 82, 'Good'],
]
},{
type: 'parallel',
lineStyle: {
width: 4
},
data: [
[20, 120, 60, 'Excellent']
]
}]
};`
### Fixed issues
- #18082
## Details
### Before: What was the problem?
parallel lines are being drawn off the ends of the axes when a value in a series after the first has a larger value
### After: How does it behave after the fixing?
The axis is now being calculated correctly
## Document Info
One of the following should be checked.
- [ x] This PR doesn't relate to document changes
- [ ] The document should be updated later
- [ ] The document changes have been made in apache/echarts-doc#xxx
## Misc
### Security Checking
- [ ] This PR uses security-sensitive Web APIs.
### ZRender Changes
- [ ] This PR depends on ZRender changes (ecomfe/zrender#xxx).
### Related test cases or examples to use the new APIs
N.A.
### Merging options
- [ ] Please squash the commits into a single one when merging.
### Other information
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
Re: [PR] fix(parallel): fix incorrect axis extent when any subsequent series has a larger value than the first [echarts]
Posted by "echarts-bot[bot] (via GitHub)" <gi...@apache.org>.
echarts-bot[bot] commented on PR #21387:
URL: https://github.com/apache/echarts/pull/21387#issuecomment-3659466087
Congratulations! Your PR has been merged. Thanks for your contribution! 👍
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
Re: [PR] fix(parallel): calculate axis extent after processing series extents [echarts]
Posted by "echarts-bot[bot] (via GitHub)" <gi...@apache.org>.
echarts-bot[bot] commented on PR #21387:
URL: https://github.com/apache/echarts/pull/21387#issuecomment-3568097007
Thanks for your contribution!
The community will review it ASAP. In the meanwhile, please checkout [the coding standard](https://echarts.apache.org/en/coding-standard.html) and Wiki about [How to make a pull request](https://github.com/apache/echarts/wiki/How-to-make-a-pull-request).
Please **DO NOT** commit the files in [dist](https://github.com/apache/echarts/tree/master/dist), [i18n](https://github.com/apache/echarts/tree/master/i18n), and [ssr/client/dist](https://github.com/apache/echarts/tree/master/ssr/client/dist) folders in a non-release pull request. These folders are for release use only.
⚠️ MISSING DOCUMENT INFO: Please make sure one of the document options are checked in this PR's description. Search "Document Info" in the description of this PR. This should be done either by the author or the reviewers of the PR.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
Re: [PR] fix(parallel): fix incorrect axis extent when any subsequent series has a larger value than the first [echarts]
Posted by "plainheart (via GitHub)" <gi...@apache.org>.
plainheart merged PR #21387:
URL: https://github.com/apache/echarts/pull/21387
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
Re: [PR] fix(parallel): calculate axis extent after processing series extents [echarts]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #21387:
URL: https://github.com/apache/echarts/pull/21387#issuecomment-3573277195
The changes brought by this PR can be previewed at: https://echarts.apache.org/examples/editor?version=PR-21387@936e870
<!-- ECHARTS_PR_PREVIEW -->
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org