Skip to content

Commit

Permalink
Merge pull request #14388 from apache/fix-14285
Browse files Browse the repository at this point in the history
fix(dataZoom):fix dataZoom setting no effect
  • Loading branch information
pissang committed Mar 3, 2021
2 parents cc8a94a + 9e647d3 commit a7ce768
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/component/dataZoom/SliderZoomView.ts
Expand Up @@ -42,6 +42,7 @@ import { createSymbol, symbolBuildProxies } from '../../util/symbol';
import { deprecateLog } from '../../util/log';
import { PointLike } from 'zrender/src/core/Point';
import Displayable from 'zrender/src/graphic/Displayable';
import {createTextStyle} from "../../label/labelStyle";

const Rect = graphic.Rect;

Expand Down Expand Up @@ -599,13 +600,13 @@ class SliderZoomView extends DataZoomView {
handleLabels[handleIndex] = new graphic.Text({
silent: true,
invisible: true,
style: {
style: createTextStyle(textStyleModel, {
x: 0, y: 0, text: '',
verticalAlign: 'middle',
align: 'center',
fill: textStyleModel.getTextColor(),
font: textStyleModel.getFont()
},
}),
z2: 10
}));

Expand Down

0 comments on commit a7ce768

Please sign in to comment.