Skip to content

Commit

Permalink
Fix dataZoom elements z
Browse files Browse the repository at this point in the history
  • Loading branch information
pissang committed Jun 16, 2016
1 parent a74bb6c commit 90d037e
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
9 changes: 6 additions & 3 deletions src/component/dataZoom/SliderZoomView.js
Expand Up @@ -146,9 +146,10 @@ define(function (require) {

var barGroup = this._displayables.barGroup = new graphic.Group();

this._renderBackground();

this._renderHandle();

this._renderBackground();
this._renderDataShadow();

thisGroup.add(barGroup);
Expand Down Expand Up @@ -256,7 +257,8 @@ define(function (require) {
},
style: {
fill: dataZoomModel.get('backgroundColor')
}
},
z2: -40
}));
},

Expand Down Expand Up @@ -462,7 +464,8 @@ define(function (require) {
textAlign: 'center',
fill: textStyleModel.getTextColor(),
textFont: textStyleModel.getFont()
}
},
z2: 10
}));

}, this);
Expand Down
6 changes: 4 additions & 2 deletions test/parallel-nutrients.html
Expand Up @@ -34,7 +34,7 @@
'echarts/component/legend',
'echarts/component/tooltip',
'echarts/component/toolbox',
'echarts/component/visualMap',
'echarts/component/visualMap'
], function (ec, ct) {

$.getJSON('./data/nutrients.json', function (data) {
Expand All @@ -45,7 +45,9 @@

chart = myChart = echarts.init(document.getElementById('main'));

console.time('render');
chart.setOption(getOption(data));
console.timeEnd('render');

chart.on('axisAreaSelected', function (event) {
// var indices = chart.getModel().getSeries()[0].getRawIndicesByActiveState('active');
Expand Down Expand Up @@ -231,7 +233,7 @@
lineStyle: lineStyle,
inactiveOpacity: 0,
activeOpacity: 0.01,
progressive: 100,
progressive: 500,
smooth: true,
data: data
}
Expand Down
7 changes: 6 additions & 1 deletion test/theme.html
Expand Up @@ -26,7 +26,8 @@
'echarts/chart/bar',
'echarts/component/legend',
'echarts/component/grid',
'echarts/component/tooltip'
'echarts/component/tooltip',
'echarts/component/dataZoom'
], function (echarts, theme) {

var chart = echarts.init(document.getElementById('main'), 'dark');
Expand Down Expand Up @@ -75,6 +76,10 @@
align: 'right'
},
tooltip: {},
dataZoom: {
start: 10,
end: 20
},
xAxis: {
data: xAxisData,
axisLine: {
Expand Down

0 comments on commit 90d037e

Please sign in to comment.