Skip to content

Commit 9e60ee1

Browse files
authored
Merge pull request #50 from OHDSI/change_legend_position
Standardize location of legend to right of chart
2 parents 206f1de + 91dc0f2 commit 9e60ee1

5 files changed

Lines changed: 18 additions & 15 deletions

File tree

src/components/ConceptReport.vue

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,8 @@ export default {
382382
field: "CONCEPT_NAME",
383383
type: "nominal",
384384
legend: {
385-
orient: "top",
385+
orient: "right",
386+
columns: 2,
386387
title: null,
387388
},
388389
},
@@ -434,7 +435,8 @@ export default {
434435
field: "CONCEPT_NAME",
435436
type: "nominal",
436437
legend: {
437-
orient: "top",
438+
orient: "right",
439+
columns: 2,
438440
title: null,
439441
},
440442
},
@@ -524,7 +526,7 @@ export default {
524526
field: "SERIES_NAME",
525527
type: "nominal",
526528
legend: {
527-
orient: "top",
529+
orient: "right",
528530
},
529531
},
530532
facet: {
@@ -625,7 +627,8 @@ export default {
625627
field: "CONCEPT_NAME",
626628
type: "nominal",
627629
legend: {
628-
orient: "top",
630+
orient: "right",
631+
columns: 2,
629632
title: null,
630633
},
631634
},

src/components/DeathReport.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,8 @@ export default {
9494
field: "CONCEPT_NAME",
9595
type: "nominal",
9696
legend: {
97-
orient: "top",
97+
orient: "right",
98+
columns: 2,
9899
title: null,
99100
},
100101
},
@@ -165,7 +166,7 @@ export default {
165166
field: "SERIES_NAME",
166167
type: "nominal",
167168
legend: {
168-
orient: "top",
169+
orient: "right",
169170
},
170171
},
171172
facet: {

src/components/NetworkDatastrandReport.vue

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -165,12 +165,11 @@ export default {
165165
axes: [{ scale: "y", orient: "left", zindex: 0 }],
166166
legends: [
167167
{
168-
columns: 3,
169-
columnPadding: 20,
168+
columns: 2,
169+
columnPadding: 15,
170170
rowPadding: 10,
171-
orient: "bottom",
171+
orient: "right",
172172
fill: "color",
173-
direction: "horizontal",
174173
symbolType: "circle",
175174
},
176175
],

src/components/NetworkPopulationReport.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export default {
5858
color: {
5959
field: "DATA_SOURCE_KEY",
6060
title: "Data Source",
61-
legend: { orient: "bottom", direction: "horizontal", columns: 3 },
61+
legend: { orient: "right", columns: 2 },
6262
},
6363
tooltip: [
6464
{
@@ -98,7 +98,7 @@ export default {
9898
color: {
9999
field: "DATA_SOURCE_KEY",
100100
title: "Data Source",
101-
legend: { orient: "bottom", direction: "horizontal", columns: 3 },
101+
legend: { orient: "right", columns: 2 },
102102
},
103103
tooltip: [
104104
{

src/components/PersonReport.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ export default {
163163
field: "CONCEPT_NAME",
164164
type: "nominal",
165165
legend: {
166-
orient: "top",
166+
orient: "right",
167167
title: null,
168168
},
169169
},
@@ -189,8 +189,8 @@ export default {
189189
color: {
190190
field: "CONCEPT_NAME",
191191
legend: {
192-
orient: "bottom",
193-
columns: 5,
192+
orient: "right",
193+
columns: 2,
194194
title: "Ethnicity",
195195
},
196196
},

0 commit comments

Comments
 (0)