kibana/docs
Stratoula Kalafateli 10dd00f6a9
[7.x] [Pie] New implementation of the vislib pie chart with es-charts (#83929) (#101292)
* [Pie] New implementation of the vislib pie chart with es-charts (#83929)

* es lint fix

* Add formatter on the buckets labels

* Config the new plugin, toggle tooltip

* Aff filtering on slice click

* minor fixes

* fix eslint error

* use legacy palette for now

* Add color picker to legend colors

* Fix ts error

* Add legend actions

* Fix bug on Color Picker and remove local state as it is unecessary

* Fix some bugs on colorPicker

* Add setting for the user to select between the legacy palette or the eui ones

* small enhancements, treat empty labels with (empty)

* Fix color picker bugs with multiple layers

* fixes on internationalization

* Create migration script for pie chart and legacy palette

* Add unit tests (wip) and a small refactoring

* Add unit tests and move some things to utils, useMemo and useCallback where it should

* Add jest config file

* Fix jest test

* fix api integration failure

* Fix to_ast_esaggs for new pie plugin

* Close legendColorPicker popover when user clicks outside

* Fix warning

* Remove getter/setters and refactor

* Remove kibanaUtils from pie plugin as it is not needed

* Add new values to the migration script

* Fix bug on not changing color for expty string

* remove from migration script as they don't need it

* Fix editor settings for old and new implementation

* fix uistate type

* Disable split chart for the new plugin for now

* Remove temp folder

* Move translations to the pie plugin

* Fix CI failures

* Add unit test for the editor config

* Types cleanup

* Fix types vol2

* Minor improvements

* Display data on the inspector

* Cleanup translations

* Add telemetry for new editor pie options

* Fix missing translation

* Use Eui component to detect click outside the color picker popover

* Retrieve color picker from editor and syncColors on dashboard

* Lazy load palette service

* Add the new plugin to ts references, fix tests, refactor

* Fix ci failure

* Move charts library switch to vislib plugin

* Remove cyclic dependencies

* Modify license headers

* Move charts library switch to visualizations plugin

* Fix i18n on the switch moved to visualizations plugin

* Update license

* Fix tests

* Fix bugs created by new charts version

* Fix the i18n switch problem

* Update the migration script

* Identify if colorIsOverwritten or not

* Small multiples, missing the click event

* Fixes the UX for small multiples part1

* Distinct colors per slice implementation

* Fix ts references problem

* Fix some small multiples bugs

* Add unit tests

* Fix ts ref problem

* Fix TS problems caused by es-charts new version

* Update the sample pie visualizations with the new eui palette

* Allows filtering by the small multiples value

* Apply sortPredicate on partition layers

* Fix vilib test

* Enable functional tests for new plugin

* Fix some functional tests

* Minor fix

* Fix functional tests

* Fix dashboard tests

* Fix all dashboard tests

* Apply some improvements

* Explicit params instead of visConfig Json

* Fix i18n failure

* Add top level setting

* Minor fix

* Fix jest tests

* Address PR comments

* Fix i18n error

* fix functional test

* Add an icon tip on the distinct colors per slice switch

* Fix some of the PR comments

* Address more PR comments

* Small fix

* Functional test

* address some PR comments

* Add padding to the pie container

* Add a max width to the container

* Improve dashboard functional test

* Move the labels expression function to the pie plugin

* Fix i18n

* Fix functional test

* Apply PR comments

* Do not forget to also add the migration to them embeddable too :D

* Fix distinct colors for IP range layer

* Remove console errors

* Fix small mulitples colors with multiple layers

* Fix lint problem

* Fix problems created from merging with master

* Address PR comments

* Change the config in order the pie chart to not appear so huge on the editor

* Address PR comments

* Change the max percentage digits to 4

* Change the max size to 1000

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	.github/CODEOWNERS
#	packages/kbn-optimizer/limits.yml
#	test/functional/apps/visualize/_pie_chart.ts

* Fix functional test

* Revert change - backport missing

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-04 11:15:27 -04:00
..
api [Index patterns] Default index pattern REST API (#100691) (#100798) 2021-05-27 14:00:43 -04:00
apm docs: replace error rate image (#99430) (#99520) 2021-05-06 11:54:59 -07:00
canvas Adds canvas clog function (#96418) (#96437) 2021-04-07 11:32:02 -04:00
code
concepts [DOCS] Dashboard changes for 7.13 (#99681) (#100498) 2021-05-24 13:23:37 -07:00
dev-tools [Console] Update docs (#92240) (#92326) 2021-02-22 21:09:32 -05:00
developer [7.x] [Pie] New implementation of the vislib pie chart with es-charts (#83929) (#101292) 2021-06-04 11:15:27 -04:00
development [7.x] [Index patterns] Deprecate scripted field API functions (#100907) (#101301) 2021-06-03 14:24:40 -04:00
discover [DOCS] Updates runtime example in Discover (#100926) (#101112) 2021-06-01 14:20:47 -07:00
fleet
getting-started [7.x] Docs: getting started with Kibana Security (#94158) (#96618) 2021-04-08 14:24:05 -04:00
images [DOCS] Adds runtime fields (#99395) (#99990) 2021-05-12 13:57:08 -07:00
management [Fleet] Remove beats management plugin (#99789) (#101010) 2021-05-31 13:33:12 -04:00
maps [DOCS] Updates video in Intor & Maps take 2 (#101330) (#101340) 2021-06-03 15:01:36 -07:00
migration [7.11] Add note dropping support for glibc 2.12 (#93067) (#93118) 2021-03-01 15:59:54 -05:00
observability
settings [Fleet] Rename config value agents.elasticsearch.host => agents.elasticsearch.hosts (#101162) (#101306) 2021-06-03 15:02:56 -04:00
setup [DOCS] Updates homebrew content to use latest version (#101199) (#101211) 2021-06-02 13:45:14 -07:00
siem
spaces
uptime/images
user [DOCS] Updates video in Intor & Maps take 2 (#101330) (#101340) 2021-06-03 15:01:36 -07:00
visualize/images
accessibility.asciidoc
action-type-template.asciidoc [Alerting] Update UI to reflect new terminology (#93597) (#94572) 2021-03-15 12:22:43 -04:00
CHANGELOG.asciidoc [DOCS] Removes 100778 from 7.13.1 release notes 2021-06-02 15:48:34 -05:00
glossary.asciidoc [DOCS] Re-add glossary links (#94748) (#94821) 2021-03-17 11:26:45 -04:00
gs-index.asciidoc
index-extra-title-page.html [DOCS] Updates docs landing page (#100749) (#101114) 2021-06-01 14:25:07 -07:00
index.asciidoc [DOCS] Update Docker run instructions (#99340) (#99362) 2021-05-05 08:55:28 -07:00
index.x.asciidoc
limitations.asciidoc
migration.asciidoc [DOCS] Adds breaking changes for 7.11 (#87947) 2021-01-13 11:16:46 -08:00
redirects.asciidoc [DOCS] Adds runtime fields (#99395) (#99990) 2021-05-12 13:57:08 -07:00
release-notes.asciidoc
rule-type-template.asciidoc [Alerting] Update UI to reflect new terminology (#93597) (#94572) 2021-03-15 12:22:43 -04:00
timelion.asciidoc