Skip to content

Commit

Permalink
Adjusting to default
Browse files Browse the repository at this point in the history
Pie Margins default #486
  • Loading branch information
BennuFire committed Aug 22, 2023
1 parent 6f17ce7 commit de3125a
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
6 changes: 3 additions & 3 deletions docs/modules/ROOT/pages/user-guide/reports/pie-chart.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,13 @@ slice.
|Margin Left (px) |number |50 |The margin in pixels on the left side of
the visualization.

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

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

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

|Hide Selections |on/off |off |If enabled, hides the property selector
Expand Down
8 changes: 4 additions & 4 deletions src/chart/Utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,10 @@ export const themeNivo = {
legend: { text: { fill: 'rgb(var(--palette-neutral-text-default))' } },
},
legends: {
text: { fill: 'rgb(var(--palette-neutral-text-weak))' },
title: { text: { fill: 'rgb(var(--palette-neutral-text-weak))' } },
ticks: { text: { fill: 'rgb(var(--palette-neutral-text-weak))' } },
hidden: { text: { fill: 'rgb(var(--palette-neutral-text-weak))' } },
text: { fill: 'rgb(var(--palette-neutral-text-default))' },
title: { text: { fill: 'rgb(var(--palette-neutral-text-default))' } },
ticks: { text: { fill: 'rgb(var(--palette-neutral-text-default))' } },
hidden: { text: { fill: 'rgb(var(--palette-neutral-text-default))' } },
},
markers: {
text: { fill: 'rgb(var(--palette-neutral-text-default))' },
Expand Down
8 changes: 4 additions & 4 deletions src/chart/pie/PieChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,10 @@ const NeoPieChart = (props: ChartProps) => {
const settings = props.settings ? props.settings : {};
const legendHeight = 20;
// TODO to retrieve all defaults from the ReportConfig.ts file instead of hardcoding them in the file
const marginRight = settings.marginRight ? settings.marginRight : 24;
const marginLeft = settings.marginLeft ? settings.marginLeft : 24;
const marginTop = settings.marginTop ? settings.marginTop : 24;
const marginBottom = settings.marginBottom ? settings.marginBottom : 40;
const marginRight = settings.marginRight ? settings.marginRight : 50;
const marginLeft = settings.marginLeft ? settings.marginLeft : 50;
const marginTop = settings.marginTop ? settings.marginTop : 50;
const marginBottom = settings.marginBottom ? settings.marginBottom : 50;
const sortByValue = settings.sortByValue ? settings.sortByValue : false;
const enableArcLabels = settings.enableArcLabels !== undefined ? settings.enableArcLabels : true;
const enableArcLinkLabels = settings.enableArcLinkLabels !== undefined ? settings.enableArcLinkLabels : true;
Expand Down
8 changes: 4 additions & 4 deletions src/config/ReportConfig.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -606,22 +606,22 @@ export const REPORT_TYPES = {
marginLeft: {
label: 'Margin Left (px)',
type: SELECTION_TYPES.NUMBER,
default: 24,
default: 50,
},
marginRight: {
label: 'Margin Right (px)',
type: SELECTION_TYPES.NUMBER,
default: 24,
default: 50,
},
marginTop: {
label: 'Margin Top (px)',
type: SELECTION_TYPES.NUMBER,
default: 24,
default: 50,
},
marginBottom: {
label: 'Margin Bottom (px)',
type: SELECTION_TYPES.NUMBER,
default: 40,
default: 50,
},
refreshButtonEnabled: {
label: 'Refreshable',
Expand Down

0 comments on commit de3125a

Please sign in to comment.