Skip to content

Commit de3125a

Browse files
committed
Adjusting to default
Pie Margins default #486
1 parent 6f17ce7 commit de3125a

File tree

4 files changed

+15
-15
lines changed

4 files changed

+15
-15
lines changed

docs/modules/ROOT/pages/user-guide/reports/pie-chart.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,13 @@ slice.
7373
|Margin Left (px) |number |50 |The margin in pixels on the left side of
7474
the visualization.
7575

76-
|Margin Right (px) |number |24 |The margin in pixels on the right side
76+
|Margin Right (px) |number |50 |The margin in pixels on the right side
7777
of the visualization.
7878

79-
|Margin Top (px) |number |24 |The margin in pixels on the top side of
79+
|Margin Top (px) |number |50 |The margin in pixels on the top side of
8080
the visualization.
8181

82-
|Margin Bottom (px) |number |40 |The margin in pixels on the bottom side
82+
|Margin Bottom (px) |number |50 |The margin in pixels on the bottom side
8383
of the visualization.
8484

8585
|Hide Selections |on/off |off |If enabled, hides the property selector

src/chart/Utils.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,10 +125,10 @@ export const themeNivo = {
125125
legend: { text: { fill: 'rgb(var(--palette-neutral-text-default))' } },
126126
},
127127
legends: {
128-
text: { fill: 'rgb(var(--palette-neutral-text-weak))' },
129-
title: { text: { fill: 'rgb(var(--palette-neutral-text-weak))' } },
130-
ticks: { text: { fill: 'rgb(var(--palette-neutral-text-weak))' } },
131-
hidden: { text: { fill: 'rgb(var(--palette-neutral-text-weak))' } },
128+
text: { fill: 'rgb(var(--palette-neutral-text-default))' },
129+
title: { text: { fill: 'rgb(var(--palette-neutral-text-default))' } },
130+
ticks: { text: { fill: 'rgb(var(--palette-neutral-text-default))' } },
131+
hidden: { text: { fill: 'rgb(var(--palette-neutral-text-default))' } },
132132
},
133133
markers: {
134134
text: { fill: 'rgb(var(--palette-neutral-text-default))' },

src/chart/pie/PieChart.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,10 @@ const NeoPieChart = (props: ChartProps) => {
7373
const settings = props.settings ? props.settings : {};
7474
const legendHeight = 20;
7575
// TODO to retrieve all defaults from the ReportConfig.ts file instead of hardcoding them in the file
76-
const marginRight = settings.marginRight ? settings.marginRight : 24;
77-
const marginLeft = settings.marginLeft ? settings.marginLeft : 24;
78-
const marginTop = settings.marginTop ? settings.marginTop : 24;
79-
const marginBottom = settings.marginBottom ? settings.marginBottom : 40;
76+
const marginRight = settings.marginRight ? settings.marginRight : 50;
77+
const marginLeft = settings.marginLeft ? settings.marginLeft : 50;
78+
const marginTop = settings.marginTop ? settings.marginTop : 50;
79+
const marginBottom = settings.marginBottom ? settings.marginBottom : 50;
8080
const sortByValue = settings.sortByValue ? settings.sortByValue : false;
8181
const enableArcLabels = settings.enableArcLabels !== undefined ? settings.enableArcLabels : true;
8282
const enableArcLinkLabels = settings.enableArcLinkLabels !== undefined ? settings.enableArcLinkLabels : true;

src/config/ReportConfig.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -606,22 +606,22 @@ export const REPORT_TYPES = {
606606
marginLeft: {
607607
label: 'Margin Left (px)',
608608
type: SELECTION_TYPES.NUMBER,
609-
default: 24,
609+
default: 50,
610610
},
611611
marginRight: {
612612
label: 'Margin Right (px)',
613613
type: SELECTION_TYPES.NUMBER,
614-
default: 24,
614+
default: 50,
615615
},
616616
marginTop: {
617617
label: 'Margin Top (px)',
618618
type: SELECTION_TYPES.NUMBER,
619-
default: 24,
619+
default: 50,
620620
},
621621
marginBottom: {
622622
label: 'Margin Bottom (px)',
623623
type: SELECTION_TYPES.NUMBER,
624-
default: 40,
624+
default: 50,
625625
},
626626
refreshButtonEnabled: {
627627
label: 'Refreshable',

0 commit comments

Comments
 (0)