Commit 1d722724 authored by Evgeny's avatar Evgeny

Fix legend and text sizes

parent bc7234a5
......@@ -4166,7 +4166,7 @@
var hasFocused = $$.legend.selectAll('.' + CLASS.legendItemFocused).size();
var texts, rects, tiles, background;
var nodeOffset = typeof process === 'undefined' ? 1 : 3;
var nodeOffset = typeof process === 'undefined' ? 1 : 5;
options = options || {};
withTransition = getOption(options, "withTransition", true);
......@@ -4674,7 +4674,8 @@
};
c3_chart_internal_fn.getMaxTickWidth = function () {
return 10;
var $$ = this;
return $$.config.normalized ? 15 : 10;
};
c3_chart_internal_fn.updateAxisLabels = function (withTransition) {
......
......@@ -279,7 +279,8 @@ c3_chart_internal_fn.rotateTickText = function (axis, transition, rotate) {
};
c3_chart_internal_fn.getMaxTickWidth = function () {
return 10;
var $$ = this;
return $$.config.normalized ? 15 : 10;
};
c3_chart_internal_fn.updateAxisLabels = function (withTransition) {
......
......@@ -125,7 +125,7 @@ c3_chart_internal_fn.updateLegend = function (targetIds, options, transitions) {
var hasFocused = $$.legend.selectAll('.' + CLASS.legendItemFocused).size();
var texts, rects, tiles, background;
var nodeOffset = typeof process === 'undefined' ? 1 : 3;
var nodeOffset = typeof process === 'undefined' ? 1 : 5;
options = options || {};
withTransition = getOption(options, "withTransition", true);
......
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