Skip to content

Commit b75ebf3

Browse files
authored
Merge pull request #242 from graphieros/next
New feature - Add legend position config option #241
2 parents ab8a8fb + 6974c9c commit b75ebf3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+1022
-725
lines changed

TestingArena/ArenaVueUiBullet.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ const model = ref([
7474
{ key: 'style.chart.animation.show', def: true, type: 'checkbox' },
7575
{ key: 'style.chart.animation.animationFrames', def: 60, type:'range', min: 30, max: 255 },
7676
77+
{ key: 'style.chart.legend.position', def: 'bottom', type: 'select', options: ['top', 'bottom']},
78+
7779
{ key: 'style.chart.segments.baseColor', def: '#9A9A9A', type: 'color' },
7880
{ key: 'style.chart.segments.dataLabels.show', def: true, type: 'checkbox' },
7981
{ key: 'style.chart.segments.dataLabels.color', def: '#1A1A1A', type: 'color' },

TestingArena/ArenaVueUiChord.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ const model = ref([
8080
{ key: 'style.chart.legend.color', def: '#1A1A1A', type: 'color'},
8181
{ key: 'style.chart.legend.fontSize', def: 14, type: 'number', min: 8, max: 42},
8282
{ key: 'style.chart.legend.bold', def: false, type: 'checkbox'},
83+
{ key: 'style.chart.legend.position', def: 'bottom', type: 'select', options: ['top', 'bottom']},
8384
8485
{ key: 'style.chart.arcs.innerRadiusRatio', def: 1, type: 'number', min: 0.1, max: 1.5, step: 0.1 },
8586
{ key: 'style.chart.arcs.outerRadiusRatio', def: 1, type: 'number', min: 0.1, max: 1.5, step: 0.1 },

TestingArena/ArenaVueUiDonut.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ const model = ref([
178178
{ key: 'style.chart.legend.roundingPercentage', def: 0, type: 'number', min: 0, max: 6, label: 'percentageRounding', category: 'legend' },
179179
{ key: 'style.chart.legend.showPercentage', def: true, type: 'checkbox'},
180180
{ key: 'style.chart.legend.showValue', def: true, type: 'checkbox'},
181+
{ key: 'style.chart.legend.position', def: 'bottom', type: 'select', options: ['top', 'bottom']},
181182
182183
{ key: 'style.chart.title.text', def: 'Title', type: 'text', label: 'textContent', category: 'title' },
183184
{ key: 'style.chart.title.color', def: '#1A1A1A', type: 'color', label: 'textColor', category: 'title' },

TestingArena/ArenaVueUiDonutEvolution.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ const model = ref([
131131
{ key: 'style.chart.legend.roundingValue', def: 2, type: 'number', min: 0, max: 12},
132132
{ key: 'style.chart.legend.showValue', def: true, type: 'chexkbox'},
133133
{ key: 'style.chart.legend.showPercentage', def: false, type: 'chexkbox'},
134+
{ key: 'style.chart.legend.position', def: 'bottom', type: 'select', options: ['top', 'bottom']},
134135
135136
{ key: 'table.show', def: false, type: 'checkbox'},
136137
{ key: 'table.responsiveBreakpoint', def: 400, type: 'number', min: 300, max: 800},

TestingArena/ArenaVueUiDumbbell.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,8 @@ const model = ref([
146146
{ key: 'style.chart.legend.color', def: '#1A1A1A', type: 'color'},
147147
{ key: 'style.chart.legend.fontSize', def: 14, type: 'number', min: 8, max: 48},
148148
{ key: 'style.chart.legend.bold', def: false, type: 'checkbox'},
149+
{ key: 'style.chart.legend.position', def: 'bottom', type: 'select', options: ['top', 'bottom']},
150+
149151
{ key: 'style.chart.title.text', def: 'Lorem ipsum dolor sit amet', type: 'text'},
150152
{ key: 'style.chart.title.color', def: '#1A1A1A', type: 'color'},
151153
{ key: 'style.chart.title.fontSize', def: 20, type: 'number', min: 8, max: 48},

TestingArena/ArenaVueUiFlow.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,9 @@ const model = ref([
169169
{ key: 'style.chart.padding.left', def: 12, type: 'number', min: 0, max: 100 },
170170
{ key: 'style.chart.padding.right', def: 12, type: 'number', min: 0, max: 100 },
171171
{ key: 'style.chart.padding.bottom', def: 12, type: 'number', min: 0, max: 100 },
172+
173+
{ key: 'style.chart.legend.position', def: 'bottom', type: 'select', options: ['top', 'bottom']},
174+
172175
{ key: 'style.chart.title.text', def: 'Lorem ipsum dolor', type: 'text' },
173176
{ key: 'style.chart.title.color', def: '#1A1A1A', type: 'color' },
174177
{ key: 'style.chart.title.fontSize', def: 20, type: 'number', min: 8, max: 42 },

TestingArena/ArenaVueUiGalaxy.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ const model = ref([
7373
{ key: 'style.chart.legend.roundingPercentage', def: 2, type: 'number', min: 0, max: 12},
7474
{ key: 'style.chart.legend.showValue', def: false, type: 'checkbox'},
7575
{ key: 'style.chart.legend.showPercentage', def: true, type: 'checkbox'},
76+
{ key: 'style.chart.legend.position', def: 'bottom', type: 'select', options: ['top', 'bottom']},
7677
7778
{ key: 'style.chart.title.text', def: 'Lorem ipsum dolor sit amet', type: 'text'},
7879
{ key: 'style.chart.title.color', def: '#1A1A1A', type: 'color'},

TestingArena/ArenaVueUiHistoryPlot.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,8 @@ const model = ref([
101101
{ key: 'style.chart.axes.y.name.offsetY', def: 0, type: 'number', min: -100, max: 100},
102102
{ key: 'style.chart.axes.y.name.bold', def: false, type: 'checkbox' },
103103
104+
{ key: 'style.chart.legend.position', def: 'bottom', type: 'select', options: ['top', 'bottom']},
105+
104106
{ key: 'style.chart.plots.radius', def: 16, type: 'range', min: 8, max: 42},
105107
{ key: 'style.chart.plots.stroke', def: '#FFFFFF', type: 'color'},
106108
{ key: 'style.chart.plots.strokeWidth', def: 1, type: 'number', min: 0, max: 12},

TestingArena/ArenaVueUiMoodRadar.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ const model = ref([
7979
{ key: 'style.chart.legend.show', def: true, type: 'checkbox'},
8080
{ key: 'style.chart.legend.roundingPercentage', def: 2, type: 'number', min: 0, max: 12},
8181
{ key: 'style.chart.legend.roundingValue', def: 2, type: 'number', min: 0, max: 12},
82+
{ key: 'style.chart.legend.position', def: 'bottom', type: 'select', options: ['top', 'bottom']},
83+
8284
{ key: 'table.show', def: false, type: 'checkbox'},
8385
{ key: 'table.responsiveBreakpoint', def: 300, type: 'number', min: 300, max: 800},
8486
{ key: 'table.columnNames.series', def: 'Series', type: 'text'},

TestingArena/ArenaVueUiNestedDonuts.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ const model = ref([
130130
{ key: 'style.chart.legend.roundingPercentage', def: 2, type: 'number', min: 0, max: 12},
131131
{ key: 'style.chart.legend.showValue', def: true, type: 'checkbox'},
132132
{ key: 'style.chart.legend.showPercentage', def: true, type: 'checkbox'},
133+
{ key: 'style.chart.legend.position', def: 'bottom', type: 'select', options: ['top', 'bottom']},
133134
134135
{ key: 'style.chart.title.text', def: 'Lorem ipsum dolor sit amet', type: 'text'},
135136
{ key: 'style.chart.title.color', def: '#1A1A1A', type: 'color'},

0 commit comments

Comments
 (0)