mirror of
https://github.com/apache/superset.git
synced 2026-05-11 10:55:43 +00:00
chore(charts): echarts left padding too big and automation of title (#36993)
This commit is contained in:
@@ -576,8 +576,11 @@ export default function transformProps(
|
||||
? getXAxisFormatter(xAxisTimeFormat)
|
||||
: String;
|
||||
|
||||
const addYAxisTitleOffset = !!(yAxisTitle || yAxisTitleSecondary);
|
||||
const addXAxisTitleOffset = !!xAxisTitle;
|
||||
const addYAxisTitleOffset =
|
||||
!!(yAxisTitle || yAxisTitleSecondary) &&
|
||||
convertInteger(yAxisTitleMargin) !== 0;
|
||||
const addXAxisTitleOffset =
|
||||
!!xAxisTitle && convertInteger(xAxisTitleMargin) !== 0;
|
||||
|
||||
const chartPadding = getPadding(
|
||||
showLegend,
|
||||
|
||||
Reference in New Issue
Block a user