Commit 94255f82 authored by Masayuki Tanaka's avatar Masayuki Tanaka

Enable bar chart with normal axis

parent c5bb0515
......@@ -621,7 +621,13 @@
};
}
function getBarW (axis, barTargetsNum) {
return (axis.tickOffset()*2*0.6) / barTargetsNum;
var barW;
if (isCategorized) {
barW = (axis.tickOffset()*2*0.6) / barTargetsNum;
} else {
barW = (((__axis_rotated ? height : width)*getXDomainRatio())/(maxDataCount()-1))*0.6;
}
return barW;
}
function getBarH (height, isSub) {
var h = height === null ? function(v){ return v; } : function(v){ return height-v; };
......
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