Commit ccfb2963 authored by Masayuki Tanaka's avatar Masayuki Tanaka

Fix x domain when only 1 data on category axis - #201

parent 93c0082e
...@@ -1345,7 +1345,7 @@ ...@@ -1345,7 +1345,7 @@
padding = getXDomainPadding(targets), padding = getXDomainPadding(targets),
min = 0, max = 0; min = 0, max = 0;
// show center of x domain if min and max are the same // show center of x domain if min and max are the same
if ((firstX - lastX) === 0) { if ((firstX - lastX) === 0 && !isCategorized) {
firstX = isTimeSeries ? new Date(firstX.getTime() * 0.5) : -0.5; firstX = isTimeSeries ? new Date(firstX.getTime() * 0.5) : -0.5;
lastX = isTimeSeries ? new Date(lastX.getTime() * 1.5) : 0.5; lastX = isTimeSeries ? new Date(lastX.getTime() * 1.5) : 0.5;
} }
......
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment