Skip to content

Commit

Permalink
fix: improved zoom and default values for y axis
Browse files Browse the repository at this point in the history
  • Loading branch information
corteggiano authored and mnischay committed Jan 18, 2024
1 parent c8be85d commit 112e5c5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ export const convertYAxis = (
show: axis?.showY ?? DEFAULT_Y_AXIS.show,
min: axis?.yMin ?? undefined,
max: axis?.yMax ?? undefined,
type: 'value',
scale: true,
axisLabel: {
hideOverlap: true,
color: '#5f6b7a',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const DEFAULT_TOOLBOX_CONFIG: ToolboxComponentOption = {
show: true,
right: 30,
feature: {
dataZoom: { yAxisIndex: false, title: { back: 'Undo\nzoom' } },
dataZoom: { title: { back: 'Undo\nzoom' } },
},
iconStyle: {
borderColor: '#414d5c',
Expand Down Expand Up @@ -52,7 +52,7 @@ export const DEFAULT_TOOLTIP: TooltipComponentOption = {

export const DEFAULT_DATA_ZOOM: DataZoomComponentOption = {
type: 'inside',
filterMode: 'none',
filterMode: 'filter',
zoomOnMouseWheel: true,
moveOnMouseMove: 'shift',
moveOnMouseWheel: false,
Expand Down

0 comments on commit 112e5c5

Please sign in to comment.