Skip to content

Commit d057623

Browse files
committed
Fix vertical bar chart
1 parent 9128d8d commit d057623

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

webapp/DocumentRoot/ui/charts.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -240,11 +240,6 @@ const SBOBarChart = {
240240
}
241241
cd = chartDataParam;
242242
}
243-
if(this.vertical){
244-
catValues.reverse();
245-
valValues.reverse();
246-
}
247-
248243

249244
const option = {
250245
title: {
@@ -260,7 +255,7 @@ const SBOBarChart = {
260255
axisPointer: {
261256
type: 'shadow' // 'shadow' for bar charts, 'line' for line charts
262257
},
263-
formatter: '{b}<br/>{a}: {c}' // Custom tooltip format
258+
formatter: this.vertical ? '{b}: {c}' : '{b}<br/>{a}: {c}'
264259
},
265260
grid: {
266261
left: '3%',

webapp/DocumentRoot/ui/dashboard.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@
103103
</div>
104104
-->
105105
<div class="col-md-6 col-lg-6">
106-
<sbo-barchart ref="pathsBarChart" target-element-id="pathsBarChart" title="Top paths" series-name="Paths" v-bind:hide-legends="false" v-bind:vertical="true"></sbo-barchart>
106+
<sbo-barchart ref="pathsBarChart" target-element-id="pathsBarChart" title="Top paths" series-name="Path" v-bind:hide-legends="false" v-bind:vertical="true"></sbo-barchart>
107107
<sbo-details-metrics v-if="loadedCharts.pathsBarChart" ref="pathsDetailedMetrics" v-bind:show-key-value-prop="false" elem-id="pathsDetailedMetrics"></sbo-details-metrics>
108108
</div>
109109
</div>

0 commit comments

Comments
 (0)