提交 41b4f4b0 编写于 作者: A abigale Li 提交者: BingBlog

resolve frontend fecs problem (#123)

* modify overlay and offset chart view interplay problem

* resolve frontend fecs problem
上级 5a16e71a
......@@ -167,8 +167,7 @@ export default {
series: seriesOption
};
var zr1 = this.myChart.getZr();
let zr1 = this.myChart.getZr();
zr1.on('mousemove', function (e) {
zr1.remove(zrDrawElement.hoverLine);
zr1.remove(zrDrawElement.tooltip);
......@@ -193,7 +192,7 @@ export default {
grid.top = '42%';
grid.left = '4%';
grid.right = '15%';
chartData.forEach((dataItem) => {
chartData.forEach(function (dataItem) {
let lineData = [];
maxStep = Math.max(dataItem.step, maxStep);
minStep = Math.min(dataItem.step, minStep);
......@@ -296,10 +295,10 @@ export default {
}
zrDrawElement.hoverDots = [];
let zr = ecChart.getZr();
function removeTooltip(){
function removeTooltip() {
if (zrDrawElement.hoverLine) {
zr.remove(zrDrawElement.hoverLine);
zr.remove(zrDrawElement.tooltip);
......@@ -318,7 +317,7 @@ export default {
removeTooltip();
let nearestIndex = findNearestValue(e.offsetX, e.offsetY);
if (nearestIndex) {
let getCoord = function(pt) {
let getCoord = function (pt) {
return ecChart.convertToPixel('grid', pt);
};
let gridRect = ecChart.getModel().getComponent('grid', 0).coordinateSystem.getRect();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册