mirror of
https://github.com/apache/superset.git
synced 2026-04-23 01:55:09 +00:00
fix(charts): big-number display broken in echarts (#24492)
Co-authored-by: aadhikari <aadhikari@apple.com>
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
import { t, ChartMetadata, ChartPlugin, Behavior } from '@superset-ui/core';
|
||||
import { t, Behavior } from '@superset-ui/core';
|
||||
import controlPanel from './controlPanel';
|
||||
import transformProps from './transformProps';
|
||||
import buildQuery from './buildQuery';
|
||||
@@ -24,8 +24,9 @@ import example1 from './images/BigNumber.jpg';
|
||||
import example2 from './images/BigNumber2.jpg';
|
||||
import thumbnail from './images/thumbnail.png';
|
||||
import { BigNumberTotalChartProps, BigNumberTotalFormData } from '../types';
|
||||
import { EchartsChartPlugin } from '../../types';
|
||||
|
||||
const metadata = new ChartMetadata({
|
||||
const metadata = {
|
||||
category: t('KPI'),
|
||||
description: t(
|
||||
'Showcases a single metric front-and-center. Big number is best used to call attention to a KPI or the one thing you want your audience to focus on.',
|
||||
@@ -46,9 +47,9 @@ const metadata = new ChartMetadata({
|
||||
],
|
||||
thumbnail,
|
||||
behaviors: [Behavior.DRILL_TO_DETAIL],
|
||||
});
|
||||
};
|
||||
|
||||
export default class BigNumberTotalChartPlugin extends ChartPlugin<
|
||||
export default class BigNumberTotalChartPlugin extends EchartsChartPlugin<
|
||||
BigNumberTotalFormData,
|
||||
BigNumberTotalChartProps
|
||||
> {
|
||||
|
||||
Reference in New Issue
Block a user