mirror of
https://github.com/apache/superset.git
synced 2026-04-25 19:14:27 +00:00
feat: Add comprehensive dark mode support for chart thumbnails and examples (#35111)
Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
committed by
GitHub
parent
c2534f9155
commit
7d0a472d1e
Binary file not shown.
|
After Width: | Height: | Size: 248 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 49 KiB |
@@ -20,7 +20,9 @@ import { t } from '@superset-ui/core';
|
||||
import controlPanel from './controlPanel';
|
||||
import transformProps from './transformProps';
|
||||
import thumbnail from './images/thumbnail.png';
|
||||
import thumbnailDark from './images/thumbnail-dark.png';
|
||||
import example from './images/tree.png';
|
||||
import exampleDark from './images/tree-dark.png';
|
||||
import buildQuery from './buildQuery';
|
||||
import { EchartsChartPlugin } from '../types';
|
||||
|
||||
@@ -36,7 +38,7 @@ export default class EchartsTreeChartPlugin extends EchartsChartPlugin {
|
||||
description: t(
|
||||
'Visualize multiple levels of hierarchy using a familiar tree-like structure.',
|
||||
),
|
||||
exampleGallery: [{ url: example }],
|
||||
exampleGallery: [{ url: example, urlDark: exampleDark }],
|
||||
name: t('Tree Chart'),
|
||||
tags: [
|
||||
t('Categorical'),
|
||||
@@ -47,6 +49,7 @@ export default class EchartsTreeChartPlugin extends EchartsChartPlugin {
|
||||
t('Featured'),
|
||||
],
|
||||
thumbnail,
|
||||
thumbnailDark,
|
||||
},
|
||||
transformProps,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user