Fix categories for normalized charts

parent 622bb8b4
......@@ -595,6 +595,14 @@ c3_chart_internal_fn.redraw = function (options, transitions) {
$$.subXAxis.tickValues([]);
}
// ugly hack to draw categories correctly
$$.tuneAxisTicks();
$$.updateSizes();
$$.updateScales();
$$.updateSvgSize();
$$.axes.x.attr("transform", $$.getTranslate('x'));
$$.updateXAxisTickValues(targetsToShow);
if (config.zoom_rescale && !options.flow) {
xDomainForZoom = $$.x.orgDomain();
}
......
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