|
@@ -130,14 +130,14 @@ function getChartLayout(chartRef: Ref<HTMLDivElement | undefined>) {
|
|
|
|
|
|
|
|
return {
|
|
return {
|
|
|
compact,
|
|
compact,
|
|
|
- distributionTitleTop: compact ? 6 : 18,
|
|
|
|
|
|
|
+ distributionTitleTop: compact ? 3 : 13,
|
|
|
distributionTitleFontSize: compact ? 9 : 11,
|
|
distributionTitleFontSize: compact ? 9 : 11,
|
|
|
distributionTitleLineHeight: compact ? 14 : 16,
|
|
distributionTitleLineHeight: compact ? 14 : 16,
|
|
|
distributionPieRadius: compact ? ['38%', '50%'] : ['40%', '52%'],
|
|
distributionPieRadius: compact ? ['38%', '50%'] : ['40%', '52%'],
|
|
|
distributionPieCenterY: compact ? '60%' : '57%',
|
|
distributionPieCenterY: compact ? '60%' : '57%',
|
|
|
distributionLegendBottom: compact ? 0 : 10,
|
|
distributionLegendBottom: compact ? 0 : 10,
|
|
|
distributionLegendItemSize: compact ? 9 : 13,
|
|
distributionLegendItemSize: compact ? 9 : 13,
|
|
|
- distributionLegendGap: compact ? 8 : 14,
|
|
|
|
|
|
|
+ distributionLegendGap: compact ? 4 : 10,
|
|
|
distributionLegendFontSize: compact ? 10 : 14,
|
|
distributionLegendFontSize: compact ? 10 : 14,
|
|
|
trendGridTop: compact ? 10 : 32,
|
|
trendGridTop: compact ? 10 : 32,
|
|
|
trendGridRight: compact ? 12 : THEME.grid.right,
|
|
trendGridRight: compact ? 12 : THEME.grid.right,
|