-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Tagcloud] Replaces current implementation with elastic-charts (#100017…
…) (#102150) * WIP - Replace tagcloud with es-charts wordcloud * Cleanup and add unit tests * Fix interpreter test * Update all tagcloud snapshots * Partial fix tagcloud test * Fix some other functional tests, add migration script, update sample data * Replace getColor with getCategorixalColor * Fix functional test * Apply clickhandler event for filtering by clicking the word * Fix weight calculation * Add a unit test and fix functional * Change the cursor to pointer Co-authored-by: Kibana Machine <[email protected]> Co-authored-by: Kibana Machine <[email protected]>
- Loading branch information
1 parent
4be51ee
commit 815c3ce
Showing
46 changed files
with
642 additions
and
1,393 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
src/plugins/vis_type_tagcloud/public/__snapshots__/tag_cloud_fn.test.ts.snap
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
src/plugins/vis_type_tagcloud/public/__snapshots__/to_ast.test.ts.snap
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
src/plugins/vis_type_tagcloud/public/components/__snapshots__/tag_cloud.test.js.snap
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
...ns/vis_type_tagcloud/public/components/__snapshots__/tag_cloud_visualization.test.js.snap
This file was deleted.
Oops, something went wrong.
51 changes: 0 additions & 51 deletions
51
src/plugins/vis_type_tagcloud/public/components/feedback_message.js
This file was deleted.
Oops, something went wrong.
17 changes: 17 additions & 0 deletions
17
src/plugins/vis_type_tagcloud/public/components/get_tag_cloud_options.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0 and the Server Side Public License, v 1; you may not use this file except | ||
* in compliance with, at your election, the Elastic License 2.0 or the Server | ||
* Side Public License, v 1. | ||
*/ | ||
|
||
import React, { lazy } from 'react'; | ||
import { VisEditorOptionsProps } from 'src/plugins/visualizations/public'; | ||
import { TagCloudVisParams, TagCloudTypeProps } from '../types'; | ||
|
||
const TagCloudOptionsLazy = lazy(() => import('./tag_cloud_options')); | ||
|
||
export const getTagCloudOptions = ({ palettes }: TagCloudTypeProps) => ( | ||
props: VisEditorOptionsProps<TagCloudVisParams> | ||
) => <TagCloudOptionsLazy {...props} palettes={palettes} />; |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.