Skip to content
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

[Tagcloud] Replaces current implementation with elastic-charts #100017

Merged
merged 23 commits into from Jun 15, 2021
Merged
Show file tree
Hide file tree
Changes from 22 commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
79b049d
WIP - Replace tagcloud with es-charts wordcloud
stratoula May 12, 2021
d5a82fc
Cleanup and add unit tests
stratoula May 13, 2021
f1a9113
Merge with master and resolve conflicts
stratoula May 13, 2021
63cdcb9
Merge branch 'master' into replace-tagcloud-es-charts
kibanamachine May 13, 2021
4a48681
Fix interpreter test
stratoula May 14, 2021
7f1f110
Update all tagcloud snapshots
stratoula May 14, 2021
8463666
Partial fix tagcloud test
stratoula May 14, 2021
d3df03a
Fix some other functional tests, add migration script, update sample …
stratoula May 14, 2021
3427d48
Merge branch 'master' into replace-tagcloud-es-charts
kibanamachine May 19, 2021
dccec77
Merge branch 'master' into replace-tagcloud-es-charts
kibanamachine May 24, 2021
d94e142
Merge branch 'master' into replace-tagcloud-es-charts
kibanamachine May 26, 2021
276c472
Merge with master and resolve conflicts
stratoula Jun 1, 2021
54d2d04
Replace getColor with getCategorixalColor
stratoula Jun 1, 2021
a250fc5
Fix functional test
stratoula Jun 1, 2021
a8e33b9
Merge branch 'master' into replace-tagcloud-es-charts
kibanamachine Jun 3, 2021
bf10b09
Merge with master and resolve conflicts
stratoula Jun 7, 2021
f9fa369
Apply clickhandler event for filtering by clicking the word
stratoula Jun 7, 2021
02a03ca
Merge branch 'master' into replace-tagcloud-es-charts
kibanamachine Jun 8, 2021
e00bd4b
Fix weight calculation
stratoula Jun 9, 2021
b7c55e6
Merge branch 'master' into replace-tagcloud-es-charts
kibanamachine Jun 9, 2021
fa7910f
Add a unit test and fix functional
stratoula Jun 9, 2021
3d958b9
Merge with master and resolve conflicts
stratoula Jun 14, 2021
554741b
Change the cursor to pointer
stratoula Jun 14, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 0 additions & 1 deletion package.json
Expand Up @@ -215,7 +215,6 @@
"cytoscape-dagre": "^2.2.2",
"d3": "3.5.17",
"d3-array": "1.2.4",
"d3-cloud": "1.2.5",
"d3-scale": "1.0.7",
"d3-shape": "^1.1.0",
"d3-time": "^1.1.0",
Expand Down
Expand Up @@ -280,7 +280,7 @@ export const getSavedObjects = (): SavedObject[] => [
defaultMessage: '[eCommerce] Top Selling Products',
}),
visState:
'{"title":"[eCommerce] Top Selling Products","type":"tagcloud","params":{"scale":"linear","orientation":"single","minFontSize":18,"maxFontSize":72,"showLabel":false},"aggs":[{"id":"1","enabled":true,"type":"count","schema":"metric","params":{}},{"id":"2","enabled":true,"type":"terms","schema":"segment","params":{"field":"products.product_name.keyword","size":7,"order":"desc","orderBy":"1","otherBucket":false,"otherBucketLabel":"Other","missingBucket":false,"missingBucketLabel":"Missing"}}]}',
'{"title":"[eCommerce] Top Selling Products","type":"tagcloud","params":{"scale":"linear","orientation":"single","minFontSize":18,"maxFontSize":72,"showLabel":false,"palette":{"type":"palette","name":"default"}},"aggs":[{"id":"1","enabled":true,"type":"count","schema":"metric","params":{}},{"id":"2","enabled":true,"type":"terms","schema":"segment","params":{"field":"products.product_name.keyword","size":7,"order":"desc","orderBy":"1","otherBucket":false,"otherBucketLabel":"Other","missingBucket":false,"missingBucketLabel":"Missing"}}]}',
uiStateJSON: '{}',
description: '',
version: 1,
Expand Down
Expand Up @@ -242,7 +242,7 @@ export const getSavedObjects = (): SavedObject[] => [
defaultMessage: '[Flights] Destination Weather',
}),
visState:
'{"title":"[Flights] Destination Weather","type":"tagcloud","params":{"scale":"linear","orientation":"single","minFontSize":18,"maxFontSize":72,"showLabel":false},"aggs":[{"id":"1","enabled":true,"type":"count","schema":"metric","params":{}},{"id":"2","enabled":true,"type":"terms","schema":"segment","params":{"field":"DestWeather","size":10,"order":"desc","orderBy":"1","otherBucket":false,"otherBucketLabel":"Other","missingBucket":false,"missingBucketLabel":"Missing"}}]}',
'{"title":"[Flights] Destination Weather","type":"tagcloud","params":{"scale":"linear","orientation":"single","minFontSize":18,"maxFontSize":72,"showLabel":false,"palette":{"type":"palette","name":"default"}},"aggs":[{"id":"1","enabled":true,"type":"count","schema":"metric","params":{}},{"id":"2","enabled":true,"type":"terms","schema":"segment","params":{"field":"DestWeather","size":10,"order":"desc","orderBy":"1","otherBucket":false,"otherBucketLabel":"Other","missingBucket":false,"missingBucketLabel":"Missing"}}]}',
uiStateJSON: '{}',
description: '',
version: 1,
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

This file was deleted.

This file was deleted.

This file was deleted.

@@ -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} />;
27 changes: 0 additions & 27 deletions src/plugins/vis_type_tagcloud/public/components/label.js

This file was deleted.