Your window into the Elastic Stack
Find a file
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
.buildkite [CI] Buildkite support with Baseline pipeline (#100492) (#101108) 2021-06-03 12:00:25 -04:00
.ci [CI] For PRs, build TS refs before public api docs check (#100791) (#101128) 2021-06-01 23:20:47 -04:00
api_docs Ensure comments on parameters in arrow functions are captured in the docs and ci metrics. (#100823) (#101087) 2021-06-01 17:24:44 -04:00
config Add config properties for HTTP security headers (#97158) (#97503) 2021-04-19 16:10:13 -04:00
dev_docs adding expressions dev_docs tutorial (#101004) (#101025) 2021-06-03 07:25:47 -04:00
docs [7.x] [Pie] New implementation of the vislib pie chart with es-charts (#83929) (#101292) 2021-06-04 11:15:27 -04:00
examples [7.x] [Screenshot mode] Create plugin to provide "screenshot mode" awareness (#99627) (#100331) 2021-05-20 07:58:50 -04:00
licenses [7.x] Elastic License 2.0 (#90192) 2021-02-03 18:39:13 -08:00
packages [7.x] [Pie] New implementation of the vislib pie chart with es-charts (#83929) (#101292) 2021-06-04 11:15:27 -04:00
plugins [7.x] [dev/cli] ensure plugins/ and all watch source dirs exist (#78973) (#78998) 2020-09-30 11:53:12 -07:00
rfcs RFC: URL Service (TTL: expired) (#95416) (#97432) 2021-04-19 06:09:18 -04:00
scripts Remove the no longer used release-notes script (#97806) (#97882) 2021-04-21 17:01:18 -04:00
src [7.x] [Pie] New implementation of the vislib pie chart with es-charts (#83929) (#101292) 2021-06-04 11:15:27 -04:00
tasks/config [KQL] Use cache and other performance improvements (#93319) (#93972) 2021-03-08 14:36:14 -05:00
test [7.x] [Pie] New implementation of the vislib pie chart with es-charts (#83929) (#101292) 2021-06-04 11:15:27 -04:00
typings [RAC] Decouple registry from alerts-as-data client (#98935) (#100041) 2021-05-13 13:07:02 -04:00
utilities [7.x] Elastic License 2.0 (#90192) 2021-02-03 18:39:13 -08:00
vars [CI] For PRs, build TS refs before public api docs check (#100791) (#101128) 2021-06-01 23:20:47 -04:00
x-pack [7.x] [Pie] New implementation of the vislib pie chart with es-charts (#83929) (#101292) 2021-06-04 11:15:27 -04:00
.backportrc.json chore(NA): adds 7.13 branch and bumps 7.x on backportrc (#97804) (#97868) 2021-04-21 14:18:40 -04:00
.bazelignore chore(NA): stop grouping bazel out symlink folders (#96066) (#96085) 2021-04-01 17:34:54 -04:00
.bazeliskversion chore(NA): bump bazelisk to v1.7.5 (#92905) (#92946) 2021-02-25 22:06:16 -05:00
.bazelrc chore(NA): manage npm dependencies within bazel (#92864) (#93474) 2021-03-03 15:21:20 -05:00
.bazelrc.common chore(NA): @kbn/pm new commands to support development on Bazel packages (#96465) (#96911) 2021-04-12 22:30:36 -04:00
.bazelversion chore(NA): bazel machinery installation on kbn bootstrap (#89469) (#89521) 2021-01-28 02:42:44 +00:00
.browserslistrc [7.x] [browserslist] remove unnecessary browsers (#89186) (#89250) 2021-01-25 18:22:34 -07:00
.editorconfig .editorconfig MDX files should follow the same rules as MD (#96942) (#97079) 2021-04-14 05:34:57 -04:00
.eslintignore Remove the no longer used release-notes script (#97806) (#97882) 2021-04-21 17:01:18 -04:00
.eslintrc.js Ban use of lodash.template (#100277) (#100332) 2021-05-21 18:39:20 +00:00
.fossa.yml Adds FOSSA CLI configuration file (#70137) (#70614) 2020-07-02 14:53:42 -07:00
.gitattributes [7.x] [canvas] Color fixes + Storybook 5 (#34075) (#34369) 2019-04-02 16:35:28 -05:00
.gitignore Automated package testing (#88900) (#100812) 2021-05-27 20:33:04 +00:00
.i18nrc.json [7.x] [Pie] New implementation of the vislib pie chart with es-charts (#83929) (#101292) 2021-06-04 11:15:27 -04:00
.node-version Bump Node.js from version 14.16.1 to 14.17.0 (#100314) (#100336) 2021-05-24 16:38:02 +00:00
.npmrc chore(NA): assure puppeteer_skip_chromium_download is applied across every yarn install situation (#88346) (#88379) 2021-01-14 20:32:48 +00:00
.nvmrc Bump Node.js from version 14.16.1 to 14.17.0 (#100314) (#100336) 2021-05-24 16:38:02 +00:00
.prettierignore [7.x] [dev] Replace sass-lint with stylelint (#86177) (#88498) 2021-01-15 14:36:34 -06:00
.prettierrc Increase prettier line width to 100 (#20535) 2018-07-09 22:50:37 +02:00
.stylelintignore chore(NA): stop grouping bazel out symlink folders (#96066) (#96085) 2021-04-01 17:34:54 -04:00
.stylelintrc Amsterdam helpers (#93701) (#94323) 2021-03-10 13:36:11 -05:00
.telemetryrc.json [Usage collection] Collect non-default kibana configs (#97368) (#97653) 2021-04-20 13:04:54 -04:00
.yarnrc chore(NA): manage npm dependencies within bazel (#92864) (#93474) 2021-03-03 15:21:20 -05:00
api-documenter.json Normalize EOL symbol in platform docs (#56021) (#56041) 2020-01-27 21:04:26 +01:00
BUILD.bazel chore(NA): moving @kbn/analytics into bazel (#98917) (#99134) 2021-05-03 19:44:07 -04:00
CONTRIBUTING.md Improvements to our developer guide (#67764) (#71455) 2020-07-13 12:16:18 -04:00
FAQ.md propose language changes (#10709) 2017-03-05 12:10:32 -05:00
github_checks_reporter.json implementing github checks - second attempt (#35757) (#35906) 2019-05-01 19:53:02 -05:00
Gruntfile.js [7.x] Elastic License 2.0 (#90192) 2021-02-03 18:39:13 -08:00
Jenkinsfile [CI] Don't do CI stats reporting/failures for feature branch PRs (#99668) (#99690) 2021-05-10 18:31:48 -04:00
jest.config.integration.js [7.x] [CI] Combines Jest unit tests (#89948) (#90828) 2021-02-09 17:52:27 -05:00
jest.config.js [7.x] Remove /src/legacy (#95510) (#96283) 2021-04-06 06:08:31 -04:00
kibana.d.ts [7.x] Remove /src/legacy (#95510) (#96283) 2021-04-06 06:08:31 -04:00
LICENSE.txt [7.x] Elastic License 2.0 (#90192) 2021-02-03 18:39:13 -08:00
NOTICE.txt [kbn-ui-shared-deps] Remove outdated polyfills (#96339) 2021-04-12 09:27:52 -05:00
package.json chore(NA): moving @kbn/rule-data-utils into bazel (#101290) (#101332) 2021-06-03 18:21:30 -04:00
preinstall_check.js [7.x] Elastic License 2.0 (#90192) 2021-02-03 18:39:13 -08:00
README.md [7.x] Remove legacy optimizer (#73154) (#74966) 2020-08-13 12:36:25 -07:00
renovate.json5 fix brushing on small multiples (#94505) (#94611) 2021-03-15 15:47:18 -04:00
STYLEGUIDE.mdx Syntax in styleguide.mdx is breaking docs build (#99840) (#99859) 2021-05-11 20:12:01 -04:00
tsconfig.base.json fix(NA): windows ts_project outside sandbox compilation (#100947) (#101305) 2021-06-03 14:53:36 -04:00
tsconfig.browser.json Introduce TS incremental builds & move src/test_utils to TS project (#76082) (#76632) 2020-09-03 23:02:05 +02:00
tsconfig.json [7.x] [Pie] New implementation of the vislib pie chart with es-charts (#83929) (#101292) 2021-06-04 11:15:27 -04:00
tsconfig.refs.json [7.x] [Pie] New implementation of the vislib pie chart with es-charts (#83929) (#101292) 2021-06-04 11:15:27 -04:00
tsconfig.types.json [7.x] ui_actions service initial docs (#78902) (#80211) 2020-10-13 07:18:05 +02:00
TYPESCRIPT.md [7.x] Fixed grammar (#74725) (#74745) 2020-08-11 13:21:03 -04:00
WORKSPACE.bazel Bump Node.js from version 14.16.1 to 14.17.0 (#100314) (#100336) 2021-05-24 16:38:02 +00:00
yarn.lock chore(NA): moving @kbn/rule-data-utils into bazel (#101290) (#101332) 2021-06-03 18:21:30 -04:00

Kibana

Kibana is your window into the Elastic Stack. Specifically, it's a browser-based analytics and search dashboard for Elasticsearch.

Getting Started

If you just want to try Kibana out, check out the Elastic Stack Getting Started Page to give it a whirl.

If you're interested in diving a bit deeper and getting a taste of Kibana's capabilities, head over to the Kibana Getting Started Page.

Using a Kibana Release

If you want to use a Kibana release in production, give it a test run, or just play around:

Building and Running Kibana, and/or Contributing Code

You might want to build Kibana locally to contribute some code, test out the latest features, or try out an open PR:

Documentation

Visit Elastic.co for the full Kibana documentation.

For information about building the documentation, see the README in elastic/docs.

Version Compatibility with Elasticsearch

Ideally, you should be running Elasticsearch and Kibana with matching version numbers. If your Elasticsearch has an older version number or a newer major number than Kibana, then Kibana will fail to run. If Elasticsearch has a newer minor or patch number than Kibana, then the Kibana Server will log a warning.

Note: The version numbers below are only examples, meant to illustrate the relationships between different types of version numbers.

Situation Example Kibana version Example ES version Outcome
Versions are the same. 5.1.2 5.1.2 💚 OK
ES patch number is newer. 5.1.2 5.1.5 ⚠️ Logged warning
ES minor number is newer. 5.1.2 5.5.0 ⚠️ Logged warning
ES major number is newer. 5.1.2 6.0.0 🚫 Fatal error
ES patch number is older. 5.1.2 5.1.0 ⚠️ Logged warning
ES minor number is older. 5.1.2 5.0.0 🚫 Fatal error
ES major number is older. 5.1.2 4.0.0 🚫 Fatal error

Questions? Problems? Suggestions?

  • If you've found a bug or want to request a feature, please create a GitHub Issue. Please check to make sure someone else hasn't already created an issue for the same topic.
  • Need help using Kibana? Ask away on our Kibana Discuss Forum and a fellow community member or Elastic engineer will be glad to help you out.