mirror of
https://github.com/apache/superset.git
synced 2026-06-09 09:39:25 +00:00
feat(charts): add subtitle option and metric customization controls (#32975)
This commit is contained in:
@@ -26,7 +26,12 @@ import {
|
||||
getStandardizedControls,
|
||||
temporalColumnMixin,
|
||||
} from '@superset-ui/chart-controls';
|
||||
import { headerFontSize, subheaderFontSize } from '../sharedControls';
|
||||
import {
|
||||
headerFontSize,
|
||||
subheaderFontSize,
|
||||
subtitleFontSize,
|
||||
subtitleControl,
|
||||
} from '../sharedControls';
|
||||
|
||||
const config: ControlPanelConfig = {
|
||||
controlPanelSections: [
|
||||
@@ -134,6 +139,8 @@ const config: ControlPanelConfig = {
|
||||
['color_picker', null],
|
||||
[headerFontSize],
|
||||
[subheaderFontSize],
|
||||
[subtitleControl],
|
||||
[subtitleFontSize],
|
||||
['y_axis_format'],
|
||||
['currency_format'],
|
||||
[
|
||||
|
||||
@@ -66,6 +66,8 @@ export default function transformProps(
|
||||
metric = 'value',
|
||||
showTimestamp,
|
||||
showTrendLine,
|
||||
subtitle = '',
|
||||
subtitleFontSize,
|
||||
aggregation,
|
||||
startYAxisAtZero,
|
||||
subheader = '',
|
||||
@@ -302,6 +304,8 @@ export default function transformProps(
|
||||
formatTime,
|
||||
formData,
|
||||
headerFontSize,
|
||||
subtitleFontSize,
|
||||
subtitle,
|
||||
subheaderFontSize,
|
||||
mainColor,
|
||||
showTimestamp,
|
||||
|
||||
Reference in New Issue
Block a user