mirror of
https://github.com/apache/superset.git
synced 2026-04-23 10:04:45 +00:00
feat: Improves the Waterfall chart (#25557)
This commit is contained in:
committed by
GitHub
parent
8061d5cce9
commit
d619078d25
@@ -24,14 +24,10 @@ import {
|
||||
EventAnnotationLayer,
|
||||
FilterState,
|
||||
FormulaAnnotationLayer,
|
||||
getTimeFormatter,
|
||||
IntervalAnnotationLayer,
|
||||
isTimeseriesAnnotationResult,
|
||||
LegendState,
|
||||
smartDateDetailedFormatter,
|
||||
smartDateFormatter,
|
||||
SupersetTheme,
|
||||
TimeFormatter,
|
||||
TimeseriesAnnotationLayer,
|
||||
TimeseriesDataRecord,
|
||||
ValueFormatter,
|
||||
@@ -582,27 +578,3 @@ export function getPadding(
|
||||
: TIMESERIES_CONSTANTS.gridOffsetRight,
|
||||
});
|
||||
}
|
||||
|
||||
export function getTooltipTimeFormatter(
|
||||
format?: string,
|
||||
): TimeFormatter | StringConstructor {
|
||||
if (format === smartDateFormatter.id) {
|
||||
return smartDateDetailedFormatter;
|
||||
}
|
||||
if (format) {
|
||||
return getTimeFormatter(format);
|
||||
}
|
||||
return String;
|
||||
}
|
||||
|
||||
export function getXAxisFormatter(
|
||||
format?: string,
|
||||
): TimeFormatter | StringConstructor | undefined {
|
||||
if (format === smartDateFormatter.id || !format) {
|
||||
return undefined;
|
||||
}
|
||||
if (format) {
|
||||
return getTimeFormatter(format);
|
||||
}
|
||||
return String;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user