提交 f7b14a86 编写于 作者: K kener

多数据下不等距折线 fix #886

上级 7868b521
此差异已折叠。
因为 它太大了无法显示 source diff 。你可以改为 查看blob
......@@ -341,9 +341,10 @@ define('echarts/chart/line', [
}
}
this._calculMarkMapXY(xMarkMap, locationMap, 'xy');
this._buildBorkenLine(seriesArray, this.finalPLMap, xAxis, 'horizontal');
this._buildBorkenLine(seriesArray, this.finalPLMap, xAxis, 'other');
},
_buildBorkenLine: function (seriesArray, pointList, categoryAxis, orient) {
_buildBorkenLine: function (seriesArray, pointList, categoryAxis, curOrient) {
var orient = curOrient == 'other' ? 'horizontal' : curOrient;
var series = this.series;
var data;
for (var sIdx = seriesArray.length - 1; sIdx >= 0; sIdx--) {
......@@ -361,7 +362,7 @@ define('echarts/chart/line', [
var fillNormalColor = this.query(serie, 'itemStyle.normal.areaStyle.color');
for (var i = 0, l = seriesPL.length; i < l; i++) {
var singlePL = seriesPL[i];
var isLarge = this._isLarge(orient, singlePL);
var isLarge = curOrient != 'other' && this._isLarge(orient, singlePL);
if (!isLarge) {
for (var j = 0, k = singlePL.length; j < k; j++) {
data = serie.data[singlePL[j][2]];
......
......@@ -20506,9 +20506,10 @@ define('zrender/zrender', [
}
}
this._calculMarkMapXY(xMarkMap, locationMap, 'xy');
this._buildBorkenLine(seriesArray, this.finalPLMap, xAxis, 'horizontal');
this._buildBorkenLine(seriesArray, this.finalPLMap, xAxis, 'other');
},
_buildBorkenLine: function (seriesArray, pointList, categoryAxis, orient) {
_buildBorkenLine: function (seriesArray, pointList, categoryAxis, curOrient) {
var orient = curOrient == 'other' ? 'horizontal' : curOrient;
var series = this.series;
var data;
for (var sIdx = seriesArray.length - 1; sIdx >= 0; sIdx--) {
......@@ -20526,7 +20527,7 @@ define('zrender/zrender', [
var fillNormalColor = this.query(serie, 'itemStyle.normal.areaStyle.color');
for (var i = 0, l = seriesPL.length; i < l; i++) {
var singlePL = seriesPL[i];
var isLarge = this._isLarge(orient, singlePL);
var isLarge = curOrient != 'other' && this._isLarge(orient, singlePL);
if (!isLarge) {
for (var j = 0, k = singlePL.length; j < k; j++) {
data = serie.data[singlePL[j][2]];
此差异已折叠。
因为 它太大了无法显示 source diff 。你可以改为 查看blob
......@@ -433,13 +433,14 @@ define(function (require) {
this._calculMarkMapXY(xMarkMap, locationMap, 'xy');
this._buildBorkenLine(seriesArray, this.finalPLMap, xAxis, 'horizontal');
this._buildBorkenLine(seriesArray, this.finalPLMap, xAxis, 'other');
},
/**
* 生成折线和折线上的拐点
*/
_buildBorkenLine: function (seriesArray, pointList, categoryAxis, orient) {
_buildBorkenLine: function (seriesArray, pointList, categoryAxis, curOrient) {
var orient = curOrient == 'other' ? 'horizontal' : curOrient;
var series = this.series;
var data;
......@@ -473,7 +474,7 @@ define(function (require) {
for (var i = 0, l = seriesPL.length; i < l; i++) {
var singlePL = seriesPL[i];
var isLarge = this._isLarge(orient, singlePL);
var isLarge = curOrient != 'other' && this._isLarge(orient, singlePL);
if (!isLarge) { // 非大数据模式才显示拐点symbol
for (var j = 0, k = singlePL.length; j < k; j++) {
data = serie.data[singlePL[j][2]];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册