[XY] Defaults the point size to 1 and corrects the vislib migrations#118994
[XY] Defaults the point size to 1 and corrects the vislib migrations#118994stratoula merged 12 commits intoelastic:mainfrom
Conversation
|
Pinging @elastic/kibana-vis-editors @elastic/kibana-vis-editors-external (Team:VisEditors) |
|
@markov00 how do you feel about this change?
|
|
@elasticmachine merge upstream |
@stratoula @flash1293 Lens seems to hide the dots if I'm not wrong, or it was like that until 7.16.0. Was that changed in 8.0? Why we are adding the linear fitting function? was that the default behaviour pre-elastic-charts? |
|
@elasticmachine merge upstream |
|
@markov00 about the linear. We did this change due to this sdh https://github.com/elastic/sdh-kibana/issues/2284. There is no fitting function that does exactly what vislib did. Until now, we were migrating them to the zero but this is not the best option for the customers. We thought that maybe the linear is the best approach here. I don't have a strong opinion tbh. If we could have the same behavior as the vislib, this would be the best. About the dots. This is true, Lens doesn't have any dots. I just decided to display the dots but with size 1 because it is closer to Lens and because so far we were displaying the dots with size 3 so maybe if we hide them, it will be a bigger change for the users. Again, I don't have a strong opinion. I could also hide them. What do you think is the best approach for these two issues? |
|
@elasticmachine merge upstream |
|
@elasticmachine merge upstream |
|
@elasticmachine merge upstream |
Linear is fine, we merged this few days ago elastic/elastic-charts#1505 to allow styling linear interpolation as it was a the original line
Ok, if we just migrate old vislib saved viz to new ech version with dotsize of 1 I'm fine. |
|
@elasticmachine merge upstream |
markov00
left a comment
There was a problem hiding this comment.
Code review only: looks good to me, probably you need to fix one the condition I've commented on.
src/plugins/visualizations/server/migrations/visualization_saved_object_migrations.ts
Show resolved
Hide resolved
src/plugins/visualizations/server/migrations/visualization_saved_object_migrations.test.ts
Outdated
Show resolved
Hide resolved
…ed_object_migrations.test.ts Co-authored-by: Marco Vettorello <vettorello.marco@gmail.com>
…ed_object_migrations.ts Co-authored-by: Marco Vettorello <vettorello.marco@gmail.com>
💚 Build Succeeded
Metrics [docs]
History
To update your PR or re-run it, just comment with: |
…lastic#118994) * [XY] Changes the default point size to 1 and corrects the vislib migrations * Fixes the unit test * Change the migration function to default te fitting function to linear * Update src/plugins/visualizations/server/migrations/visualization_saved_object_migrations.test.ts Co-authored-by: Marco Vettorello <vettorello.marco@gmail.com> * Update src/plugins/visualizations/server/migrations/visualization_saved_object_migrations.ts Co-authored-by: Marco Vettorello <vettorello.marco@gmail.com> * Fixes on PR review Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Marco Vettorello <vettorello.marco@gmail.com>
…lastic#118994) * [XY] Changes the default point size to 1 and corrects the vislib migrations * Fixes the unit test * Change the migration function to default te fitting function to linear * Update src/plugins/visualizations/server/migrations/visualization_saved_object_migrations.test.ts Co-authored-by: Marco Vettorello <vettorello.marco@gmail.com> * Update src/plugins/visualizations/server/migrations/visualization_saved_object_migrations.ts Co-authored-by: Marco Vettorello <vettorello.marco@gmail.com> * Fixes on PR review Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Marco Vettorello <vettorello.marco@gmail.com>
…118994) (#120717) * [XY] Changes the default point size to 1 and corrects the vislib migrations * Fixes the unit test * Change the migration function to default te fitting function to linear * Update src/plugins/visualizations/server/migrations/visualization_saved_object_migrations.test.ts Co-authored-by: Marco Vettorello <vettorello.marco@gmail.com> * Update src/plugins/visualizations/server/migrations/visualization_saved_object_migrations.ts Co-authored-by: Marco Vettorello <vettorello.marco@gmail.com> * Fixes on PR review Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Marco Vettorello <vettorello.marco@gmail.com> Co-authored-by: Stratoula Kalafateli <efstratia.kalafateli@elastic.co> Co-authored-by: Marco Vettorello <vettorello.marco@gmail.com>
…118994) (#120718) * [XY] Changes the default point size to 1 and corrects the vislib migrations * Fixes the unit test * Change the migration function to default te fitting function to linear * Update src/plugins/visualizations/server/migrations/visualization_saved_object_migrations.test.ts Co-authored-by: Marco Vettorello <vettorello.marco@gmail.com> * Update src/plugins/visualizations/server/migrations/visualization_saved_object_migrations.ts Co-authored-by: Marco Vettorello <vettorello.marco@gmail.com> * Fixes on PR review Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Marco Vettorello <vettorello.marco@gmail.com> Co-authored-by: Stratoula Kalafateli <efstratia.kalafateli@elastic.co> Co-authored-by: Marco Vettorello <vettorello.marco@gmail.com>
…lastic#118994) * [XY] Changes the default point size to 1 and corrects the vislib migrations * Fixes the unit test * Change the migration function to default te fitting function to linear * Update src/plugins/visualizations/server/migrations/visualization_saved_object_migrations.test.ts Co-authored-by: Marco Vettorello <vettorello.marco@gmail.com> * Update src/plugins/visualizations/server/migrations/visualization_saved_object_migrations.ts Co-authored-by: Marco Vettorello <vettorello.marco@gmail.com> * Fixes on PR review Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Marco Vettorello <vettorello.marco@gmail.com>
Summary
This PR introduces the following changes:
Before

Now

ciclesRadiusattribute to 1 for all these visualizations that don't have the attribute (these will be visualizations made by vislib). All the visualizations that have been created with the new implementation have already this attribute and we don't change them.How to test
Here is a screenshot with a 7.11 area imported to this branch. The point size is set to 1

Checklist