-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Small multiples in vis_type_xy plugin #86880
Small multiples in vis_type_xy plugin #86880
Conversation
const seriesDimensions = Array.isArray(series) || series === undefined ? series : [series]; | ||
|
||
return { | ||
x: getAspectsFromDimension(columns, x) ?? getEmptyAspect(), | ||
y: getAspectsFromDimension(columns, y) ?? [], | ||
z: z && z?.length > 0 ? getAspectsFromDimension(columns, z[0]) : undefined, | ||
series: getAspectsFromDimension(columns, seriesDimensions), | ||
splitColumn: | ||
splitColumn && splitColumn?.length > 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.
nit: splitColumn && splitColumn?.length > 0
=== splitColumn?.length
? getAspectsFromDimension(columns, splitColumn[0]) | ||
: undefined, | ||
splitRow: | ||
splitRow && splitRow?.length > 0 ? getAspectsFromDimension(columns, splitRow[0]) : undefined, |
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.
nit: splitRow && splitRow?.length > 0
-> splitRow?.length
@elasticmachine merge upstream |
@nickofthyme please review that. Do you have any concerns around that? |
I think I solved the issue with the intervals being different between the two implementations. See this pr for details DianaDerevyankina#1. I am looking to see how we could increase the scaled interval based on the number of vertical split chart panels. I also noticed that if the interval is small enough where the scale value is used in the es query, the click filter is using the user-defined interval value. Happy to discuss it tomorrow. I will look into the issue with the terms aggregation. The other issue related to the multiple legend values is an issue that Marco is resolving on the elastic-charts side. |
Thanx @nickofthyme, @dziyanadzeraviankina one more thing. Now that the new palette service is integrated on the xy plugin, you should also check if it works correctly with the split chart (merged yesterday on master) |
# Conflicts: # src/plugins/vis_type_xy/public/components/split_chart_warning.tsx # src/plugins/vis_type_xy/public/vis_types/split_tooltip.tsx
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.
LGTM
@sulemanof about the multiple labels I had asked the same, check Nick's reply #86880 (comment), it seems that it should be fixed on es-charts side. |
@sulemanof, @stratoula is right the duplicated legend values are something we are working to fix now. As for the |
@elasticmachine merge upstream |
@elasticmachine merge upstream |
Pinging @elastic/kibana-app (Team:KibanaApp) |
@elasticmachine merge upstream |
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.
Code LGTM, checked locally in Chrome in Visualize & Dashboard applications, works fine 💞
⏳ Build in-progress, with failures
Failed CI StepsHistory
To update your PR or re-run it, just comment with: |
@elasticmachine merge upstream |
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.
LGTM, tested it locally on safari, works fine 🙂 thanx @dziyanadzeraviankina for the functional test!
💚 Build SucceededMetrics [docs]Module Count
Async chunks
Page load bundle
History
To update your PR or re-run it, just comment with: |
* Small multiples in vis_type_xy plugin * Fix tooltip and formatted split chart values * update advanced settings wording * Remove React import in files with no JSX and change the extension to .ts * Simplify conditions * fix bar interval on split charts in vislib * Fix charts not splitting for terms boolean fields * fix filtering for small multiples * Change tests interval values from 100 to 1000000 * Revert "Change tests interval values from 100 to 1000000" This reverts commit 92f9d1b. * Fix tests for interval issue in vislib (cherry picked from commit ef45b63) * Revert axis_scale changes related to interval * Enable _line_chart_split_chart test for new charts library * Move chart splitter id to const Co-authored-by: nickofthyme <[email protected]> Co-authored-by: Kibana Machine <[email protected]>
* Small multiples in vis_type_xy plugin * Fix tooltip and formatted split chart values * update advanced settings wording * Remove React import in files with no JSX and change the extension to .ts * Simplify conditions * fix bar interval on split charts in vislib * Fix charts not splitting for terms boolean fields * fix filtering for small multiples * Change tests interval values from 100 to 1000000 * Revert "Change tests interval values from 100 to 1000000" This reverts commit 92f9d1b. * Fix tests for interval issue in vislib (cherry picked from commit ef45b63) * Revert axis_scale changes related to interval * Enable _line_chart_split_chart test for new charts library * Move chart splitter id to const Co-authored-by: nickofthyme <[email protected]> Co-authored-by: Kibana Machine <[email protected]> Co-authored-by: nickofthyme <[email protected]> Co-authored-by: Kibana Machine <[email protected]>
Closes #82496
Summary
Added split chart aggregation support in visualize for newChartUi
(before)
Split chart
option and removed the tooltip(before)
(before)
(after)
Checklist
For maintainers