Skip to content

Commit

Permalink
Merge pull request #497 from gobitfly/BIDS-3040/validator-summary-tab…
Browse files Browse the repository at this point in the history
…-chart-improvements

(BIDS-3040) Improves the chart of rewards
  • Loading branch information
thib-wien authored Jun 18, 2024
2 parents 042578d + 94aa9a3 commit 2204f03
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion frontend/components/dashboard/chart/SummaryChart.vue
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ const option = computed(() => {
interface SeriesObject {
data: number[];
type: string;
smooth: boolean;
symbol: string,
name: string;
}
Expand All @@ -84,6 +86,8 @@ const option = computed(() => {
const newObj: SeriesObject = {
data: element.data,
type: 'line',
smooth: true,
symbol: 'none',
name
}
series.push(newObj)
Expand Down Expand Up @@ -121,7 +125,9 @@ const option = computed(() => {
padding: [0, 0, 30, 0]
},
type: 'value',
minInterval: 50,
minInterval: 10,
maxInterval: 20,
min: (range: any) => Math.max(0, 10 * Math.ceil(range.min / 10 - 1)),
silent: true,
axisLabel: {
formatter: '{value} %',
Expand Down

0 comments on commit 2204f03

Please sign in to comment.