Commit dc521a50 authored by Evgeny's avatar Evgeny

Fix bug with wrong x axis ticks

parent 8707812a
......@@ -8187,6 +8187,11 @@
function axisX(selection, x) {
selection.attr("transform", function (d) {
if($$.config.axis_x_start){
d -= $$.config.axis_x_start;
}
return "translate(" + Math.ceil(x(d) + tickOffset) + ", 0)";
});
}
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -14,6 +14,11 @@ function c3_axis(d3, params, $$) {
function axisX(selection, x) {
selection.attr("transform", function (d) {
if($$.config.axis_x_start){
d -= $$.config.axis_x_start;
}
return "translate(" + Math.ceil(x(d) + tickOffset) + ", 0)";
});
}
......
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