-
Notifications
You must be signed in to change notification settings - Fork 19.6k
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
feat: matrix coordinate #19807
base: next
Are you sure you want to change the base?
feat: matrix coordinate #19807
Conversation
Thanks for your contribution! The pull request is marked to be |
Document changes are required in this PR. Please also make a PR to apache/echarts-doc for document changes and update the issue id in the PR description. When the doc PR is merged, the maintainers will remove the |
The changes brought by this PR can be previewed at: https://echarts.apache.org/examples/editor?version=PR-19807@31295e1 |
doc(matrix): add doc for apache/echarts#19807
} | ||
|
||
// Outer border | ||
const backgroundStyle = matrixModel |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These borders may overlap and cause a darker border color. I'm not sure if we should provide a similar ability like the CSS table property border-collapse
. It looks not easy to implement that feature.
And the chart seems rendering unexpectedly if I set the width of both the outer border and inner border to 0
.
backgroundStyle: {
borderWidth: 0
},
innerBackgroundStyle: {
borderWidth: 0
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The border won't be darker unless the opacity of borderColors are not 1. I personally think providing a border-collapse
like mechanism is over-kill because then, we should also implement other features like border widths and colors being different values at four sides. This should bring much work to implement it robustly. The reason why I choose to render rectangles with background and border is that it would be more difficult to think which option controls which border line.
The image you provided is as expected. You should add x.itemStyle.borderWidth: 0
and y.itemStyle.borderWidth: 0
if you want to remove those rest borders.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The package.json may need to be updated as well. 🤔
Line 172 in ab3efd3
"./lib/component/aria": "./lib/component/aria.js", |
Brief Information
This pull request is in the type of:
What does this PR do?
This PR introduces a new coordinate called "Matrix".
Multiple series like heatmap, pie, graph, custom can be used along with it.
More applications:
Fixed issues
Details
Before: What was the problem?
After: How does it behave after the fixing?
Document Info
One of the following should be checked.
Misc
ZRender Changes
Related test cases or examples to use the new APIs
N.A.
Others
Merging options
Other information