Skip to content

Commit

Permalink
Fix yAxis min and max values causing issues when timeline is set to y…
Browse files Browse the repository at this point in the history
…Axis or xyAxis
  • Loading branch information
katrinDY committed Dec 6, 2023
1 parent f50db38 commit d665751
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/js/src/compose/types/chart/chart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ export default class Chart extends BaseChart {
type: yType === 'linear' ? 'value' : 'log',
position,
nameLocation: labelPosition,
min: beginAtZero ? 0 : min || undefined,
max: max || undefined,
min: beginAtZero ? 0 : Number(min) || undefined,
max: Number(max) || undefined,
axisLabel: {
interval: 0,
overflow: 'break',
Expand Down

0 comments on commit d665751

Please sign in to comment.