Skip to content

Commit

Permalink
splitLine bug fix
Browse files Browse the repository at this point in the history
fix this apache#90
  • Loading branch information
kener committed Sep 16, 2013
1 parent a768bfd commit 7a8f2a9
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/component/categoryAxis.js
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ define(function (require) {
yStart : sy,
xEnd : x,
yEnd : ey,
strokeColor : color[i % colorLength],
strokeColor : color[(i / _interval) % colorLength],
lineType : option.splitLine.lineStyle.type,
lineWidth : option.splitLine.lineStyle.width
}
Expand All @@ -424,7 +424,7 @@ define(function (require) {
yStart : y,
xEnd : ex,
yEnd : y,
strokeColor : color[i % colorLength],
strokeColor : color[(i / _interval) % colorLength],
linetype : option.splitLine.lineStyle.type,
lineWidth : option.splitLine.lineStyle.width
}
Expand All @@ -449,7 +449,7 @@ define(function (require) {
var lastX = grid.getX();
var curX;

for (var i = 0; i <= dataLength; i++) {
for (var i = 0; i <= dataLength; i += _interval) {
curX = i < dataLength
? getCoord(data[i].value || data[i])
: grid.getXend();
Expand All @@ -462,7 +462,7 @@ define(function (require) {
y : y,
width : curX - lastX,
height : height,
color : color[i % colorLength]
color : color[(i / _interval) % colorLength]
// type : option.splitArea.areaStyle.type,
}
};
Expand All @@ -477,7 +477,7 @@ define(function (require) {
var lastYend = grid.getYend();
var curY;

for (var i = 0; i <= dataLength; i++) {
for (var i = 0; i <= dataLength; i += _interval) {
curY = i < dataLength
? getCoord(data[i].value || data[i])
: grid.getY();
Expand All @@ -490,7 +490,7 @@ define(function (require) {
y : curY,
width : width,
height : lastYend - curY,
color : color[i % colorLength]
color : color[(i / _interval) % colorLength]
// type : option.splitArea.areaStyle.type
}
};
Expand Down

0 comments on commit 7a8f2a9

Please sign in to comment.