Skip to content

Commit

Permalink
Merge pull request #50 from OHDSI/change_legend_position
Browse files Browse the repository at this point in the history
Standardize location of legend to right of chart
  • Loading branch information
fdefalco authored Nov 24, 2021
2 parents 206f1de + 91dc0f2 commit 9e60ee1
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 15 deletions.
11 changes: 7 additions & 4 deletions src/components/ConceptReport.vue
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,8 @@ export default {
field: "CONCEPT_NAME",
type: "nominal",
legend: {
orient: "top",
orient: "right",
columns: 2,
title: null,
},
},
Expand Down Expand Up @@ -434,7 +435,8 @@ export default {
field: "CONCEPT_NAME",
type: "nominal",
legend: {
orient: "top",
orient: "right",
columns: 2,
title: null,
},
},
Expand Down Expand Up @@ -524,7 +526,7 @@ export default {
field: "SERIES_NAME",
type: "nominal",
legend: {
orient: "top",
orient: "right",
},
},
facet: {
Expand Down Expand Up @@ -625,7 +627,8 @@ export default {
field: "CONCEPT_NAME",
type: "nominal",
legend: {
orient: "top",
orient: "right",
columns: 2,
title: null,
},
},
Expand Down
5 changes: 3 additions & 2 deletions src/components/DeathReport.vue
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@ export default {
field: "CONCEPT_NAME",
type: "nominal",
legend: {
orient: "top",
orient: "right",
columns: 2,
title: null,
},
},
Expand Down Expand Up @@ -165,7 +166,7 @@ export default {
field: "SERIES_NAME",
type: "nominal",
legend: {
orient: "top",
orient: "right",
},
},
facet: {
Expand Down
7 changes: 3 additions & 4 deletions src/components/NetworkDatastrandReport.vue
Original file line number Diff line number Diff line change
Expand Up @@ -165,12 +165,11 @@ export default {
axes: [{ scale: "y", orient: "left", zindex: 0 }],
legends: [
{
columns: 3,
columnPadding: 20,
columns: 2,
columnPadding: 15,
rowPadding: 10,
orient: "bottom",
orient: "right",
fill: "color",
direction: "horizontal",
symbolType: "circle",
},
],
Expand Down
4 changes: 2 additions & 2 deletions src/components/NetworkPopulationReport.vue
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export default {
color: {
field: "DATA_SOURCE_KEY",
title: "Data Source",
legend: { orient: "bottom", direction: "horizontal", columns: 3 },
legend: { orient: "right", columns: 2 },
},
tooltip: [
{
Expand Down Expand Up @@ -98,7 +98,7 @@ export default {
color: {
field: "DATA_SOURCE_KEY",
title: "Data Source",
legend: { orient: "bottom", direction: "horizontal", columns: 3 },
legend: { orient: "right", columns: 2 },
},
tooltip: [
{
Expand Down
6 changes: 3 additions & 3 deletions src/components/PersonReport.vue
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ export default {
field: "CONCEPT_NAME",
type: "nominal",
legend: {
orient: "top",
orient: "right",
title: null,
},
},
Expand All @@ -189,8 +189,8 @@ export default {
color: {
field: "CONCEPT_NAME",
legend: {
orient: "bottom",
columns: 5,
orient: "right",
columns: 2,
title: "Ethnicity",
},
},
Expand Down

0 comments on commit 9e60ee1

Please sign in to comment.