You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by mi...@apache.org on 2022/12/20 15:08:40 UTC
[superset] branch master updated: chore(viz): Rename legacy non-time-series Bar Chart (#22430)
This is an automated email from the ASF dual-hosted git repository.
michaelsmolina 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 7f4e522f1a chore(viz): Rename legacy non-time-series Bar Chart (#22430)
7f4e522f1a is described below
commit 7f4e522f1a1298a21b9ec4f61a09404fa2fee4f3
Author: Cody Leff <co...@preset.io>
AuthorDate: Tue Dec 20 15:08:30 2022 +0000
chore(viz): Rename legacy non-time-series Bar Chart (#22430)
---
.../plugins/legacy-preset-chart-nvd3/src/DistBar/index.js | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/superset-frontend/plugins/legacy-preset-chart-nvd3/src/DistBar/index.js b/superset-frontend/plugins/legacy-preset-chart-nvd3/src/DistBar/index.js
index 16b66c00b4..09d289d694 100644
--- a/superset-frontend/plugins/legacy-preset-chart-nvd3/src/DistBar/index.js
+++ b/superset-frontend/plugins/legacy-preset-chart-nvd3/src/DistBar/index.js
@@ -16,7 +16,12 @@
* specific language governing permissions and limitations
* under the License.
*/
-import { t, ChartMetadata, ChartPlugin } from '@superset-ui/core';
+import {
+ t,
+ ChartMetadata,
+ ChartPlugin,
+ hasGenericChartAxes,
+} from '@superset-ui/core';
import transformProps from '../transformProps';
import thumbnail from './images/thumbnail.png';
import example1 from './images/Bar_Chart.jpg';
@@ -35,7 +40,7 @@ const metadata = new ChartMetadata({
{ url: example2, caption: 'Grouped style' },
{ url: example3 },
],
- name: t('Bar Chart'),
+ name: hasGenericChartAxes ? t('Bar Chart (legacy)') : t('Bar Chart'),
tags: [
t('Additive'),
t('Bar'),