You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by st...@apache.org on 2022/05/11 14:56:16 UTC

[superset] branch master updated: fix: fix word cloud randomness (#19977)

This is an automated email from the ASF dual-hosted git repository.

stephenlyz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git


The following commit(s) were added to refs/heads/master by this push:
     new 2e31021ecd fix: fix word cloud randomness (#19977)
2e31021ecd is described below

commit 2e31021ecd6cc390fbe29d2837c026c6ac43903b
Author: Etienne Baratte <eb...@gmail.com>
AuthorDate: Wed May 11 16:56:09 2022 +0200

    fix: fix word cloud randomness (#19977)
---
 .../plugins/plugin-chart-word-cloud/src/chart/WordCloud.tsx            | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/superset-frontend/plugins/plugin-chart-word-cloud/src/chart/WordCloud.tsx b/superset-frontend/plugins/plugin-chart-word-cloud/src/chart/WordCloud.tsx
index a903c26fbc..61f3e7977a 100644
--- a/superset-frontend/plugins/plugin-chart-word-cloud/src/chart/WordCloud.tsx
+++ b/superset-frontend/plugins/plugin-chart-word-cloud/src/chart/WordCloud.tsx
@@ -28,10 +28,11 @@ import {
 import {
   SupersetThemeProps,
   withTheme,
-  seedRandom,
+  seed,
   CategoricalColorScale,
 } from '@superset-ui/core';
 
+const seedRandom = seed('superset-ui');
 export const ROTATION = {
   flat: () => 0,
   // this calculates a random rotation between -90 and 90 degrees.