billboard.js 2.2.6 → 2.2.8-a

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/dist/billboard.css +1 -1
  3. package/dist/billboard.js +3001 -3650
  4. package/dist/billboard.min.css +1 -1
  5. package/dist/billboard.min.js +2 -2
  6. package/dist/{billboard.esm.js → billboard.mjs} +379 -378
  7. package/dist/billboard.pkgd.js +18206 -14604
  8. package/dist/billboard.pkgd.min.js +2 -2
  9. package/dist/plugin/billboardjs-plugin-bubblecompare.js +30 -45
  10. package/dist/plugin/billboardjs-plugin-bubblecompare.min.js +2 -2
  11. package/dist/plugin/{billboardjs-plugin-bubblecompare.esm.js → billboardjs-plugin-bubblecompare.mjs} +14 -21
  12. package/dist/plugin/billboardjs-plugin-stanford.js +281 -345
  13. package/dist/plugin/billboardjs-plugin-stanford.min.js +2 -2
  14. package/dist/plugin/{billboardjs-plugin-stanford.esm.js → billboardjs-plugin-stanford.mjs} +31 -39
  15. package/dist/plugin/billboardjs-plugin-textoverlap.js +243 -291
  16. package/dist/plugin/billboardjs-plugin-textoverlap.min.js +2 -2
  17. package/dist/plugin/{billboardjs-plugin-textoverlap.esm.js → billboardjs-plugin-textoverlap.mjs} +20 -28
  18. package/dist/theme/datalab.css +1 -1
  19. package/dist/theme/datalab.min.css +1 -1
  20. package/dist/theme/graph.css +1 -1
  21. package/dist/theme/graph.min.css +1 -1
  22. package/dist/theme/insight.css +1 -1
  23. package/dist/theme/insight.min.css +1 -1
  24. package/package.json +2 -2
  25. package/src/.DS_Store +0 -0
  26. package/src/ChartInternal/.DS_Store +0 -0
  27. package/src/ChartInternal/data/data.ts +3 -2
  28. package/src/ChartInternal/internals/redraw.ts +7 -6
  29. package/src/ChartInternal/shape/.DS_Store +0 -0
  30. package/src/ChartInternal/shape/arc.ts +4 -2
  31. package/src/Plugin/.DS_Store +0 -0
  32. package/src/config/.DS_Store +0 -0
  33. package/src/config/Options/.DS_Store +0 -0
  34. package/src/config/Store/.DS_Store +0 -0
  35. package/types/.DS_Store +0 -0
  36. package/types/plugin/.DS_Store +0 -0
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 2.2.6
8
+ * @version 2.2.8a
9
9
  */
10
10
  import { timeParse, utcParse, timeFormat, utcFormat } from 'd3-time-format';
11
11
  import { event, select, mouse, namespaces, selectAll } from 'd3-selection';
@@ -347,7 +347,7 @@ var Store = /** @class */ (function () {
347
347
  return Store;
348
348
  }());
349
349
 
350
- /*! *****************************************************************************
350
+ /******************************************************************************
351
351
  Copyright (c) Microsoft Corporation.
352
352
 
353
353
  Permission to use, copy, modify, and/or distribute this software for any
@@ -361,18 +361,15 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
361
361
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
362
362
  PERFORMANCE OF THIS SOFTWARE.
363
363
  ***************************************************************************** */
364
-
365
364
  var _assign = function __assign() {
366
365
  return _assign = Object.assign || function (t) {
367
366
  for (var s, i = 1, n = arguments.length; i < n; i++) for (var p in s = arguments[i], s) Object.prototype.hasOwnProperty.call(s, p) && (t[p] = s[p]);
368
-
369
367
  return t;
370
368
  }, _assign.apply(this, arguments);
371
369
  };
372
- function __spreadArray(to, from) {
373
- for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) to[j] = from[i];
374
-
375
- return to;
370
+ function __spreadArray(to, from, pack) {
371
+ if (pack || arguments.length === 2) for (var ar, i = 0, l = from.length; i < l; i++) (ar || !(i in from)) && (ar || (ar = Array.prototype.slice.call(from, 0, i)), ar[i] = from[i]);
372
+ return to.concat(ar || Array.prototype.slice.call(from));
376
373
  }
377
374
 
378
375
  /**
@@ -1995,7 +1992,7 @@ function endall(transition, cb) {
1995
1992
  for (var _i = 0; _i < arguments.length; _i++) {
1996
1993
  args[_i] = arguments[_i];
1997
1994
  }
1998
- !--n && cb.apply.apply(cb, __spreadArray([this], args));
1995
+ !--n && cb.apply.apply(cb, __spreadArray([this], args, false));
1999
1996
  });
2000
1997
  }
2001
1998
  /**
@@ -2035,7 +2032,7 @@ function setTextValue(node, text, dy, toMiddle) {
2035
2032
  multiline.forEach(function (v, i) {
2036
2033
  node.append("tspan")
2037
2034
  .attr("x", 0)
2038
- .attr("dy", (i === 0 ? dy[0] * len_1 : dy[1]) + "em")
2035
+ .attr("dy", "".concat(i === 0 ? dy[0] * len_1 : dy[1], "em"))
2039
2036
  .text(v);
2040
2037
  });
2041
2038
  }
@@ -2075,7 +2072,10 @@ function getPathBox(path) {
2075
2072
  var x = items[0].x;
2076
2073
  var y = Math.min(items[0].y, items[1].y);
2077
2074
  return {
2078
- x: x, y: y, width: width, height: height
2075
+ x: x,
2076
+ y: y,
2077
+ width: width,
2078
+ height: height
2079
2079
  };
2080
2080
  }
2081
2081
  /**
@@ -2095,7 +2095,7 @@ function getBrushSelection(_a) {
2095
2095
  selection = event$1.selection;
2096
2096
  // check from brush area selection
2097
2097
  }
2098
- else if (main && (selection = main.select("." + CLASS.brush).node())) {
2098
+ else if (main && (selection = main.select(".".concat(CLASS.brush)).node())) {
2099
2099
  selection = brushSelection(selection);
2100
2100
  }
2101
2101
  return selection;
@@ -2240,7 +2240,7 @@ function getCssRules(styleSheets) {
2240
2240
  }
2241
2241
  }
2242
2242
  catch (e) {
2243
- console.error("Error while reading rules from " + sheet.href + ": " + e.toString());
2243
+ console.error("Error while reading rules from ".concat(sheet.href, ": ").concat(e.toString()));
2244
2244
  }
2245
2245
  });
2246
2246
  return rules;
@@ -2308,7 +2308,7 @@ function mergeObj(target) {
2308
2308
  }
2309
2309
  });
2310
2310
  }
2311
- return mergeObj.apply(void 0, __spreadArray([target], objectN));
2311
+ return mergeObj.apply(void 0, __spreadArray([target], objectN, false));
2312
2312
  }
2313
2313
  /**
2314
2314
  * Sort value
@@ -2427,7 +2427,7 @@ var emulateEvent = {
2427
2427
  function tplProcess(tpl, data) {
2428
2428
  var res = tpl;
2429
2429
  for (var x in data) {
2430
- res = res.replace(new RegExp("{=" + x + "}", "g"), data[x]);
2430
+ res = res.replace(new RegExp("{=".concat(x, "}"), "g"), data[x]);
2431
2431
  }
2432
2432
  return res;
2433
2433
  }
@@ -2452,7 +2452,7 @@ function parseDate(date) {
2452
2452
  }
2453
2453
  if (!parsedDate || isNaN(+parsedDate)) {
2454
2454
  console && console.error &&
2455
- console.error("Failed to parse x '" + date + "' to Date object");
2455
+ console.error("Failed to parse x '".concat(date, "' to Date object"));
2456
2456
  }
2457
2457
  return parsedDate;
2458
2458
  }
@@ -2700,7 +2700,7 @@ var dataConvert = {
2700
2700
  data = {};
2701
2701
  ["url", "mimeType", "headers", "keys", "json", "keys", "rows", "columns"]
2702
2702
  .forEach(function (v) {
2703
- var key = "data_" + v;
2703
+ var key = "data_".concat(v);
2704
2704
  if (key in args) {
2705
2705
  data[v] = args[key];
2706
2706
  }
@@ -2749,10 +2749,10 @@ var dataConvert = {
2749
2749
  if (req.readyState === 4) {
2750
2750
  if (req.status === 200) {
2751
2751
  var response = req.responseText;
2752
- response && done.call(_this, _this["convert" + capitalize(mimeType) + "ToData"](mimeType === "json" ? JSON.parse(response) : response, keys));
2752
+ response && done.call(_this, _this["convert".concat(capitalize(mimeType), "ToData")](mimeType === "json" ? JSON.parse(response) : response, keys));
2753
2753
  }
2754
2754
  else {
2755
- throw new Error(url + ": Something went wrong loading!");
2755
+ throw new Error("".concat(url, ": Something went wrong loading!"));
2756
2756
  }
2757
2757
  }
2758
2758
  };
@@ -2849,7 +2849,7 @@ var dataConvert = {
2849
2849
  var newRow_1 = {};
2850
2850
  row.forEach(function (v, j) {
2851
2851
  if (isUndefined(v)) {
2852
- throw new Error("Source data is missing a component at (" + i + ", " + j + ")!");
2852
+ throw new Error("Source data is missing a component at (".concat(i, ", ").concat(j, ")!"));
2853
2853
  }
2854
2854
  newRow_1[keys[j]] = v;
2855
2855
  });
@@ -2868,7 +2868,7 @@ var dataConvert = {
2868
2868
  newRows[j - 1] = {};
2869
2869
  }
2870
2870
  if (isUndefined(v)) {
2871
- throw new Error("Source data is missing a component at (" + i + ", " + j + ")!");
2871
+ throw new Error("Source data is missing a component at (".concat(i, ", ").concat(j, ")!"));
2872
2872
  }
2873
2873
  newRows[j - 1][key] = v;
2874
2874
  }
@@ -2921,7 +2921,7 @@ var dataConvert = {
2921
2921
  // check x is defined
2922
2922
  ids.forEach(function (id) {
2923
2923
  if (!_this.data.xs[id]) {
2924
- throw new Error("x is not defined for id = \"" + id + "\".");
2924
+ throw new Error("x is not defined for id = \"".concat(id, "\"."));
2925
2925
  }
2926
2926
  });
2927
2927
  // convert to target
@@ -3177,8 +3177,8 @@ var data$1 = {
3177
3177
  (data || this.data.targets.map(function (t) { return t.values; }))
3178
3178
  .forEach(function (v, i) {
3179
3179
  var value = v.map(getBaseValue).filter(isNumber);
3180
- min = Math.min.apply(Math, __spreadArray([i ? min : Infinity], value));
3181
- max = Math.max.apply(Math, __spreadArray([i ? max : -Infinity], value));
3180
+ min = Math.min.apply(Math, __spreadArray([i ? min : Infinity], value, false));
3181
+ max = Math.max.apply(Math, __spreadArray([i ? max : -Infinity], value, false));
3182
3182
  });
3183
3183
  return { min: min, max: max };
3184
3184
  },
@@ -3245,8 +3245,8 @@ var data$1 = {
3245
3245
  var total = $$.cache.get(cacheKey);
3246
3246
  if (!isNumber(total)) {
3247
3247
  var sum = mergeArray($$.data.targets.map(function (t) { return t.values; }))
3248
- .map(function (v) { return v.value; })
3249
- .reduce(function (p, c) { return p + c; });
3248
+ .map(function (v) { return v.value; });
3249
+ total = sum.length ? sum.reduce(function (p, c) { return p + c; }) : 0;
3250
3250
  $$.cache.add(cacheKey, total = sum);
3251
3251
  }
3252
3252
  if (subtractHidden) {
@@ -3425,7 +3425,7 @@ var data$1 = {
3425
3425
  */
3426
3426
  orderTargets: function (targetsValue) {
3427
3427
  var $$ = this;
3428
- var targets = __spreadArray([], targetsValue);
3428
+ var targets = __spreadArray([], targetsValue, true);
3429
3429
  var fn = $$.getSortCompareFn();
3430
3430
  fn && targets.sort(fn);
3431
3431
  return targets;
@@ -3546,7 +3546,7 @@ var data$1 = {
3546
3546
  data
3547
3547
  .filter(function (v) { return $$.isBarType(v.id); })
3548
3548
  .forEach(function (v) {
3549
- var shape = main.select("." + CLASS.bars + $$.getTargetSelectorSuffix(v.id) + " ." + CLASS.bar + "-" + v.index).node();
3549
+ var shape = main.select(".".concat(CLASS.bars).concat($$.getTargetSelectorSuffix(v.id), " .").concat(CLASS.bar, "-").concat(v.index)).node();
3550
3550
  if (!closest && $$.isWithinBar(shape)) {
3551
3551
  closest = v;
3552
3552
  }
@@ -3624,7 +3624,7 @@ var data$1 = {
3624
3624
  updateDataAttributes: function (name, attrs) {
3625
3625
  var $$ = this;
3626
3626
  var config = $$.config;
3627
- var current = config["data_" + name];
3627
+ var current = config["data_".concat(name)];
3628
3628
  if (isUndefined(attrs)) {
3629
3629
  return current;
3630
3630
  }
@@ -3821,7 +3821,7 @@ var dataLoad = {
3821
3821
  state.withoutFadeIn[id] = false;
3822
3822
  // Remove target's elements
3823
3823
  if ($el.legend) {
3824
- $el.legend.selectAll("." + CLASS.legendItem + $$.getTargetSelectorSuffix(id)).remove();
3824
+ $el.legend.selectAll(".".concat(CLASS.legendItem).concat($$.getTargetSelectorSuffix(id))).remove();
3825
3825
  }
3826
3826
  // Remove target
3827
3827
  $$.data.targets = $$.data.targets.filter(function (t) { return t.id !== id; });
@@ -3851,7 +3851,7 @@ var interaction = {
3851
3851
  return;
3852
3852
  }
3853
3853
  }
3854
- main.selectAll("." + CLASS.shape + "-" + index)
3854
+ main.selectAll(".".concat(CLASS.shape, "-").concat(index))
3855
3855
  .each(function () {
3856
3856
  select(this).classed(CLASS.EXPANDED, true);
3857
3857
  if (isSelectionEnabled) {
@@ -3902,11 +3902,11 @@ var interaction = {
3902
3902
  var callback_1 = config[isOver ? "data_onover" : "data_onout"].bind($$.api);
3903
3903
  config.color_onover && $$.setOverColor(isOver, d, isArc);
3904
3904
  if (isArc) {
3905
- callback_1(d, main.select("." + CLASS.arc + $$.getTargetSelectorSuffix(d.id)).node());
3905
+ callback_1(d, main.select(".".concat(CLASS.arc).concat($$.getTargetSelectorSuffix(d.id))).node());
3906
3906
  }
3907
3907
  else if (!config.tooltip_grouped) {
3908
3908
  var last_1 = $$.cache.get(KEY.setOverOut) || [];
3909
- var shape = main.selectAll("." + CLASS.shape + "-" + d)
3909
+ var shape = main.selectAll(".".concat(CLASS.shape, "-").concat(d))
3910
3910
  .filter(function (d) {
3911
3911
  return $$.isWithinShape(this, d);
3912
3912
  });
@@ -3931,7 +3931,7 @@ var interaction = {
3931
3931
  $$.showCircleFocus($$.getAllValuesOnIndex(d, true)) :
3932
3932
  $$.expandCirclesBars(d, null, true);
3933
3933
  }
3934
- !$$.isMultipleX() && main.selectAll("." + CLASS.shape + "-" + d)
3934
+ !$$.isMultipleX() && main.selectAll(".".concat(CLASS.shape, "-").concat(d))
3935
3935
  .each(function (d) {
3936
3936
  callback_1(d, this);
3937
3937
  });
@@ -3983,7 +3983,7 @@ var interaction = {
3983
3983
  var $$ = this;
3984
3984
  var config = $$.config, _a = $$.state, eventReceiver = _a.eventReceiver, hasAxis = _a.hasAxis, hasRadar = _a.hasRadar, _b = $$.$el, eventRect = _b.eventRect, arcs = _b.arcs, radar = _b.radar;
3985
3985
  var isMultipleX = $$.isMultipleX();
3986
- var element = (hasRadar ? radar.axes.select("." + CLASS.axis + "-" + index + " text") : (eventRect || arcs.selectAll("." + CLASS.target + " path").filter(function (d, i) { return i === index; }))).node();
3986
+ var element = (hasRadar ? radar.axes.select(".".concat(CLASS.axis, "-").concat(index, " text")) : (eventRect || arcs.selectAll(".".concat(CLASS.target, " path")).filter(function (d, i) { return i === index; }))).node();
3987
3987
  var _c = element.getBoundingClientRect(), width = _c.width, left = _c.left, top = _c.top;
3988
3988
  if (hasAxis && !hasRadar && !isMultipleX) {
3989
3989
  var coords = eventReceiver.coords[index];
@@ -4012,7 +4012,7 @@ var interaction = {
4012
4012
  */
4013
4013
  var classModule = {
4014
4014
  generateClass: function (prefix, targetId) {
4015
- return " " + prefix + " " + (prefix + this.getTargetSelectorSuffix(targetId));
4015
+ return " ".concat(prefix, " ").concat(prefix + this.getTargetSelectorSuffix(targetId));
4016
4016
  },
4017
4017
  /**
4018
4018
  * Get class string
@@ -4040,7 +4040,7 @@ var classModule = {
4040
4040
  */
4041
4041
  getChartClass: function (type) {
4042
4042
  var _this = this;
4043
- return function (d) { return CLASS["chart" + type] + _this.classTarget((d.data ? d.data : d).id); };
4043
+ return function (d) { return CLASS["chart".concat(type)] + _this.classTarget((d.data ? d.data : d).id); };
4044
4044
  },
4045
4045
  generateExtraLineClass: function () {
4046
4046
  var $$ = this;
@@ -4055,13 +4055,13 @@ var classModule = {
4055
4055
  };
4056
4056
  },
4057
4057
  classRegion: function (d, i) {
4058
- return this.generateClass(CLASS.region, i) + " " + ("class" in d ? d["class"] : "");
4058
+ return "".concat(this.generateClass(CLASS.region, i), " ").concat("class" in d ? d["class"] : "");
4059
4059
  },
4060
4060
  classTarget: function (id) {
4061
4061
  var additionalClassSuffix = this.config.data_classes[id];
4062
4062
  var additionalClass = "";
4063
4063
  if (additionalClassSuffix) {
4064
- additionalClass = " " + CLASS.target + "-" + additionalClassSuffix;
4064
+ additionalClass = " ".concat(CLASS.target, "-").concat(additionalClassSuffix);
4065
4065
  }
4066
4066
  return this.generateClass(CLASS.target, id) + additionalClass;
4067
4067
  },
@@ -4069,20 +4069,20 @@ var classModule = {
4069
4069
  return this.classFocused(d) + this.classDefocused(d);
4070
4070
  },
4071
4071
  classFocused: function (d) {
4072
- return " " + (this.state.focusedTargetIds.indexOf(d.id) >= 0 ? CLASS.focused : "");
4072
+ return " ".concat(this.state.focusedTargetIds.indexOf(d.id) >= 0 ? CLASS.focused : "");
4073
4073
  },
4074
4074
  classDefocused: function (d) {
4075
- return " " + (this.state.defocusedTargetIds.indexOf(d.id) >= 0 ? CLASS.defocused : "");
4075
+ return " ".concat(this.state.defocusedTargetIds.indexOf(d.id) >= 0 ? CLASS.defocused : "");
4076
4076
  },
4077
4077
  getTargetSelectorSuffix: function (targetId) {
4078
4078
  return targetId || targetId === 0 ?
4079
- ("-" + targetId).replace(/[\s?!@#$%^&*()_=+,.<>'":;\[\]\/|~`{}\\]/g, "-") : "";
4079
+ "-".concat(targetId).replace(/[\s?!@#$%^&*()_=+,.<>'":;\[\]\/|~`{}\\]/g, "-") : "";
4080
4080
  },
4081
4081
  selectorTarget: function (id, prefix) {
4082
4082
  var pfx = prefix || "";
4083
4083
  var target = this.getTargetSelectorSuffix(id);
4084
4084
  // select target & circle
4085
- return pfx + "." + (CLASS.target + target) + ", " + pfx + "." + (CLASS.circles + target);
4085
+ return "".concat(pfx, ".").concat(CLASS.target + target, ", ").concat(pfx, ".").concat(CLASS.circles + target);
4086
4086
  },
4087
4087
  selectorTargets: function (idsValue, prefix) {
4088
4088
  var _this = this;
@@ -4091,7 +4091,7 @@ var classModule = {
4091
4091
  ids.map(function (id) { return _this.selectorTarget(id, prefix); }) : null;
4092
4092
  },
4093
4093
  selectorLegend: function (id) {
4094
- return "." + (CLASS.legendItem + this.getTargetSelectorSuffix(id));
4094
+ return ".".concat(CLASS.legendItem + this.getTargetSelectorSuffix(id));
4095
4095
  },
4096
4096
  selectorLegends: function (ids) {
4097
4097
  var _this = this;
@@ -4190,10 +4190,10 @@ var color = {
4190
4190
  // Add background color to patterns
4191
4191
  var colorizedPatterns = pattern.map(function (p, index) {
4192
4192
  var color = p.replace(/[#\(\)\s,]/g, "");
4193
- var id = $$.state.datetimeId + "-pattern-" + color + "-" + index;
4193
+ var id = "".concat($$.state.datetimeId, "-pattern-").concat(color, "-").concat(index);
4194
4194
  return colorizePattern(tiles_1[index % tiles_1.length], p, id);
4195
4195
  });
4196
- pattern = colorizedPatterns.map(function (p) { return "url(#" + p.id + ")"; });
4196
+ pattern = colorizedPatterns.map(function (p) { return "url(#".concat(p.id, ")"); });
4197
4197
  $$.patterns = colorizedPatterns;
4198
4198
  }
4199
4199
  return function (d) {
@@ -4268,8 +4268,8 @@ var color = {
4268
4268
  }
4269
4269
  main.selectAll(isObject(d) ?
4270
4270
  // when is Arc type
4271
- "." + CLASS.arc + $$.getTargetSelectorSuffix(d.id) :
4272
- "." + CLASS.shape + "-" + d).style("fill", color);
4271
+ ".".concat(CLASS.arc).concat($$.getTargetSelectorSuffix(d.id)) :
4272
+ ".".concat(CLASS.shape, "-").concat(d)).style("fill", color);
4273
4273
  }
4274
4274
  };
4275
4275
 
@@ -4350,7 +4350,7 @@ var domain = {
4350
4350
  var ids = $$.mapToIds(targets);
4351
4351
  var ys = $$.getValuesAsIdKeyed(targets);
4352
4352
  if (dataGroups.length > 0) {
4353
- var hasValue_1 = $$["has" + (isMin ? "Negative" : "Positive") + "ValueInTargets"](targets);
4353
+ var hasValue_1 = $$["has".concat(isMin ? "Negative" : "Positive", "ValueInTargets")](targets);
4354
4354
  var _loop_1 = function (j, idsInGroup) {
4355
4355
  // Determine baseId
4356
4356
  idsInGroup = idsInGroup.filter(function (v) { return ids.indexOf(v) >= 0; });
@@ -4409,7 +4409,7 @@ var domain = {
4409
4409
  getYDomain: function (targets, axisId, xDomain) {
4410
4410
  var $$ = this;
4411
4411
  var axis = $$.axis, config = $$.config, scale = $$.scale;
4412
- var pfx = "axis_" + axisId;
4412
+ var pfx = "axis_".concat(axisId);
4413
4413
  if ($$.isStackNormalized()) {
4414
4414
  return [0, 100];
4415
4415
  }
@@ -4428,16 +4428,16 @@ var domain = {
4428
4428
  $$.getYDomain(targets, "y2", xDomain);
4429
4429
  }
4430
4430
  }
4431
- var yMin = config[pfx + "_min"];
4432
- var yMax = config[pfx + "_max"];
4431
+ var yMin = config["".concat(pfx, "_min")];
4432
+ var yMax = config["".concat(pfx, "_max")];
4433
4433
  var yDomainMin = $$.getYDomainMin(yTargets);
4434
4434
  var yDomainMax = $$.getYDomainMax(yTargets);
4435
- var center = config[pfx + "_center"];
4436
- var isZeroBased = __spreadArray([TYPE.BAR, TYPE.BUBBLE, TYPE.SCATTER], TYPE_BY_CATEGORY.Line).some(function (v) {
4435
+ var center = config["".concat(pfx, "_center")];
4436
+ var isZeroBased = __spreadArray([TYPE.BAR, TYPE.BUBBLE, TYPE.SCATTER], TYPE_BY_CATEGORY.Line, true).some(function (v) {
4437
4437
  var type = v.indexOf("area") > -1 ? "area" : v;
4438
- return $$.hasType(v, yTargets) && config[type + "_zerobased"];
4438
+ return $$.hasType(v, yTargets) && config["".concat(type, "_zerobased")];
4439
4439
  });
4440
- var isInverted = config[pfx + "_inverted"];
4440
+ var isInverted = config["".concat(pfx, "_inverted")];
4441
4441
  var showHorizontalDataLabel = $$.hasDataLabel() && config.axis_rotated;
4442
4442
  var showVerticalDataLabel = $$.hasDataLabel() && !config.axis_rotated;
4443
4443
  // MEMO: avoid inverting domain unexpectedly
@@ -4489,7 +4489,7 @@ var domain = {
4489
4489
  }
4490
4490
  // if padding is set, the domain will be updated relative the current domain value
4491
4491
  // ex) $$.height=300, padding.top=150, domainLength=4 --> domain=6
4492
- var p = config[pfx + "_padding"];
4492
+ var p = config["".concat(pfx, "_padding")];
4493
4493
  if (notEmpty(p)) {
4494
4494
  ["bottom", "top"].forEach(function (v) {
4495
4495
  padding[v] = axis.getPadding(p, v, padding[v], domainLength);
@@ -4506,7 +4506,7 @@ var domain = {
4506
4506
  },
4507
4507
  getXDomainMinMax: function (targets, type) {
4508
4508
  var $$ = this;
4509
- var configValue = $$.config["axis_x_" + type];
4509
+ var configValue = $$.config["axis_x_".concat(type)];
4510
4510
  var dataValue = getMinMax$1(type, targets.map(function (t) { return getMinMax$1(type, t.values.map(function (v) { return v.x; })); }));
4511
4511
  var value = isObject(configValue) ? configValue.value : configValue;
4512
4512
  value = isDefined(value) && $$.axis.isTimeSeries() ? parseDate(value) : value;
@@ -4652,7 +4652,7 @@ var domain = {
4652
4652
  */
4653
4653
  function getFormat($$, typeValue, v) {
4654
4654
  var config = $$.config;
4655
- var type = "axis_" + typeValue + "_tick_format";
4655
+ var type = "axis_".concat(typeValue, "_tick_format");
4656
4656
  var format = config[type] ?
4657
4657
  config[type] : $$.defaultValueFormat;
4658
4658
  return format(v);
@@ -4681,7 +4681,7 @@ var format = {
4681
4681
  return isValue(v) ? +v : "";
4682
4682
  },
4683
4683
  defaultArcValueFormat: function (v, ratio) {
4684
- return (ratio * 100).toFixed(1) + "%";
4684
+ return "".concat((ratio * 100).toFixed(1), "%");
4685
4685
  },
4686
4686
  dataLabelFormat: function (targetId) {
4687
4687
  var $$ = this;
@@ -4757,7 +4757,7 @@ var legend$1 = {
4757
4757
  $$.updateLegendElement(targetIds || $$.mapToIds($$.data.targets), optionz, transitions);
4758
4758
  }
4759
4759
  // toggle legend state
4760
- $el.legend.selectAll("." + CLASS.legendItem)
4760
+ $el.legend.selectAll(".".concat(CLASS.legendItem))
4761
4761
  .classed(CLASS.legendItemHidden, function (id) {
4762
4762
  var hide = !$$.isTargetToShow(id);
4763
4763
  if (hide) {
@@ -4874,7 +4874,7 @@ var legend$1 = {
4874
4874
  updateLegendItemColor: function (id, color) {
4875
4875
  var legend = this.$el.legend;
4876
4876
  if (legend) {
4877
- legend.select("." + CLASS.legendItem + "-" + id + " line")
4877
+ legend.select(".".concat(CLASS.legendItem, "-").concat(id, " line"))
4878
4878
  .style("stroke", color);
4879
4879
  }
4880
4880
  },
@@ -4928,7 +4928,7 @@ var legend$1 = {
4928
4928
  var $$ = this;
4929
4929
  var legend = $$.$el.legend;
4930
4930
  var targetIdz = $$.mapToTargetIds(targetIds);
4931
- legend && legend.selectAll("." + CLASS.legendItem)
4931
+ legend && legend.selectAll(".".concat(CLASS.legendItem))
4932
4932
  .filter(function (id) { return targetIdz.indexOf(id) >= 0; })
4933
4933
  .classed(CLASS.legendItemFocused, focus)
4934
4934
  .transition()
@@ -4945,7 +4945,7 @@ var legend$1 = {
4945
4945
  revertLegend: function () {
4946
4946
  var $$ = this;
4947
4947
  var legend = $$.$el.legend;
4948
- legend && legend.selectAll("." + CLASS.legendItem)
4948
+ legend && legend.selectAll(".".concat(CLASS.legendItem))
4949
4949
  .classed(CLASS.legendItemFocused, false)
4950
4950
  .transition()
4951
4951
  .duration(100)
@@ -5056,7 +5056,7 @@ var legend$1 = {
5056
5056
  if (!callFn(config.legend_item_onout, api, id)) {
5057
5057
  select(this).classed(CLASS.legendItemFocused, false);
5058
5058
  if (hasGauge) {
5059
- $$.undoMarkOverlapped($$, "." + CLASS.gaugeValue);
5059
+ $$.undoMarkOverlapped($$, ".".concat(CLASS.gaugeValue));
5060
5060
  }
5061
5061
  $$.api.revert();
5062
5062
  }
@@ -5065,7 +5065,7 @@ var legend$1 = {
5065
5065
  if (!callFn(config.legend_item_onover, api, id)) {
5066
5066
  select(this).classed(CLASS.legendItemFocused, true);
5067
5067
  if (hasGauge) {
5068
- $$.markOverlapped(id, $$, "." + CLASS.gaugeValue);
5068
+ $$.markOverlapped(id, $$, ".".concat(CLASS.gaugeValue));
5069
5069
  }
5070
5070
  if (!state.transiting && $$.isTargetToShow(id)) {
5071
5071
  api.focus(id);
@@ -5193,7 +5193,7 @@ var legend$1 = {
5193
5193
  var yForLegendTile = function (id, i) { return yForLegend(id, i) + 4; };
5194
5194
  var pos = -200;
5195
5195
  // Define g for legend area
5196
- var l = legend.selectAll("." + CLASS.legendItem)
5196
+ var l = legend.selectAll(".".concat(CLASS.legendItem))
5197
5197
  .data(targetIdz)
5198
5198
  .enter()
5199
5199
  .append("g");
@@ -5236,7 +5236,7 @@ var legend$1 = {
5236
5236
  .attr("href", function (data, idx, selection) {
5237
5237
  var node = selection[idx];
5238
5238
  var nodeName = node.nodeName.toLowerCase();
5239
- return nodeName === "use" ? "#" + state.datetimeId + "-point-" + data : undefined;
5239
+ return nodeName === "use" ? "#".concat(state.datetimeId, "-point-").concat(data) : undefined;
5240
5240
  });
5241
5241
  }
5242
5242
  else {
@@ -5251,9 +5251,9 @@ var legend$1 = {
5251
5251
  .attr("stroke-width", config.legend_item_tile_height);
5252
5252
  }
5253
5253
  // Set background for inset legend
5254
- background = legend.select("." + CLASS.legendBackground + " rect");
5254
+ background = legend.select(".".concat(CLASS.legendBackground, " rect"));
5255
5255
  if (state.isLegendInset && maxWidth > 0 && background.size() === 0) {
5256
- background = legend.insert("g", "." + CLASS.legendItem)
5256
+ background = legend.insert("g", ".".concat(CLASS.legendItem))
5257
5257
  .attr("class", CLASS.legendBackground)
5258
5258
  .append("rect");
5259
5259
  }
@@ -5266,7 +5266,7 @@ var legend$1 = {
5266
5266
  (withTransition ? texts.transition() : texts)
5267
5267
  .attr("x", xForLegendText)
5268
5268
  .attr("y", yForLegendText);
5269
- var rects = legend.selectAll("rect." + CLASS.legendItemEvent)
5269
+ var rects = legend.selectAll("rect.".concat(CLASS.legendItemEvent))
5270
5270
  .data(targetIdz);
5271
5271
  (withTransition ? rects.transition() : rects)
5272
5272
  .attr("width", function (id) { return widths[id]; })
@@ -5274,7 +5274,7 @@ var legend$1 = {
5274
5274
  .attr("x", xForLegendRect)
5275
5275
  .attr("y", yForLegendRect);
5276
5276
  if (usePoint) {
5277
- var tiles = legend.selectAll("." + CLASS.legendItemPoint)
5277
+ var tiles = legend.selectAll(".".concat(CLASS.legendItemPoint))
5278
5278
  .data(targetIdz);
5279
5279
  (withTransition ? tiles.transition() : tiles)
5280
5280
  .each(function () {
@@ -5310,7 +5310,7 @@ var legend$1 = {
5310
5310
  });
5311
5311
  }
5312
5312
  else {
5313
- var tiles = legend.selectAll("line." + CLASS.legendItemTile)
5313
+ var tiles = legend.selectAll("line.".concat(CLASS.legendItemTile))
5314
5314
  .data(targetIdz);
5315
5315
  (withTransition ? tiles.transition() : tiles)
5316
5316
  .style("stroke", getColor)
@@ -5365,16 +5365,16 @@ var redraw = {
5365
5365
  if (!$$.hasArcType() || state.hasRadar) {
5366
5366
  $$.updateCircleY && $$.updateCircleY();
5367
5367
  }
5368
+ // Data empty label positioning and text.
5369
+ config.data_empty_label_text && main.select("text.".concat(CLASS.text, ".").concat(CLASS.empty))
5370
+ .attr("x", state.width / 2)
5371
+ .attr("y", state.height / 2)
5372
+ .text(config.data_empty_label_text)
5373
+ .style("display", targetsToShow.length ? "none" : null);
5368
5374
  // update axis
5369
5375
  if (state.hasAxis) {
5370
5376
  // @TODO: Make 'init' state to be accessible everywhere not passing as argument.
5371
5377
  $$.axis.redrawAxis(targetsToShow, wth, transitions, flow, initializing);
5372
- // Data empty label positioning and text.
5373
- config.data_empty_label_text && main.select("text." + CLASS.text + "." + CLASS.empty)
5374
- .attr("x", state.width / 2)
5375
- .attr("y", state.height / 2)
5376
- .text(config.data_empty_label_text)
5377
- .style("display", targetsToShow.length ? "none" : null);
5378
5378
  // grid
5379
5379
  $$.hasGrid() && $$.updateGrid(duration);
5380
5380
  // rect for regions
@@ -5389,7 +5389,7 @@ var redraw = {
5389
5389
  $$.updateArea(durationForExit);
5390
5390
  }
5391
5391
  // circles for select
5392
- $el.text && main.selectAll("." + CLASS.selectedCircles)
5392
+ $el.text && main.selectAll(".".concat(CLASS.selectedCircles))
5393
5393
  .filter($$.isBarType.bind($$))
5394
5394
  .selectAll("circle")
5395
5395
  .remove();
@@ -6049,7 +6049,7 @@ var size = {
6049
6049
  var $$ = this;
6050
6050
  var config = $$.config, hasAxis = $$.state.hasAxis;
6051
6051
  var axisId = config.axis_rotated ? "y" : "x";
6052
- var axesLen = hasAxis ? config["axis_" + axisId + "_axes"].length : 0;
6052
+ var axesLen = hasAxis ? config["axis_".concat(axisId, "_axes")].length : 0;
6053
6053
  var padding = isValue(config.padding_bottom) ?
6054
6054
  config.padding_bottom : 0;
6055
6055
  return padding + (axesLen ? $$.getHorizontalAxisHeight(axisId) * axesLen : 0);
@@ -6059,7 +6059,7 @@ var size = {
6059
6059
  var config = $$.config, hasAxis = $$.state.hasAxis;
6060
6060
  var isRotated = config.axis_rotated;
6061
6061
  var axisId = isRotated ? "x" : "y";
6062
- var axesLen = hasAxis ? config["axis_" + axisId + "_axes"].length : 0;
6062
+ var axesLen = hasAxis ? config["axis_".concat(axisId, "_axes")].length : 0;
6063
6063
  var axisWidth = hasAxis ? $$.getAxisWidthByAxisId(axisId, withoutRecompute) : 0;
6064
6064
  var padding;
6065
6065
  if (isValue(config.padding_left)) {
@@ -6109,7 +6109,7 @@ var size = {
6109
6109
  * @private
6110
6110
  */
6111
6111
  getParentRectValue: function (key) {
6112
- var offsetName = "offset" + capitalize(key);
6112
+ var offsetName = "offset".concat(capitalize(key));
6113
6113
  var parent = this.$el.chart.node();
6114
6114
  var v;
6115
6115
  while (!v && parent && parent.tagName !== "BODY") {
@@ -6145,7 +6145,7 @@ var size = {
6145
6145
  var config = $$.config, $el = $$.$el;
6146
6146
  var hasLeftAxisRect = config.axis_rotated || (!config.axis_rotated && !config.axis_y_inner);
6147
6147
  var leftAxisClass = config.axis_rotated ? CLASS.axisX : CLASS.axisY;
6148
- var leftAxis = $el.main.select("." + leftAxisClass).node();
6148
+ var leftAxis = $el.main.select(".".concat(leftAxisClass)).node();
6149
6149
  var svgRect = leftAxis && hasLeftAxisRect ? leftAxis.getBoundingClientRect() : { right: 0 };
6150
6150
  var chartRect = $el.chart.node().getBoundingClientRect();
6151
6151
  var hasArc = $$.hasArcType();
@@ -6178,23 +6178,23 @@ var size = {
6178
6178
  .attr("width", current.width)
6179
6179
  .attr("height", current.height);
6180
6180
  if (hasAxis) {
6181
- var brush = svg.select("." + CLASS.brush + " .overlay");
6181
+ var brush = svg.select(".".concat(CLASS.brush, " .overlay"));
6182
6182
  var brushSize = { width: 0, height: 0 };
6183
6183
  if (brush.size()) {
6184
6184
  brushSize.width = +brush.attr("width");
6185
6185
  brushSize.height = +brush.attr("height");
6186
6186
  }
6187
- svg.selectAll(["#" + clip.id, "#" + clip.idGrid])
6187
+ svg.selectAll(["#".concat(clip.id), "#".concat(clip.idGrid)])
6188
6188
  .select("rect")
6189
6189
  .attr("width", width)
6190
6190
  .attr("height", height);
6191
- svg.select("#" + clip.idXAxis)
6191
+ svg.select("#".concat(clip.idXAxis))
6192
6192
  .select("rect")
6193
6193
  .call($$.setXAxisClipPath.bind($$));
6194
- svg.select("#" + clip.idYAxis)
6194
+ svg.select("#".concat(clip.idYAxis))
6195
6195
  .select("rect")
6196
6196
  .call($$.setYAxisClipPath.bind($$));
6197
- clip.idSubchart && svg.select("#" + clip.idSubchart)
6197
+ clip.idSubchart && svg.select("#".concat(clip.idSubchart))
6198
6198
  .select("rect")
6199
6199
  .attr("width", width)
6200
6200
  .attr("height", brushSize.height);
@@ -6304,7 +6304,7 @@ var text = {
6304
6304
  */
6305
6305
  initText: function () {
6306
6306
  var $el = this.$el;
6307
- $el.main.select("." + CLASS.chart).append("g")
6307
+ $el.main.select(".".concat(CLASS.chart)).append("g")
6308
6308
  .attr("class", CLASS.chartTexts);
6309
6309
  },
6310
6310
  /**
@@ -6317,7 +6317,7 @@ var text = {
6317
6317
  var classChartText = $$.getChartClass("Text");
6318
6318
  var classTexts = $$.getClass("texts", "id");
6319
6319
  var classFocus = $$.classFocus.bind($$);
6320
- var mainTextUpdate = $$.$el.main.select("." + CLASS.chartTexts).selectAll("." + CLASS.chartText)
6320
+ var mainTextUpdate = $$.$el.main.select(".".concat(CLASS.chartTexts)).selectAll(".".concat(CLASS.chartText))
6321
6321
  .data(targets)
6322
6322
  .attr("class", function (d) { return classChartText(d) + classFocus(d); });
6323
6323
  var mainTextEnter = mainTextUpdate.enter().append("g")
@@ -6337,7 +6337,7 @@ var text = {
6337
6337
  var config = $$.config, $el = $$.$el;
6338
6338
  var dataFn = $$.labelishData.bind($$);
6339
6339
  var classText = $$.getClass("text", "index");
6340
- $el.text = $el.main.selectAll("." + CLASS.texts).selectAll("." + CLASS.text)
6340
+ $el.text = $el.main.selectAll(".".concat(CLASS.texts)).selectAll(".".concat(CLASS.text))
6341
6341
  .data(function (d) { return ($$.isRadarType(d) ? d.values : dataFn(d)); });
6342
6342
  $el.text.exit()
6343
6343
  .transition()
@@ -6407,7 +6407,7 @@ var text = {
6407
6407
  var posY = y.bind(this)(d, index);
6408
6408
  // when is multiline
6409
6409
  if (this.childElementCount) {
6410
- this.setAttribute("transform", "translate(" + posX + " " + posY + ")");
6410
+ this.setAttribute("transform", "translate(".concat(posX, " ").concat(posY, ")"));
6411
6411
  }
6412
6412
  else {
6413
6413
  this.setAttribute("x", posX);
@@ -6434,7 +6434,7 @@ var text = {
6434
6434
  base = base.querySelector("text");
6435
6435
  }
6436
6436
  var text = base.textContent;
6437
- var cacheKey = KEY.textRect + "-" + text.replace(/\W/g, "_");
6437
+ var cacheKey = "".concat(KEY.textRect, "-").concat(text.replace(/\W/g, "_"));
6438
6438
  var rect = $$.cache.get(cacheKey);
6439
6439
  if (!rect) {
6440
6440
  $$.$el.svg.append("text")
@@ -6464,7 +6464,7 @@ var text = {
6464
6464
  var getter = forX ? $$.getXForText : $$.getYForText;
6465
6465
  $$.hasType("radar") && types.push("radar");
6466
6466
  types.forEach(function (v) {
6467
- points[v] = $$["generateGet" + capitalize(v) + "Points"](indices[v], false);
6467
+ points[v] = $$["generateGet".concat(capitalize(v), "Points")](indices[v], false);
6468
6468
  });
6469
6469
  return function (d, i) {
6470
6470
  var type = ($$.isAreaType(d) && "area") ||
@@ -6655,7 +6655,7 @@ var text = {
6655
6655
  if (ratio === void 0) { ratio = 0; }
6656
6656
  var $$ = this;
6657
6657
  var config = $$.config;
6658
- var threshold = config[type + "_label_threshold"] || 0;
6658
+ var threshold = config["".concat(type, "_label_threshold")] || 0;
6659
6659
  return ratio >= threshold;
6660
6660
  }
6661
6661
  };
@@ -6713,7 +6713,7 @@ var title = {
6713
6713
  if (title) {
6714
6714
  var y = $$.yForTitle.call($$);
6715
6715
  if (/g/i.test(title.node().tagName)) {
6716
- title.attr("transform", "translate(" + getTextPos(config.title_position, current.width) + ", " + y + ")");
6716
+ title.attr("transform", "translate(".concat(getTextPos(config.title_position, current.width), ", ").concat(y, ")"));
6717
6717
  }
6718
6718
  else {
6719
6719
  title.attr("x", $$.xForTitle.call($$)).attr("y", y);
@@ -6847,12 +6847,12 @@ var tooltip$1 = {
6847
6847
  var $$ = this;
6848
6848
  var api = $$.api, config = $$.config, state = $$.state;
6849
6849
  var _a = ["title", "name", "value"].map(function (v) {
6850
- var fn = config["tooltip_format_" + v];
6850
+ var fn = config["tooltip_format_".concat(v)];
6851
6851
  return isFunction(fn) ? fn.bind(api) : fn;
6852
6852
  }), titleFormat = _a[0], nameFormat = _a[1], valueFormat = _a[2];
6853
6853
  titleFormat = titleFormat || defaultTitleFormat;
6854
6854
  nameFormat = nameFormat || (function (name) { return name; });
6855
- valueFormat = valueFormat || ($$.isStackNormalized() ? function (v, ratio) { return (ratio * 100).toFixed(2) + "%"; } : defaultValueFormat);
6855
+ valueFormat = valueFormat || ($$.isStackNormalized() ? function (v, ratio) { return "".concat((ratio * 100).toFixed(2), "%"); } : defaultValueFormat);
6856
6856
  var order = config.tooltip_order;
6857
6857
  var getRowValue = function (row) { return ($$.axis && $$.isBubbleZType(row) ? $$.getBubbleZData(row.value, "z") : $$.getBaseValue(row)); };
6858
6858
  var getBgColor = $$.levelColor ? function (row) { return $$.levelColor(row.value); } : function (row) { return color(row); };
@@ -6902,28 +6902,28 @@ var tooltip$1 = {
6902
6902
  sanitise(titleFormat ? titleFormat(row.x) : row.x);
6903
6903
  text = tplProcess(tpl[0], {
6904
6904
  CLASS_TOOLTIP: CLASS.tooltip,
6905
- TITLE: isValue(title) ? (tplStr ? title : "<tr><th colspan=\"2\">" + title + "</th></tr>") : ""
6905
+ TITLE: isValue(title) ? (tplStr ? title : "<tr><th colspan=\"2\">".concat(title, "</th></tr>")) : ""
6906
6906
  });
6907
6907
  }
6908
6908
  if (!row.ratio && $$.$el.arcs) {
6909
- row.ratio = $$.getRatio("arc", $$.$el.arcs.select("path." + CLASS.arc + "-" + row.id).data()[0]);
6909
+ row.ratio = $$.getRatio("arc", $$.$el.arcs.select("path.".concat(CLASS.arc, "-").concat(row.id)).data()[0]);
6910
6910
  }
6911
6911
  param = [row.ratio, row.id, row.index, d];
6912
- value = sanitise(valueFormat.apply(void 0, __spreadArray([getRowValue(row)], param)));
6912
+ value = sanitise(valueFormat.apply(void 0, __spreadArray([getRowValue(row)], param, false)));
6913
6913
  if ($$.isAreaRangeType(row)) {
6914
- var _b = ["high", "low"].map(function (v) { return sanitise(valueFormat.apply(void 0, __spreadArray([$$.getAreaRangeData(row, v)], param))); }), high = _b[0], low = _b[1];
6915
- value = "<b>Mid:</b> " + value + " <b>High:</b> " + high + " <b>Low:</b> " + low;
6914
+ var _b = ["high", "low"].map(function (v) { return sanitise(valueFormat.apply(void 0, __spreadArray([$$.getAreaRangeData(row, v)], param, false))); }), high = _b[0], low = _b[1];
6915
+ value = "<b>Mid:</b> ".concat(value, " <b>High:</b> ").concat(high, " <b>Low:</b> ").concat(low);
6916
6916
  }
6917
6917
  if (value !== undefined) {
6918
6918
  // Skip elements when their name is set to null
6919
6919
  if (row.name === null) {
6920
6920
  return "continue";
6921
6921
  }
6922
- var name_1 = sanitise(nameFormat.apply(void 0, __spreadArray([row.name], param)));
6922
+ var name_1 = sanitise(nameFormat.apply(void 0, __spreadArray([row.name], param, false)));
6923
6923
  var color_1 = getBgColor(row);
6924
6924
  var contentValue_1 = {
6925
6925
  CLASS_TOOLTIP_NAME: CLASS.tooltipName + $$.getTargetSelectorSuffix(row.id),
6926
- COLOR: (tplStr || !$$.patterns) ? color_1 : "<svg><rect style=\"fill:" + color_1 + "\" width=\"10\" height=\"10\"></rect></svg>",
6926
+ COLOR: (tplStr || !$$.patterns) ? color_1 : "<svg><rect style=\"fill:".concat(color_1, "\" width=\"10\" height=\"10\"></rect></svg>"),
6927
6927
  NAME: name_1,
6928
6928
  VALUE: value
6929
6929
  };
@@ -6939,7 +6939,7 @@ var tooltip$1 = {
6939
6939
  for (i = 0; i < len; i++) {
6940
6940
  _loop_1();
6941
6941
  }
6942
- return text + "</table>";
6942
+ return "".concat(text, "</table>");
6943
6943
  },
6944
6944
  /**
6945
6945
  * Get the content template string
@@ -6948,7 +6948,7 @@ var tooltip$1 = {
6948
6948
  * @private
6949
6949
  */
6950
6950
  getTooltipContentTemplate: function (tplStr) {
6951
- return (tplStr || "<table class=\"{=CLASS_TOOLTIP}\"><tbody>\n\t\t\t\t{=TITLE}\n\t\t\t\t{{<tr class=\"{=CLASS_TOOLTIP_NAME}\">\n\t\t\t\t\t<td class=\"name\">" + (this.patterns ? "{=COLOR}" : "<span style=\"background-color:{=COLOR}\"></span>") + "{=NAME}</td>\n\t\t\t\t\t<td class=\"value\">{=VALUE}</td>\n\t\t\t\t</tr>}}\n\t\t\t</tbody></table>")
6951
+ return (tplStr || "<table class=\"{=CLASS_TOOLTIP}\"><tbody>\n\t\t\t\t{=TITLE}\n\t\t\t\t{{<tr class=\"{=CLASS_TOOLTIP_NAME}\">\n\t\t\t\t\t<td class=\"name\">".concat(this.patterns ? "{=COLOR}" : "<span style=\"background-color:{=COLOR}\"></span>", "{=NAME}</td>\n\t\t\t\t\t<td class=\"value\">{=VALUE}</td>\n\t\t\t\t</tr>}}\n\t\t\t</tbody></table>"))
6952
6952
  .replace(/(\r?\n|\t)/g, "")
6953
6953
  .split(/{{(.*)}}/);
6954
6954
  },
@@ -7052,7 +7052,7 @@ var tooltip$1 = {
7052
7052
  var pos_1 = fnPos.call(this, dataToShow, width, height, element);
7053
7053
  ["top", "left"].forEach(function (v) {
7054
7054
  var value = pos_1[v];
7055
- tooltip.style(v, value + "px");
7055
+ tooltip.style(v, "".concat(value, "px"));
7056
7056
  // Remember left pos in percentage to be used on resize call
7057
7057
  if (v === "left" && !datum.xPosInPercent) {
7058
7058
  datum.xPosInPercent = value / state.current.width * 100;
@@ -7077,7 +7077,7 @@ var tooltip$1 = {
7077
7077
  if (diff < 0) {
7078
7078
  value += diff;
7079
7079
  }
7080
- tooltip.style("left", value + "px");
7080
+ tooltip.style("left", "".concat(value, "px"));
7081
7081
  }
7082
7082
  });
7083
7083
  },
@@ -7186,7 +7186,7 @@ var transform = {
7186
7186
  x = state.width / 2 - width;
7187
7187
  y = asHalfPixel(state.margin.top);
7188
7188
  }
7189
- return "translate(" + x + ", " + y + ")";
7189
+ return "translate(".concat(x, ", ").concat(y, ")");
7190
7190
  },
7191
7191
  transformMain: function (withTransition, transitions) {
7192
7192
  var $$ = this;
@@ -7198,7 +7198,7 @@ var transform = {
7198
7198
  xAxis = transitions.axisX;
7199
7199
  }
7200
7200
  else {
7201
- xAxis = main.select("." + CLASS.axisX);
7201
+ xAxis = main.select(".".concat(CLASS.axisX));
7202
7202
  if (withTransition) {
7203
7203
  xAxis = xAxis.transition();
7204
7204
  }
@@ -7207,7 +7207,7 @@ var transform = {
7207
7207
  yAxis = transitions.axisY;
7208
7208
  }
7209
7209
  else {
7210
- yAxis = main.select("." + CLASS.axisY);
7210
+ yAxis = main.select(".".concat(CLASS.axisY));
7211
7211
  if (withTransition) {
7212
7212
  yAxis = yAxis.transition();
7213
7213
  }
@@ -7216,7 +7216,7 @@ var transform = {
7216
7216
  y2Axis = transitions.axisY2;
7217
7217
  }
7218
7218
  else {
7219
- y2Axis = main.select("." + CLASS.axisY2);
7219
+ y2Axis = main.select(".".concat(CLASS.axisY2));
7220
7220
  if (withTransition) {
7221
7221
  y2Axis = y2Axis.transition();
7222
7222
  }
@@ -7226,7 +7226,7 @@ var transform = {
7226
7226
  xAxis.attr("transform", $$.getTranslate("x"));
7227
7227
  yAxis.attr("transform", $$.getTranslate("y"));
7228
7228
  y2Axis.attr("transform", $$.getTranslate("y2"));
7229
- main.select("." + CLASS.chartArcs)
7229
+ main.select(".".concat(CLASS.chartArcs))
7230
7230
  .attr("transform", $$.getTranslate("arc"));
7231
7231
  },
7232
7232
  transformAll: function (withTransition, transitions) {
@@ -7584,7 +7584,7 @@ var ChartInternal = /** @class */ (function () {
7584
7584
  var _a = $$, config = _a.config, format = _a.format, state = _a.state;
7585
7585
  var isRotated = config.axis_rotated;
7586
7586
  // datetime to be used for uniqueness
7587
- state.datetimeId = "bb-" + +new Date();
7587
+ state.datetimeId = "bb-".concat(+new Date());
7588
7588
  $$.color = $$.generateColor();
7589
7589
  $$.levelColor = $$.generateLevelColor();
7590
7590
  if ($$.hasPointType()) {
@@ -7706,7 +7706,7 @@ var ChartInternal = /** @class */ (function () {
7706
7706
  // text when empty
7707
7707
  if (config.data_empty_label_text) {
7708
7708
  main.append("text")
7709
- .attr("class", CLASS.text + " " + CLASS.empty)
7709
+ .attr("class", "".concat(CLASS.text, " ").concat(CLASS.empty))
7710
7710
  .attr("text-anchor", "middle") // horizontal centering of text at x position in all browsers.
7711
7711
  .attr("dominant-baseline", "middle"); // vertical centering of text at y position in all browsers, except IE.
7712
7712
  }
@@ -7775,7 +7775,7 @@ var ChartInternal = /** @class */ (function () {
7775
7775
  }
7776
7776
  }
7777
7777
  types.forEach(function (v) {
7778
- $$["init" + v]();
7778
+ $$["init".concat(v)]();
7779
7779
  });
7780
7780
  notEmpty($$.config.data_labels) && !$$.hasArcType(null, ["radar"]) && $$.initText();
7781
7781
  };
@@ -7859,7 +7859,7 @@ var ChartInternal = /** @class */ (function () {
7859
7859
  ChartInternal.prototype.showTargets = function () {
7860
7860
  var $$ = this;
7861
7861
  var config = $$.config, svg = $$.$el.svg;
7862
- svg.selectAll("." + CLASS.target)
7862
+ svg.selectAll(".".concat(CLASS.target))
7863
7863
  .filter(function (d) { return $$.isTargetToShow(d.id); })
7864
7864
  .transition()
7865
7865
  .duration(config.transition_duration)
@@ -7886,7 +7886,7 @@ var ChartInternal = /** @class */ (function () {
7886
7886
  if (isString(defVal)) {
7887
7887
  defVal = withOptions[defVal];
7888
7888
  }
7889
- withOptions[key] = getOption(options, "with" + key, defVal);
7889
+ withOptions[key] = getOption(options, "with".concat(key), defVal);
7890
7890
  });
7891
7891
  return withOptions;
7892
7892
  };
@@ -8355,7 +8355,7 @@ var apiData = { data: data };
8355
8355
  * @see https://developer.mozilla.org/ko/docs/Web/API/WindowBase64/Base64_encoding_and_decoding
8356
8356
  */
8357
8357
  var b64EncodeUnicode = function (str) { return btoa(encodeURIComponent(str)
8358
- .replace(/%([0-9A-F]{2})/g, function (match, p) { return String.fromCharCode(Number("0x" + p)); })); };
8358
+ .replace(/%([0-9A-F]{2})/g, function (match, p) { return String.fromCharCode(Number("0x".concat(p))); })); };
8359
8359
  /**
8360
8360
  * Convert svg node to data url
8361
8361
  * @param {HTMLElement} node target node
@@ -8377,9 +8377,9 @@ function nodeToSvgDataUrl(node, size) {
8377
8377
  var styleXml = serializer.serializeToString(style);
8378
8378
  // foreignObject not supported in IE11 and below
8379
8379
  // https://msdn.microsoft.com/en-us/library/hh834675(v=vs.85).aspx
8380
- var dataStr = ("<svg xmlns=\"" + namespaces.svg + "\" width=\"" + size.width + "\" height=\"" + size.height + "\">\n\t\t\t<foreignObject width=\"100%\" height=\"100%\">\n\t\t\t\t" + styleXml + "\n\t\t\t\t" + nodeXml.replace(/(url\()[^#]+/g, "$1") + "\n\t\t\t</foreignObject></svg>")
8380
+ var dataStr = "<svg xmlns=\"".concat(namespaces.svg, "\" width=\"").concat(size.width, "\" height=\"").concat(size.height, "\">\n\t\t\t<foreignObject width=\"100%\" height=\"100%\">\n\t\t\t\t").concat(styleXml, "\n\t\t\t\t").concat(nodeXml.replace(/(url\()[^#]+/g, "$1"), "\n\t\t\t</foreignObject></svg>")
8381
8381
  .replace("/\n/g", "%0A");
8382
- return "data:image/svg+xml;base64," + b64EncodeUnicode(dataStr);
8382
+ return "data:image/svg+xml;base64,".concat(b64EncodeUnicode(dataStr));
8383
8383
  }
8384
8384
  var apiExport = {
8385
8385
  /**
@@ -8464,7 +8464,7 @@ var apiFocus = {
8464
8464
  if ($$.hasArcType() && !state.hasRadar) {
8465
8465
  $$.expandArc(targetIds);
8466
8466
  $$.hasType("gauge") &&
8467
- $$.markOverlapped(targetIdsValue, $$, "." + CLASS.gaugeValue);
8467
+ $$.markOverlapped(targetIdsValue, $$, ".".concat(CLASS.gaugeValue));
8468
8468
  }
8469
8469
  $$.toggleFocusLegend(targetIds, true);
8470
8470
  state.focusedTargetIds = targetIds;
@@ -8496,7 +8496,7 @@ var apiFocus = {
8496
8496
  if ($$.hasArcType()) {
8497
8497
  $$.unexpandArc(targetIds);
8498
8498
  $$.hasType("gauge") &&
8499
- $$.undoMarkOverlapped($$, "." + CLASS.gaugeValue);
8499
+ $$.undoMarkOverlapped($$, ".".concat(CLASS.gaugeValue));
8500
8500
  }
8501
8501
  $$.toggleFocusLegend(targetIds, false);
8502
8502
  state.focusedTargetIds = state.focusedTargetIds.filter(function (id) { return targetIds.indexOf(id) < 0; });
@@ -8778,7 +8778,7 @@ function showHide(show, targetIdsValue, options) {
8778
8778
  var $$ = this.internal;
8779
8779
  var targetIds = $$.mapToTargetIds(targetIdsValue);
8780
8780
  $$.state.toggling = true;
8781
- $$[(show ? "remove" : "add") + "HiddenTargetIds"](targetIds);
8781
+ $$["".concat(show ? "remove" : "add", "HiddenTargetIds")](targetIds);
8782
8782
  var targets = $$.$el.svg.selectAll($$.selectorTargets(targetIds));
8783
8783
  var opacity = show ? "1" : "0";
8784
8784
  show && targets.style("display", null);
@@ -8789,7 +8789,7 @@ function showHide(show, targetIdsValue, options) {
8789
8789
  !show && targets.style("display", "none");
8790
8790
  targets.style("opacity", opacity);
8791
8791
  });
8792
- options.withLegend && $$[(show ? "show" : "hide") + "Legend"](targetIds);
8792
+ options.withLegend && $$["".concat(show ? "show" : "hide", "Legend")](targetIds);
8793
8793
  $$.redraw({
8794
8794
  withUpdateOrgXDomain: true,
8795
8795
  withUpdateXDomain: true,
@@ -9114,9 +9114,9 @@ extend(Chart.prototype, [
9114
9114
  */
9115
9115
  function setMinMax($$, type, value) {
9116
9116
  var config = $$.config;
9117
- var axisX = "axis_x_" + type;
9118
- var axisY = "axis_y_" + type;
9119
- var axisY2 = "axis_y2_" + type;
9117
+ var axisX = "axis_x_".concat(type);
9118
+ var axisY = "axis_y_".concat(type);
9119
+ var axisY2 = "axis_y2_".concat(type);
9120
9120
  if (isDefined(value)) {
9121
9121
  if (isObjectType(value)) {
9122
9122
  isValue(value.x) && (config[axisX] = value.x);
@@ -9143,9 +9143,9 @@ function setMinMax($$, type, value) {
9143
9143
  function getMinMax($$, type) {
9144
9144
  var config = $$.config;
9145
9145
  return {
9146
- x: config["axis_x_" + type],
9147
- y: config["axis_y_" + type],
9148
- y2: config["axis_y2_" + type]
9146
+ x: config["axis_x_".concat(type)],
9147
+ y: config["axis_y_".concat(type)],
9148
+ y2: config["axis_y2_".concat(type)]
9149
9149
  };
9150
9150
  }
9151
9151
  /**
@@ -9604,8 +9604,8 @@ extend(regions, {
9604
9604
  var options = optionsValue || {};
9605
9605
  var duration = getOption(options, "duration", config.transition_duration);
9606
9606
  var classes = getOption(options, "classes", [CLASS.region]);
9607
- var regions = $$.$el.main.select("." + CLASS.regions)
9608
- .selectAll(classes.map(function (c) { return "." + c; }));
9607
+ var regions = $$.$el.main.select(".".concat(CLASS.regions))
9608
+ .selectAll(classes.map(function (c) { return ".".concat(c); }));
9609
9609
  (duration ? regions.transition().duration(duration) : regions)
9610
9610
  .style("opacity", "0")
9611
9611
  .remove();
@@ -9942,8 +9942,8 @@ var AxisRendererHelper = /** @class */ (function () {
9942
9942
  AxisRendererHelper.prototype.getTickTransformSetter = function (id) {
9943
9943
  var config = this.config;
9944
9944
  var fn = id === "x" ?
9945
- function (value) { return "translate(" + (value + config.tickOffset) + ",0)"; } :
9946
- function (value) { return "translate(0," + value + ")"; };
9945
+ function (value) { return "translate(".concat(value + config.tickOffset, ",0)"); } :
9946
+ function (value) { return "translate(0,".concat(value, ")"); };
9947
9947
  return function (selection, scale) {
9948
9948
  selection.attr("transform", function (d) { return fn(Math.ceil(scale(d))); });
9949
9949
  };
@@ -10078,13 +10078,13 @@ var AxisRenderer = /** @class */ (function () {
10078
10078
  // // get the axis' tick position configuration
10079
10079
  var id = params.id;
10080
10080
  var tickTextPos = id && /^(x|y|y2)$/.test(id) ?
10081
- params.config["axis_" + id + "_tick_text_position"] : { x: 0, y: 0 };
10081
+ params.config["axis_".concat(id, "_tick_text_position")] : { x: 0, y: 0 };
10082
10082
  // tick visiblity
10083
- var prefix = id === "subX" ? "subchart_axis_x" : "axis_" + id;
10084
- var axisShow = params.config[prefix + "_show"];
10083
+ var prefix = id === "subX" ? "subchart_axis_x" : "axis_".concat(id);
10084
+ var axisShow = params.config["".concat(prefix, "_show")];
10085
10085
  var tickShow = {
10086
- tick: axisShow ? params.config[prefix + "_tick_show"] : false,
10087
- text: axisShow ? params.config[prefix + "_tick_text_show"] : false
10086
+ tick: axisShow ? params.config["".concat(prefix, "_tick_show")] : false,
10087
+ text: axisShow ? params.config["".concat(prefix, "_tick_text_show")] : false
10088
10088
  };
10089
10089
  var $g;
10090
10090
  g.each(function () {
@@ -10104,8 +10104,8 @@ var AxisRenderer = /** @class */ (function () {
10104
10104
  .attr("d", function () {
10105
10105
  var outerTickSized = config.outerTickSize * sign;
10106
10106
  return isTopBottom ?
10107
- "M" + range[0] + "," + outerTickSized + "V0H" + range[1] + "V" + outerTickSized :
10108
- "M" + outerTickSized + "," + range[0] + "H0V" + range[1] + "H" + outerTickSized;
10107
+ "M".concat(range[0], ",").concat(outerTickSized, "V0H").concat(range[1], "V").concat(outerTickSized) :
10108
+ "M".concat(outerTickSized, ",").concat(range[0], "H0V").concat(range[1], "H").concat(outerTickSized);
10109
10109
  });
10110
10110
  if (tickShow.tick || tickShow.text) {
10111
10111
  // count of tick data in array
@@ -10167,7 +10167,7 @@ var AxisRenderer = /** @class */ (function () {
10167
10167
  });
10168
10168
  var lineUpdate = tick.select("line");
10169
10169
  var textUpdate = tick.select("text");
10170
- tickEnter.select("line").attr(axisPx + "2", innerTickSize * sign);
10170
+ tickEnter.select("line").attr("".concat(axisPx, "2"), innerTickSize * sign);
10171
10171
  tickEnter.select("text").attr(axisPx, tickLength * sign);
10172
10172
  ctx.setTickLineTextPosition(lineUpdate, textUpdate);
10173
10173
  // Append <title> for tooltip display
@@ -10237,7 +10237,7 @@ var AxisRenderer = /** @class */ (function () {
10237
10237
  orient === "top" && value.reverse();
10238
10238
  return !r ? "middle" : (r > 0 ? value[0] : value[1]);
10239
10239
  };
10240
- var textTransform = function (r) { return (r ? "rotate(" + r + ")" : null); };
10240
+ var textTransform = function (r) { return (r ? "rotate(".concat(r, ")") : null); };
10241
10241
  var yForText = function (r) {
10242
10242
  var r2 = r / (orient === "bottom" ? 15 : 23);
10243
10243
  return r ? 11.5 - 2.5 * r2 * (r > 0 ? 1 : -1) : tickLength;
@@ -10390,7 +10390,7 @@ var AxisRenderer = /** @class */ (function () {
10390
10390
  return next < arr.length ?
10391
10391
  _this.helper.scale(arr[next]) - _this.helper.scale(v) : null;
10392
10392
  }).filter(Boolean);
10393
- interval = Math.min.apply(Math, __spreadArray(__spreadArray([], intervalByValue), [interval]));
10393
+ interval = Math.min.apply(Math, __spreadArray(__spreadArray([], intervalByValue, false), [interval], false));
10394
10394
  }
10395
10395
  return interval === Infinity ? 0 : interval;
10396
10396
  };
@@ -10461,7 +10461,7 @@ var Axis = /** @class */ (function () {
10461
10461
  this.setOrient();
10462
10462
  }
10463
10463
  Axis.prototype.getAxisClassName = function (id) {
10464
- return CLASS.axis + " " + CLASS["axis" + capitalize(id)];
10464
+ return "".concat(CLASS.axis, " ").concat(CLASS["axis".concat(capitalize(id))]);
10465
10465
  };
10466
10466
  Axis.prototype.isHorizontal = function ($$, forHorizontal) {
10467
10467
  var isRotated = $$.config.axis_rotated;
@@ -10477,11 +10477,11 @@ var Axis = /** @class */ (function () {
10477
10477
  };
10478
10478
  Axis.prototype.isTimeSeries = function (id) {
10479
10479
  if (id === void 0) { id = "x"; }
10480
- return this.owner.config["axis_" + id + "_type"] === "timeseries";
10480
+ return this.owner.config["axis_".concat(id, "_type")] === "timeseries";
10481
10481
  };
10482
10482
  Axis.prototype.isLog = function (id) {
10483
10483
  if (id === void 0) { id = "x"; }
10484
- return this.owner.config["axis_" + id + "_type"] === "log";
10484
+ return this.owner.config["axis_".concat(id, "_type")] === "log";
10485
10485
  };
10486
10486
  Axis.prototype.isTimeSeriesY = function () {
10487
10487
  return this.isTimeSeries("y");
@@ -10506,7 +10506,7 @@ var Axis = /** @class */ (function () {
10506
10506
  config.axis_y2_show && target.push("y2");
10507
10507
  target.forEach(function (v) {
10508
10508
  var classAxis = _this.getAxisClassName(v);
10509
- var classLabel = CLASS["axis" + v.toUpperCase() + "Label"];
10509
+ var classLabel = CLASS["axis".concat(v.toUpperCase(), "Label")];
10510
10510
  axis[v] = main.append("g")
10511
10511
  .attr("class", classAxis)
10512
10512
  .attr("clip-path", function () {
@@ -10520,7 +10520,7 @@ var Axis = /** @class */ (function () {
10520
10520
  return res;
10521
10521
  })
10522
10522
  .attr("transform", $$.getTranslate(v))
10523
- .style("visibility", config["axis_" + v + "_show"] ? "visible" : "hidden");
10523
+ .style("visibility", config["axis_".concat(v, "_show")] ? "visible" : "hidden");
10524
10524
  axis[v].append("text")
10525
10525
  .attr("class", classLabel)
10526
10526
  .attr("transform", ["rotate(-90)", null][v === "x" ? +!isRotated : +isRotated])
@@ -10552,7 +10552,7 @@ var Axis = /** @class */ (function () {
10552
10552
  var $$ = this.owner;
10553
10553
  var config = $$.config;
10554
10554
  var axes = [];
10555
- var axesConfig = config["axis_" + id + "_axes"];
10555
+ var axesConfig = config["axis_".concat(id, "_axes")];
10556
10556
  var isRotated = config.axis_rotated;
10557
10557
  var d3Axis;
10558
10558
  if (id === "x") {
@@ -10587,7 +10587,7 @@ var Axis = /** @class */ (function () {
10587
10587
  var $$ = this.owner;
10588
10588
  var config = $$.config, main = $$.$el.main;
10589
10589
  Object.keys(this.axesList).forEach(function (id) {
10590
- var axesConfig = config["axis_" + id + "_axes"];
10590
+ var axesConfig = config["axis_".concat(id, "_axes")];
10591
10591
  var scale = $$.scale[id].copy();
10592
10592
  var range = scale.range();
10593
10593
  _this.axesList[id].forEach(function (v, i) {
@@ -10597,12 +10597,12 @@ var Axis = /** @class */ (function () {
10597
10597
  if (!range.every(function (v, i) { return v === axisRange[i]; })) {
10598
10598
  v.scale().range(range);
10599
10599
  }
10600
- var className = _this.getAxisClassName(id) + "-" + (i + 1);
10601
- var g = main.select("." + className.replace(/\s/, "."));
10600
+ var className = "".concat(_this.getAxisClassName(id), "-").concat(i + 1);
10601
+ var g = main.select(".".concat(className.replace(/\s/, ".")));
10602
10602
  if (g.empty()) {
10603
10603
  g = main.append("g")
10604
10604
  .attr("class", className)
10605
- .style("visibility", config["axis_" + id + "_show"] ? "visible" : "hidden")
10605
+ .style("visibility", config["axis_".concat(id, "_show")] ? "visible" : "hidden")
10606
10606
  .call(v);
10607
10607
  }
10608
10608
  else {
@@ -10648,7 +10648,7 @@ var Axis = /** @class */ (function () {
10648
10648
  tickFormat = $$.format.xAxisTick;
10649
10649
  }
10650
10650
  else {
10651
- var fn = config["axis_" + id + "_tick_format"];
10651
+ var fn = config["axis_".concat(id, "_tick_format")];
10652
10652
  if (isFunction(fn)) {
10653
10653
  tickFormat = fn.bind($$.api);
10654
10654
  }
@@ -10668,7 +10668,7 @@ var Axis = /** @class */ (function () {
10668
10668
  orgXScale: $$.scale.x
10669
10669
  });
10670
10670
  if (!isX) {
10671
- axisParams.tickStepSize = config["axis_" + type + "_tick_stepSize"];
10671
+ axisParams.tickStepSize = config["axis_".concat(type, "_tick_stepSize")];
10672
10672
  }
10673
10673
  var axis = new AxisRenderer(axisParams)
10674
10674
  .scale((isX && $$.scale.zoom) || scale)
@@ -10684,14 +10684,14 @@ var Axis = /** @class */ (function () {
10684
10684
  }
10685
10685
  tickValues && axis.tickValues(tickValues);
10686
10686
  // Set tick
10687
- axis.tickFormat(tickFormat || (!isX && ($$.isStackNormalized() && (function (x) { return x + "%"; }))));
10687
+ axis.tickFormat(tickFormat || (!isX && ($$.isStackNormalized() && (function (x) { return "".concat(x, "%"); }))));
10688
10688
  if (isCategory) {
10689
10689
  axis.tickCentered(config.axis_x_tick_centered);
10690
10690
  if (isEmpty(config.axis_x_tick_culling)) {
10691
10691
  config.axis_x_tick_culling = false;
10692
10692
  }
10693
10693
  }
10694
- var tickCount = config["axis_" + type + "_tick_count"];
10694
+ var tickCount = config["axis_".concat(type, "_tick_count")];
10695
10695
  tickCount && axis.ticks(tickCount);
10696
10696
  return axis;
10697
10697
  };
@@ -10753,13 +10753,13 @@ var Axis = /** @class */ (function () {
10753
10753
  };
10754
10754
  Axis.prototype.getTickValues = function (id) {
10755
10755
  var $$ = this.owner;
10756
- var tickValues = $$.config["axis_" + id + "_tick_values"];
10757
- var axis = $$[id + "Axis"];
10756
+ var tickValues = $$.config["axis_".concat(id, "_tick_values")];
10757
+ var axis = $$["".concat(id, "Axis")];
10758
10758
  return (isFunction(tickValues) ? tickValues.call($$.api) : tickValues) ||
10759
10759
  (axis ? axis.tickValues() : undefined);
10760
10760
  };
10761
10761
  Axis.prototype.getLabelOptionByAxisId = function (id) {
10762
- return this.owner.config["axis_" + id + "_label"];
10762
+ return this.owner.config["axis_".concat(id, "_label")];
10763
10763
  };
10764
10764
  Axis.prototype.getLabelText = function (id) {
10765
10765
  var option = this.getLabelOptionByAxisId(id);
@@ -10770,7 +10770,7 @@ var Axis = /** @class */ (function () {
10770
10770
  var config = $$.config;
10771
10771
  var option = this.getLabelOptionByAxisId(id);
10772
10772
  if (isString(option)) {
10773
- config["axis_" + id + "_label"] = text;
10773
+ config["axis_".concat(id, "_label")] = text;
10774
10774
  }
10775
10775
  else if (option) {
10776
10776
  option.text = text;
@@ -10841,7 +10841,7 @@ var Axis = /** @class */ (function () {
10841
10841
  var config = $$.config;
10842
10842
  var isRotated = config.axis_rotated;
10843
10843
  var isInner = this.getAxisLabelPosition(id).isInner;
10844
- var tickRotate = config["axis_" + id + "_tick_rotate"] ? $$.getHorizontalAxisHeight(id) : 0;
10844
+ var tickRotate = config["axis_".concat(id, "_tick_rotate")] ? $$.getHorizontalAxisHeight(id) : 0;
10845
10845
  var maxTickWidth = this.getMaxTickWidth(id);
10846
10846
  var dy;
10847
10847
  if (id === "x") {
@@ -10880,7 +10880,7 @@ var Axis = /** @class */ (function () {
10880
10880
  }
10881
10881
  else {
10882
10882
  dy = isInner ?
10883
- dy[3] : (dy[4] + (config["axis_" + id + "_inner"] ? 0 : (maxTickWidth + dy[4]))) * (id === "y" ? -1 : 1);
10883
+ dy[3] : (dy[4] + (config["axis_".concat(id, "_inner")] ? 0 : (maxTickWidth + dy[4]))) * (id === "y" ? -1 : 1);
10884
10884
  }
10885
10885
  }
10886
10886
  return dy;
@@ -10890,13 +10890,13 @@ var Axis = /** @class */ (function () {
10890
10890
  var config = $$.config, current = $$.state.current, _a = $$.$el, svg = _a.svg, chart = _a.chart;
10891
10891
  var currentTickMax = current.maxTickWidths[id];
10892
10892
  var maxWidth = 0;
10893
- if (withoutRecompute || !config["axis_" + id + "_show"] || $$.filterTargetsToShow().length === 0) {
10893
+ if (withoutRecompute || !config["axis_".concat(id, "_show")] || $$.filterTargetsToShow().length === 0) {
10894
10894
  return currentTickMax.size;
10895
10895
  }
10896
10896
  if (svg) {
10897
10897
  var isYAxis_1 = /^y2?$/.test(id);
10898
10898
  var targetsToShow = $$.filterTargetsToShow($$.data.targets);
10899
- var scale = $$.scale[id].copy().domain($$["get" + (isYAxis_1 ? "Y" : "X") + "Domain"](targetsToShow, id));
10899
+ var scale = $$.scale[id].copy().domain($$["get".concat(isYAxis_1 ? "Y" : "X", "Domain")](targetsToShow, id));
10900
10900
  var domain = scale.domain();
10901
10901
  var isDomainSame = domain[0] === domain[1] && domain.every(function (v) { return v > 0; });
10902
10902
  var isCurrentMaxTickDomainSame = isArray(currentTickMax.domain) &&
@@ -10914,8 +10914,8 @@ var Axis = /** @class */ (function () {
10914
10914
  currentTickMax.ticks.splice(0);
10915
10915
  }
10916
10916
  var axis = this.getAxis(id, scale, false, false, true);
10917
- var tickCount = config["axis_" + id + "_tick_count"];
10918
- var tickValues = config["axis_" + id + "_tick_values"];
10917
+ var tickCount = config["axis_".concat(id, "_tick_count")];
10918
+ var tickValues = config["axis_".concat(id, "_tick_values")];
10919
10919
  // Make to generate the final tick text to be rendered
10920
10920
  // https://github.com/naver/billboard.js/issues/920
10921
10921
  // Do not generate if 'tick values' option is given
@@ -11039,9 +11039,9 @@ var Axis = /** @class */ (function () {
11039
11039
  var $$ = this.owner;
11040
11040
  var main = $$.$el.main;
11041
11041
  var labels = {
11042
- x: main.select("." + CLASS.axisX + " ." + CLASS.axisXLabel),
11043
- y: main.select("." + CLASS.axisY + " ." + CLASS.axisYLabel),
11044
- y2: main.select("." + CLASS.axisY2 + " ." + CLASS.axisY2Label)
11042
+ x: main.select(".".concat(CLASS.axisX, " .").concat(CLASS.axisXLabel)),
11043
+ y: main.select(".".concat(CLASS.axisY, " .").concat(CLASS.axisYLabel)),
11044
+ y2: main.select(".".concat(CLASS.axisY2, " .").concat(CLASS.axisY2Label))
11045
11045
  };
11046
11046
  Object.keys(labels).filter(function (id) { return !labels[id].empty(); })
11047
11047
  .forEach(function (v) {
@@ -11124,7 +11124,7 @@ var Axis = /** @class */ (function () {
11124
11124
  axis.config.withoutTransition = true;
11125
11125
  }
11126
11126
  $axis.style("opacity", opacity);
11127
- axis.create(transitions["axis" + capitalize(id)]);
11127
+ axis.create(transitions["axis".concat(capitalize(id))]);
11128
11128
  }
11129
11129
  });
11130
11130
  this.updateAxes();
@@ -11164,8 +11164,8 @@ var Axis = /** @class */ (function () {
11164
11164
  ["y", "y2"].forEach(function (key) {
11165
11165
  var axisScale = scale[key];
11166
11166
  if (axisScale) {
11167
- var tickValues = config["axis_" + key + "_tick_values"];
11168
- var tickCount = config["axis_" + key + "_tick_count"];
11167
+ var tickValues = config["axis_".concat(key, "_tick_values")];
11168
+ var tickCount = config["axis_".concat(key, "_tick_count")];
11169
11169
  axisScale.domain($$.getYDomain(targetsToShow, key, xDomainForZoom));
11170
11170
  if (!tickValues && tickCount) {
11171
11171
  var axis = $$.axis[key];
@@ -11199,12 +11199,12 @@ var Axis = /** @class */ (function () {
11199
11199
  var axis = $el.axis[type];
11200
11200
  // subchart x axis should be aligned with x axis culling
11201
11201
  var id = type === "subX" ? "x" : type;
11202
- var toCull = config["axis_" + id + "_tick_culling"];
11202
+ var toCull = config["axis_".concat(id, "_tick_culling")];
11203
11203
  if (axis && toCull) {
11204
11204
  var tickText = axis.selectAll(".tick text");
11205
11205
  var tickValues_1 = sortValue(tickText.data());
11206
11206
  var tickSize = tickValues_1.length;
11207
- var cullingMax = config["axis_" + id + "_tick_culling_max"];
11207
+ var cullingMax = config["axis_".concat(id, "_tick_culling_max")];
11208
11208
  var intervalForCulling_1;
11209
11209
  if (tickSize) {
11210
11210
  for (var i = 1; i < tickSize; i++) {
@@ -11223,7 +11223,7 @@ var Axis = /** @class */ (function () {
11223
11223
  // set/unset x_axis_tick_clippath
11224
11224
  if (type === "x") {
11225
11225
  var clipPath = current.maxTickWidths.x.clipPath ? clip.pathXAxisTickTexts : null;
11226
- $el.svg.selectAll("." + CLASS.axisX + " .tick text")
11226
+ $el.svg.selectAll(".".concat(CLASS.axisX, " .tick text"))
11227
11227
  .attr("clip-path", clipPath);
11228
11228
  }
11229
11229
  }
@@ -11244,7 +11244,7 @@ var eventrect = {
11244
11244
  */
11245
11245
  initEventRect: function () {
11246
11246
  var $$ = this;
11247
- $$.$el.main.select("." + CLASS.chart)
11247
+ $$.$el.main.select(".".concat(CLASS.chart))
11248
11248
  .append("g")
11249
11249
  .attr("class", CLASS.eventRects)
11250
11250
  .style("fill-opacity", "0");
@@ -11261,12 +11261,12 @@ var eventrect = {
11261
11261
  $$.updateEventRect($el.eventRect, true);
11262
11262
  }
11263
11263
  else {
11264
- var eventRects = $$.$el.main.select("." + CLASS.eventRects)
11264
+ var eventRects = $$.$el.main.select(".".concat(CLASS.eventRects))
11265
11265
  .style("cursor", config.zoom_enabled && config.zoom_type !== "drag" ? (config.axis_rotated ? "ns-resize" : "ew-resize") : null)
11266
11266
  .classed(CLASS.eventRectsMultiple, isMultipleX)
11267
11267
  .classed(CLASS.eventRectsSingle, !isMultipleX);
11268
11268
  // append event <rect>
11269
- var eventRectUpdate = eventRects.selectAll("." + CLASS.eventRect)
11269
+ var eventRectUpdate = eventRects.selectAll(".".concat(CLASS.eventRect))
11270
11270
  .data([0])
11271
11271
  .enter()
11272
11272
  .append("rect");
@@ -11321,7 +11321,7 @@ var eventrect = {
11321
11321
  var preventEvent = function (event) {
11322
11322
  var eventType = event.type;
11323
11323
  var touch = event.changedTouches[0];
11324
- var currentXY = touch["client" + (config.axis_rotated ? "Y" : "X")];
11324
+ var currentXY = touch["client".concat(config.axis_rotated ? "Y" : "X")];
11325
11325
  // prevent document scrolling
11326
11326
  if (eventType === "touchstart") {
11327
11327
  if (isPrevented) {
@@ -11506,7 +11506,7 @@ var eventrect = {
11506
11506
  $$.showGridFocus(selectedData);
11507
11507
  // Show cursor as pointer if point is close to mouse position
11508
11508
  if ($$.isBarType(closest.id) || $$.dist(closest, mouse$1) < config.point_sensitivity) {
11509
- $$.$el.svg.select("." + CLASS.eventRect).style("cursor", "pointer");
11509
+ $$.$el.svg.select(".".concat(CLASS.eventRect)).style("cursor", "pointer");
11510
11510
  if (!state.mouseover) {
11511
11511
  config.data_onover.call($$.api, closest);
11512
11512
  state.mouseover = closest;
@@ -11520,7 +11520,7 @@ var eventrect = {
11520
11520
  unselectRect: function () {
11521
11521
  var $$ = this;
11522
11522
  var config = $$.config, _a = $$.$el, bar = _a.bar, circle = _a.circle, tooltip = _a.tooltip;
11523
- $$.$el.svg.select("." + CLASS.eventRect).style("cursor", null);
11523
+ $$.$el.svg.select(".".concat(CLASS.eventRect)).style("cursor", null);
11524
11524
  $$.hideGridFocus();
11525
11525
  if (tooltip) {
11526
11526
  $$.hideTooltip();
@@ -11599,7 +11599,7 @@ var eventrect = {
11599
11599
  return;
11600
11600
  }
11601
11601
  var index = d.index;
11602
- main.selectAll("." + CLASS.shape + "-" + index)
11602
+ main.selectAll(".".concat(CLASS.shape, "-").concat(index))
11603
11603
  .each(function (d2) {
11604
11604
  if (config.data_selection_grouped || $$.isWithinShape(this, d2)) {
11605
11605
  $$.toggleShape && $$.toggleShape(this, d2, index);
@@ -11648,8 +11648,8 @@ var eventrect = {
11648
11648
  }
11649
11649
  // select if selection enabled
11650
11650
  if ($$.isBarType(closest.id) || $$.dist(closest, mouse$1) < config.point_sensitivity) {
11651
- $$.$el.main.selectAll("." + CLASS.shapes + $$.getTargetSelectorSuffix(closest.id))
11652
- .selectAll("." + CLASS.shape + "-" + closest.index)
11651
+ $$.$el.main.selectAll(".".concat(CLASS.shapes).concat($$.getTargetSelectorSuffix(closest.id)))
11652
+ .selectAll(".".concat(CLASS.shape, "-").concat(closest.index))
11653
11653
  .each(function () {
11654
11654
  if (config.data_selection_grouped || $$.isWithinShape(this, closest)) {
11655
11655
  $$.toggleShape && $$.toggleShape(this, closest, closest.index);
@@ -11755,13 +11755,13 @@ var flow = {
11755
11755
  ["circle", "text", "shape", "eventRect"].forEach(function (v) {
11756
11756
  var target = [];
11757
11757
  for (var i = 0; i < flowLength; i++) {
11758
- target.push("." + CLASS[v] + "-" + i);
11758
+ target.push(".".concat(CLASS[v], "-").concat(i));
11759
11759
  }
11760
- svg.selectAll("." + CLASS[v + "s"]) // circles, shapes, texts, eventRects
11760
+ svg.selectAll(".".concat(CLASS["".concat(v, "s")])) // circles, shapes, texts, eventRects
11761
11761
  .selectAll(target)
11762
11762
  .remove();
11763
11763
  });
11764
- svg.select("." + CLASS.xgrid)
11764
+ svg.select(".".concat(CLASS.xgrid))
11765
11765
  .remove();
11766
11766
  }
11767
11767
  // draw again for removing flowed elements and reverting attr
@@ -11860,7 +11860,7 @@ var flow = {
11860
11860
  x(flowStart.x) - x(flowEnd.x);
11861
11861
  }
11862
11862
  var scaleX = (diffDomain(orgDomain) / diffDomain(domain));
11863
- return "translate(" + translateX + ",0) scale(" + scaleX + ",1)";
11863
+ return "translate(".concat(translateX, ",0) scale(").concat(scaleX, ",1)");
11864
11864
  }
11865
11865
  };
11866
11866
 
@@ -11873,10 +11873,10 @@ var clip = {
11873
11873
  var $$ = this;
11874
11874
  var clip = $$.state.clip;
11875
11875
  // MEMO: clipId needs to be unique because it conflicts when multiple charts exist
11876
- clip.id = $$.state.datetimeId + "-clip";
11877
- clip.idXAxis = clip.id + "-xaxis";
11878
- clip.idYAxis = clip.id + "-yaxis";
11879
- clip.idGrid = clip.id + "-grid";
11876
+ clip.id = "".concat($$.state.datetimeId, "-clip");
11877
+ clip.idXAxis = "".concat(clip.id, "-xaxis");
11878
+ clip.idYAxis = "".concat(clip.id, "-yaxis");
11879
+ clip.idGrid = "".concat(clip.id, "-grid");
11880
11880
  // Define 'clip-path' attribute values
11881
11881
  clip.path = $$.getClipPath(clip.id);
11882
11882
  clip.pathXAxis = $$.getClipPath(clip.idXAxis);
@@ -11894,7 +11894,7 @@ var clip = {
11894
11894
  var isIE9 = win.navigator ?
11895
11895
  win.navigator.appVersion
11896
11896
  .toLowerCase().indexOf("msie 9.") >= 0 : false;
11897
- return "url(" + (isIE9 ? "" : doc.URL.split("#")[0]) + "#" + id + ")";
11897
+ return "url(".concat((isIE9 ? "" : doc.URL.split("#")[0]), "#").concat(id, ")");
11898
11898
  },
11899
11899
  appendClip: function (parent, id) {
11900
11900
  id && parent.append("clipPath")
@@ -11948,7 +11948,7 @@ var clip = {
11948
11948
  var config = $$.config, _a = $$.state, clip = _a.clip, xAxisHeight = _a.xAxisHeight, defs = $$.$el.defs;
11949
11949
  var newXAxisHeight = $$.getHorizontalAxisHeight("x");
11950
11950
  if (defs && !clip.idXAxisTickTexts) {
11951
- var clipId = clip.id + "-xaxisticktexts";
11951
+ var clipId = "".concat(clip.id, "-xaxisticktexts");
11952
11952
  $$.appendClip(defs, clipId);
11953
11953
  clip.pathXAxisTickTexts = $$.getClipPath(clip.idXAxisTickTexts);
11954
11954
  clip.idXAxisTickTexts = clipId;
@@ -11977,7 +11977,7 @@ var clip = {
11977
11977
  var $$ = this;
11978
11978
  var _a = $$.state, clip = _a.clip, current = _a.current, svg = $$.$el.svg;
11979
11979
  if (svg) {
11980
- svg.select("#" + clip.idXAxisTickTexts + " rect")
11980
+ svg.select("#".concat(clip.idXAxisTickTexts, " rect"))
11981
11981
  .attr("width", current.maxTickWidths.x.clipPath)
11982
11982
  .attr("height", 30);
11983
11983
  }
@@ -12030,7 +12030,7 @@ var grid = {
12030
12030
  hasGrid: function () {
12031
12031
  var config = this.config;
12032
12032
  return ["x", "y"]
12033
- .some(function (v) { return config["grid_" + v + "_show"] || config["grid_" + v + "_lines"].length; });
12033
+ .some(function (v) { return config["grid_".concat(v, "_show")] || config["grid_".concat(v, "_lines")].length; });
12034
12034
  },
12035
12035
  initGrid: function () {
12036
12036
  var $$ = this;
@@ -12041,9 +12041,9 @@ var grid = {
12041
12041
  var $$ = this;
12042
12042
  var config = $$.config, clip = $$.state.clip, $el = $$.$el;
12043
12043
  if (config.grid_x_lines.length || config.grid_y_lines.length) {
12044
- $el.gridLines.main = $el.main.insert("g", "." + CLASS.chart + (config.grid_lines_front ? " + *" : ""))
12044
+ $el.gridLines.main = $el.main.insert("g", ".".concat(CLASS.chart).concat(config.grid_lines_front ? " + *" : ""))
12045
12045
  .attr("clip-path", clip.pathGrid)
12046
- .attr("class", CLASS.grid + " " + CLASS.gridLines);
12046
+ .attr("class", "".concat(CLASS.grid, " ").concat(CLASS.gridLines));
12047
12047
  $el.gridLines.main.append("g").attr("class", CLASS.xgridLines);
12048
12048
  $el.gridLines.main.append("g").attr("class", CLASS.ygridLines);
12049
12049
  $el.gridLines.x = selectAll([]);
@@ -12067,8 +12067,8 @@ var grid = {
12067
12067
  "y1": 0,
12068
12068
  "y2": state.height
12069
12069
  };
12070
- grid.x = main.select("." + CLASS.xgrids)
12071
- .selectAll("." + CLASS.xgrid)
12070
+ grid.x = main.select(".".concat(CLASS.xgrids))
12071
+ .selectAll(".".concat(CLASS.xgrid))
12072
12072
  .data(xgridData);
12073
12073
  grid.x.exit().remove();
12074
12074
  grid.x = grid.x.enter()
@@ -12092,8 +12092,8 @@ var grid = {
12092
12092
  var isRotated = config.axis_rotated;
12093
12093
  var gridValues = $$.axis.y.tickValues() || $$.scale.y.ticks(config.grid_y_ticks);
12094
12094
  var pos = function (d) { return Math.ceil($$.scale.y(d)); };
12095
- grid.y = main.select("." + CLASS.ygrids)
12096
- .selectAll("." + CLASS.ygrid)
12095
+ grid.y = main.select(".".concat(CLASS.ygrids))
12096
+ .selectAll(".".concat(CLASS.ygrid))
12097
12097
  .data(gridValues);
12098
12098
  grid.y.exit().remove();
12099
12099
  grid.y = grid.y
@@ -12127,8 +12127,8 @@ var grid = {
12127
12127
  var config = $$.config, _a = $$.$el, gridLines = _a.gridLines, main = _a.main;
12128
12128
  var isRotated = config.axis_rotated;
12129
12129
  config.grid_x_show && $$.updateXGrid();
12130
- var xLines = main.select("." + CLASS.xgridLines)
12131
- .selectAll("." + CLASS.xgridLine)
12130
+ var xLines = main.select(".".concat(CLASS.xgridLines))
12131
+ .selectAll(".".concat(CLASS.xgridLine))
12132
12132
  .data(config.grid_x_lines);
12133
12133
  // exit
12134
12134
  xLines.exit().transition()
@@ -12145,7 +12145,7 @@ var grid = {
12145
12145
  .style("opacity", "0");
12146
12146
  xLines = xgridLine.merge(xLines);
12147
12147
  xLines
12148
- .attr("class", function (d) { return (CLASS.xgridLine + " " + (d["class"] || "")).trim(); })
12148
+ .attr("class", function (d) { return "".concat(CLASS.xgridLine, " ").concat(d["class"] || "").trim(); })
12149
12149
  .select("text")
12150
12150
  .attr("text-anchor", getGridTextAnchor)
12151
12151
  .attr("dx", getGridTextDx)
@@ -12166,8 +12166,8 @@ var grid = {
12166
12166
  var config = $$.config, _a = $$.state, width = _a.width, height = _a.height, $el = $$.$el;
12167
12167
  var isRotated = config.axis_rotated;
12168
12168
  config.grid_y_show && $$.updateYGrid();
12169
- var ygridLines = $el.main.select("." + CLASS.ygridLines)
12170
- .selectAll("." + CLASS.ygridLine)
12169
+ var ygridLines = $el.main.select(".".concat(CLASS.ygridLines))
12170
+ .selectAll(".".concat(CLASS.ygridLine))
12171
12171
  .data(config.grid_y_lines);
12172
12172
  // exit
12173
12173
  ygridLines.exit()
@@ -12186,7 +12186,7 @@ var grid = {
12186
12186
  // update
12187
12187
  var yv = $$.yv.bind($$);
12188
12188
  ygridLines
12189
- .attr("class", function (d) { return (CLASS.ygridLine + " " + (d["class"] || "")).trim(); })
12189
+ .attr("class", function (d) { return "".concat(CLASS.ygridLine, " ").concat(d["class"] || "").trim(); })
12190
12190
  .select("line")
12191
12191
  .transition()
12192
12192
  .duration(duration)
@@ -12233,7 +12233,7 @@ var grid = {
12233
12233
  var $$ = this;
12234
12234
  var config = $$.config, clip = $$.state.clip, $el = $$.$el;
12235
12235
  var isFront = config.grid_front;
12236
- var className = "." + CLASS[isFront && $el.gridLines.main ? "gridLines" : "chart"] + (isFront ? " + *" : "");
12236
+ var className = ".".concat(CLASS[isFront && $el.gridLines.main ? "gridLines" : "chart"]).concat(isFront ? " + *" : "");
12237
12237
  var grid = $el.main.insert("g", className)
12238
12238
  .attr("clip-path", clip.pathGrid)
12239
12239
  .attr("class", CLASS.grid);
@@ -12265,7 +12265,7 @@ var grid = {
12265
12265
  var $$ = this;
12266
12266
  var config = $$.config, _a = $$.state, width = _a.width, height = _a.height;
12267
12267
  var isRotated = config.axis_rotated;
12268
- var focusEl = $$.$el.main.selectAll("line." + CLASS.xgridFocus + ", line." + CLASS.ygridFocus);
12268
+ var focusEl = $$.$el.main.selectAll("line.".concat(CLASS.xgridFocus, ", line.").concat(CLASS.ygridFocus));
12269
12269
  var dataToShow = (data || [focusEl.datum()]).filter(function (d) { return d && isValue($$.getBaseValue(d)); });
12270
12270
  // Hide when bubble/scatter/stanford plot exists
12271
12271
  if (!config.tooltip_show || dataToShow.length === 0 || $$.hasType("bubble") || $$.hasArcType()) {
@@ -12323,7 +12323,7 @@ var grid = {
12323
12323
  var $$ = this;
12324
12324
  var _a = $$.state, inputType = _a.inputType, resizing = _a.resizing, main = $$.$el.main;
12325
12325
  if (inputType === "mouse" || !resizing) {
12326
- main.selectAll("line." + CLASS.xgridFocus + ", line." + CLASS.ygridFocus)
12326
+ main.selectAll("line.".concat(CLASS.xgridFocus, ", line.").concat(CLASS.ygridFocus))
12327
12327
  .style("visibility", "hidden");
12328
12328
  $$.hideCircleFocus && $$.hideCircleFocus();
12329
12329
  }
@@ -12331,7 +12331,7 @@ var grid = {
12331
12331
  updateGridFocus: function () {
12332
12332
  var $$ = this;
12333
12333
  var _a = $$.state, inputType = _a.inputType, width = _a.width, height = _a.height, resizing = _a.resizing, grid = $$.$el.grid;
12334
- var xgridFocus = grid.main.select("line." + CLASS.xgridFocus);
12334
+ var xgridFocus = grid.main.select("line.".concat(CLASS.xgridFocus));
12335
12335
  if (inputType === "touch") {
12336
12336
  if (xgridFocus.empty()) {
12337
12337
  resizing && $$.showCircleFocus();
@@ -12354,7 +12354,7 @@ var grid = {
12354
12354
  },
12355
12355
  generateGridData: function (type, scale) {
12356
12356
  var $$ = this;
12357
- var tickNum = $$.$el.main.select("." + CLASS.axisX)
12357
+ var tickNum = $$.$el.main.select(".".concat(CLASS.axisX))
12358
12358
  .selectAll(".tick")
12359
12359
  .size();
12360
12360
  var gridData = [];
@@ -12363,7 +12363,7 @@ var grid = {
12363
12363
  var firstYear = xDomain[0].getFullYear();
12364
12364
  var lastYear = xDomain[1].getFullYear();
12365
12365
  for (var i = firstYear; i <= lastYear; i++) {
12366
- gridData.push(new Date(i + "-01-01 00:00:00"));
12366
+ gridData.push(new Date("".concat(i, "-01-01 00:00:00")));
12367
12367
  }
12368
12368
  }
12369
12369
  else {
@@ -12392,14 +12392,14 @@ var grid = {
12392
12392
  var toShow = function (line) { return !toRemove(line); };
12393
12393
  var classLines = forX ? CLASS.xgridLines : CLASS.ygridLines;
12394
12394
  var classLine = forX ? CLASS.xgridLine : CLASS.ygridLine;
12395
- $$.$el.main.select("." + classLines)
12396
- .selectAll("." + classLine)
12395
+ $$.$el.main.select(".".concat(classLines))
12396
+ .selectAll(".".concat(classLine))
12397
12397
  .filter(toRemove)
12398
12398
  .transition()
12399
12399
  .duration(config.transition_duration)
12400
12400
  .style("opacity", "0")
12401
12401
  .remove();
12402
- var gridLines = "grid_" + (forX ? "x" : "y") + "_lines";
12402
+ var gridLines = "grid_".concat(forX ? "x" : "y", "_lines");
12403
12403
  config[gridLines] = config[gridLines].filter(toShow);
12404
12404
  }
12405
12405
  };
@@ -12425,8 +12425,8 @@ var region = {
12425
12425
  // hide if arc type
12426
12426
  $el.region.main.style("visibility", $$.hasArcType() ? "hidden" : "visible");
12427
12427
  // select <g> element
12428
- var list = $el.main.select("." + CLASS.regions)
12429
- .selectAll("." + CLASS.region)
12428
+ var list = $el.main.select(".".concat(CLASS.regions))
12429
+ .selectAll(".".concat(CLASS.region))
12430
12430
  .data(config.regions);
12431
12431
  list.exit()
12432
12432
  .transition()
@@ -12598,7 +12598,7 @@ var sizeAxis = {
12598
12598
  getAxisTickRotate: function (id) {
12599
12599
  var $$ = this;
12600
12600
  var axis = $$.axis, config = $$.config, state = $$.state, $el = $$.$el;
12601
- var rotate = config["axis_" + id + "_tick_rotate"];
12601
+ var rotate = config["axis_".concat(id, "_tick_rotate")];
12602
12602
  if (id === "x") {
12603
12603
  var allowedXAxisTypes = axis.isCategorized() || axis.isTimeSeries();
12604
12604
  if (config.axis_x_tick_fit && allowedXAxisTypes) {
@@ -14435,9 +14435,9 @@ var shapeArc = {
14435
14435
  var config = $$.config;
14436
14436
  var dataType = config.data_type;
14437
14437
  var padding = config.pie_padding;
14438
- var startingAngle = config[dataType + "_startingAngle"] || 0;
14438
+ var startingAngle = config["".concat(dataType, "_startingAngle")] || 0;
14439
14439
  var padAngle = ($$.hasType("pie") && padding ? padding * 0.01 :
14440
- config[dataType + "_padAngle"]) || 0;
14440
+ config["".concat(dataType, "_padAngle")]) || 0;
14441
14441
  $$.pie = pie$1()
14442
14442
  .startAngle(startingAngle)
14443
14443
  .endAngle(startingAngle + (2 * Math.PI))
@@ -14642,7 +14642,7 @@ var shapeArc = {
14642
14642
  var y1 = Math.sin(updated.endAngle - Math.PI / 2);
14643
14643
  var x = Math.cos(updated.endAngle - Math.PI / 2) * (radiusExpanded + 25);
14644
14644
  var y = y1 * (radiusExpanded + 15 - Math.abs(y1 * 10)) + 3;
14645
- translate = "translate(" + x + "," + y + ")";
14645
+ translate = "translate(".concat(x, ",").concat(y, ")");
14646
14646
  }
14647
14647
  else if (!$$.hasType("gauge") || $$.data.targets.length > 1) {
14648
14648
  var outerRadius = $$.getRadius(d).outerRadius;
@@ -14658,7 +14658,7 @@ var shapeArc = {
14658
14658
  else {
14659
14659
  ratio = outerRadius && (h ? (36 / outerRadius > 0.375 ? 1.175 - 36 / outerRadius : 0.8) * outerRadius / h : 0);
14660
14660
  }
14661
- translate = "translate(" + x * ratio + "," + y * ratio + ")";
14661
+ translate = "translate(".concat(x * ratio, ",").concat(y * ratio, ")");
14662
14662
  }
14663
14663
  }
14664
14664
  return translate;
@@ -14701,14 +14701,14 @@ var shapeArc = {
14701
14701
  var interval_1 = setInterval(function () {
14702
14702
  if (!transiting) {
14703
14703
  clearInterval(interval_1);
14704
- $el.legend.selectAll("." + CLASS.legendItemFocused).size() > 0 &&
14704
+ $el.legend.selectAll(".".concat(CLASS.legendItemFocused)).size() > 0 &&
14705
14705
  $$.expandArc(targetIds);
14706
14706
  }
14707
14707
  }, 10);
14708
14708
  return;
14709
14709
  }
14710
14710
  var newTargetIds = $$.mapToTargetIds(targetIds);
14711
- $el.svg.selectAll($$.selectorTargets(newTargetIds, "." + CLASS.chartArc))
14711
+ $el.svg.selectAll($$.selectorTargets(newTargetIds, ".".concat(CLASS.chartArc)))
14712
14712
  .each(function (d) {
14713
14713
  if (!$$.shouldExpand(d.data.id)) {
14714
14714
  return;
@@ -14731,12 +14731,12 @@ var shapeArc = {
14731
14731
  return;
14732
14732
  }
14733
14733
  var newTargetIds = $$.mapToTargetIds(targetIds);
14734
- svg.selectAll($$.selectorTargets(newTargetIds, "." + CLASS.chartArc))
14734
+ svg.selectAll($$.selectorTargets(newTargetIds, ".".concat(CLASS.chartArc)))
14735
14735
  .selectAll("path")
14736
14736
  .transition()
14737
14737
  .duration(function (d) { return $$.getExpandConfig(d.data.id, "duration"); })
14738
14738
  .attr("d", $$.svgArc);
14739
- svg.selectAll("" + CLASS.arc)
14739
+ svg.selectAll("".concat(CLASS.arc))
14740
14740
  .style("opacity", "1");
14741
14741
  },
14742
14742
  /**
@@ -14763,7 +14763,7 @@ var shapeArc = {
14763
14763
  else if ($$.isPieType(id)) {
14764
14764
  type = "pie";
14765
14765
  }
14766
- return type ? config[type + "_expand_" + key] : def[key];
14766
+ return type ? config["".concat(type, "_expand_").concat(key)] : def[key];
14767
14767
  },
14768
14768
  shouldExpand: function (id) {
14769
14769
  var $$ = this;
@@ -14776,7 +14776,7 @@ var shapeArc = {
14776
14776
  var $$ = this;
14777
14777
  var config = $$.config;
14778
14778
  return ["pie", "donut", "gauge"]
14779
- .some(function (v) { return $$.hasType(v) && config[v + "_label_show"]; });
14779
+ .some(function (v) { return $$.hasType(v) && config["".concat(v, "_label_show")]; });
14780
14780
  },
14781
14781
  getArcLabelFormat: function () {
14782
14782
  var $$ = this;
@@ -14793,7 +14793,7 @@ var shapeArc = {
14793
14793
  getArcTitle: function () {
14794
14794
  var $$ = this;
14795
14795
  var type = ($$.hasType("donut") && "donut") || ($$.hasType("gauge") && "gauge");
14796
- return type ? $$.config[type + "_title"] : "";
14796
+ return type ? $$.config["".concat(type, "_title")] : "";
14797
14797
  },
14798
14798
  updateTargetsForArc: function (targets) {
14799
14799
  var $$ = this;
@@ -14802,9 +14802,9 @@ var shapeArc = {
14802
14802
  var classChartArc = $$.getChartClass("Arc");
14803
14803
  var classArcs = $$.getClass("arcs", true);
14804
14804
  var classFocus = $$.classFocus.bind($$);
14805
- var chartArcs = $el.main.select("." + CLASS.chartArcs);
14805
+ var chartArcs = $el.main.select(".".concat(CLASS.chartArcs));
14806
14806
  var mainPieUpdate = chartArcs
14807
- .selectAll("." + CLASS.chartArc)
14807
+ .selectAll(".".concat(CLASS.chartArc))
14808
14808
  .data($$.pie(targets))
14809
14809
  .attr("class", function (d) { return classChartArc(d) + classFocus(d.data); });
14810
14810
  var mainPieEnter = mainPieUpdate.enter().append("g")
@@ -14817,14 +14817,14 @@ var shapeArc = {
14817
14817
  .style("opacity", "0")
14818
14818
  .style("text-anchor", "middle")
14819
14819
  .style("pointer-events", "none");
14820
- $el.text = chartArcs.selectAll("." + CLASS.target + " text");
14820
+ $el.text = chartArcs.selectAll(".".concat(CLASS.target, " text"));
14821
14821
  // MEMO: can not keep same color..., but not bad to update color in redraw
14822
14822
  // mainPieUpdate.exit().remove();
14823
14823
  },
14824
14824
  initArc: function () {
14825
14825
  var $$ = this;
14826
14826
  var $el = $$.$el;
14827
- $el.arcs = $el.main.select("." + CLASS.chart)
14827
+ $el.arcs = $el.main.select(".".concat(CLASS.chart))
14828
14828
  .append("g")
14829
14829
  .attr("class", CLASS.chartArcs)
14830
14830
  .attr("transform", $$.getTranslate("arc"));
@@ -14855,8 +14855,8 @@ var shapeArc = {
14855
14855
  var config = $$.config, state = $$.state, main = $$.$el.main;
14856
14856
  var hasInteraction = config.interaction_enabled;
14857
14857
  var isSelectable = hasInteraction && config.data_selection_isselectable;
14858
- var mainArc = main.selectAll("." + CLASS.arcs)
14859
- .selectAll("." + CLASS.arc)
14858
+ var mainArc = main.selectAll(".".concat(CLASS.arcs))
14859
+ .selectAll(".".concat(CLASS.arc))
14860
14860
  .data($$.arcData.bind($$));
14861
14861
  mainArc.exit().transition()
14862
14862
  .duration(durationForExit)
@@ -14942,22 +14942,24 @@ var shapeArc = {
14942
14942
  var config = $$.config, state = $$.state;
14943
14943
  var hasMultiArcGauge = $$.hasMultiArcGauge();
14944
14944
  var isFullCircle = config.gauge_fullCircle;
14945
+ var showEmptyTextLabel = $$.filterTargetsToShow($$.data.targets).length === 0 &&
14946
+ !!config.data_empty_label_text;
14945
14947
  var startAngle = $$.getStartAngle();
14946
14948
  var endAngle = isFullCircle ? startAngle + $$.getArcLength() : startAngle * -1;
14947
- var backgroundArc = $$.$el.arcs.select((hasMultiArcGauge ? "g" : "") + "." + CLASS.chartArcsBackground);
14949
+ var backgroundArc = $$.$el.arcs.select("".concat(hasMultiArcGauge ? "g" : "", ".").concat(CLASS.chartArcsBackground));
14948
14950
  if (hasMultiArcGauge) {
14949
14951
  var index_1 = 0;
14950
14952
  backgroundArc = backgroundArc
14951
- .selectAll("path." + CLASS.chartArcsBackground)
14953
+ .selectAll("path.".concat(CLASS.chartArcsBackground))
14952
14954
  .data($$.data.targets);
14953
14955
  backgroundArc.enter()
14954
14956
  .append("path")
14955
- .attr("class", function (d, i) { return CLASS.chartArcsBackground + " " + CLASS.chartArcsBackground + "-" + i; })
14957
+ .attr("class", function (d, i) { return "".concat(CLASS.chartArcsBackground, " ").concat(CLASS.chartArcsBackground, "-").concat(i); })
14956
14958
  .merge(backgroundArc)
14957
14959
  .style("fill", (config.gauge_background) || null)
14958
14960
  .attr("d", function (_a) {
14959
14961
  var id = _a.id;
14960
- if (state.hiddenTargetIds.indexOf(id) >= 0) {
14962
+ if (showEmptyTextLabel || state.hiddenTargetIds.indexOf(id) >= 0) {
14961
14963
  return "M 0 0";
14962
14964
  }
14963
14965
  var d = {
@@ -14971,7 +14973,7 @@ var shapeArc = {
14971
14973
  backgroundArc.exit().remove();
14972
14974
  }
14973
14975
  else {
14974
- backgroundArc.attr("d", function () {
14976
+ backgroundArc.attr("d", showEmptyTextLabel ? "M 0 0" : function () {
14975
14977
  var d = {
14976
14978
  data: [{ value: config.gauge_max }],
14977
14979
  startAngle: startAngle,
@@ -15073,35 +15075,35 @@ var shapeArc = {
15073
15075
  var text;
15074
15076
  // for gauge type, update text when has no title & multi data
15075
15077
  if (!(hasGauge && $$.data.targets.length === 1 && config.gauge_title)) {
15076
- text = main.selectAll("." + CLASS.chartArc)
15078
+ text = main.selectAll(".".concat(CLASS.chartArc))
15077
15079
  .select("text")
15078
15080
  .style("opacity", "0")
15079
15081
  .attr("class", function (d) { return ($$.isGaugeType(d.data) ? CLASS.gaugeValue : null); })
15080
15082
  .call($$.textForArcLabel.bind($$))
15081
15083
  .attr("transform", $$.transformForArcLabel.bind($$))
15082
15084
  .style("font-size", function (d) { return ($$.isGaugeType(d.data) && $$.data.targets.length === 1 && !hasMultiArcGauge ?
15083
- Math.round(state.radius / 5) + "px" : null); })
15085
+ "".concat(Math.round(state.radius / 5), "px") : null); })
15084
15086
  .transition()
15085
15087
  .duration(duration)
15086
15088
  .style("opacity", function (d) { return ($$.isTargetToShow(d.data.id) && $$.isArcType(d.data) ? "1" : "0"); });
15087
15089
  hasMultiArcGauge && text.attr("dy", "-.1em");
15088
15090
  }
15089
- main.select("." + CLASS.chartArcsTitle)
15091
+ main.select(".".concat(CLASS.chartArcsTitle))
15090
15092
  .style("opacity", $$.hasType("donut") || hasGauge ? "1" : "0");
15091
15093
  if (hasGauge) {
15092
15094
  var isFullCircle = config.gauge_fullCircle;
15093
- isFullCircle && text && text.attr("dy", "" + (hasMultiArcGauge ? 0 : Math.round(state.radius / 14)));
15095
+ isFullCircle && text && text.attr("dy", "".concat(hasMultiArcGauge ? 0 : Math.round(state.radius / 14)));
15094
15096
  if (config.gauge_label_show) {
15095
- arcs.select("." + CLASS.chartArcsGaugeUnit)
15096
- .attr("dy", (isFullCircle ? 1.5 : 0.75) + "em")
15097
+ arcs.select(".".concat(CLASS.chartArcsGaugeUnit))
15098
+ .attr("dy", "".concat(isFullCircle ? 1.5 : 0.75, "em"))
15097
15099
  .text(config.gauge_units);
15098
- arcs.select("." + CLASS.chartArcsGaugeMin)
15099
- .attr("dx", -1 * (state.innerRadius + ((state.radius - state.innerRadius) / (isFullCircle ? 1 : 2))) + "px")
15100
+ arcs.select(".".concat(CLASS.chartArcsGaugeMin))
15101
+ .attr("dx", "".concat(-1 * (state.innerRadius + ((state.radius - state.innerRadius) / (isFullCircle ? 1 : 2))), "px"))
15100
15102
  .attr("dy", "1.2em")
15101
15103
  .text($$.textForGaugeMinMax(config.gauge_min, false));
15102
15104
  // show max text when isn't fullCircle
15103
- !isFullCircle && arcs.select("." + CLASS.chartArcsGaugeMax)
15104
- .attr("dx", state.innerRadius + ((state.radius - state.innerRadius) / 2) + "px")
15105
+ !isFullCircle && arcs.select(".".concat(CLASS.chartArcsGaugeMax))
15106
+ .attr("dx", "".concat(state.innerRadius + ((state.radius - state.innerRadius) / 2), "px"))
15105
15107
  .attr("dy", "1.2em")
15106
15108
  .text($$.textForGaugeMinMax(config.gauge_max, true));
15107
15109
  }
@@ -15118,19 +15120,19 @@ var shapeArea = {
15118
15120
  var $$ = this;
15119
15121
  var config = $$.config;
15120
15122
  mainLine
15121
- .insert("g", "." + CLASS[config.area_front ? "circles" : "lines"])
15123
+ .insert("g", ".".concat(CLASS[config.area_front ? "circles" : "lines"]))
15122
15124
  .attr("class", $$.getClass("areas", true));
15123
15125
  },
15124
15126
  updateAreaGradient: function () {
15125
15127
  var $$ = this;
15126
15128
  var config = $$.config, datetimeId = $$.state.datetimeId, defs = $$.$el.defs;
15127
15129
  $$.data.targets.forEach(function (d) {
15128
- var id = datetimeId + "-areaGradient" + $$.getTargetSelectorSuffix(d.id);
15129
- if ($$.isAreaType(d) && defs.select("#" + id).empty()) {
15130
+ var id = "".concat(datetimeId, "-areaGradient").concat($$.getTargetSelectorSuffix(d.id));
15131
+ if ($$.isAreaType(d) && defs.select("#".concat(id)).empty()) {
15130
15132
  var color_1 = $$.color(d);
15131
15133
  var _a = config.area_linearGradient, _b = _a.x, x = _b === void 0 ? [0, 0] : _b, _c = _a.y, y = _c === void 0 ? [0, 1] : _c, _d = _a.stops, stops = _d === void 0 ? [[0, color_1, 1], [1, color_1, 0]] : _d;
15132
15134
  var linearGradient_1 = defs.append("linearGradient")
15133
- .attr("id", "" + id)
15135
+ .attr("id", "".concat(id))
15134
15136
  .attr("x1", x[0])
15135
15137
  .attr("x2", x[1])
15136
15138
  .attr("y1", y[0])
@@ -15148,15 +15150,15 @@ var shapeArea = {
15148
15150
  updateAreaColor: function (d) {
15149
15151
  var $$ = this;
15150
15152
  return $$.config.area_linearGradient ?
15151
- "url(#" + $$.state.datetimeId + "-areaGradient" + $$.getTargetSelectorSuffix(d.id) + ")" :
15153
+ "url(#".concat($$.state.datetimeId, "-areaGradient").concat($$.getTargetSelectorSuffix(d.id), ")") :
15152
15154
  $$.color(d);
15153
15155
  },
15154
15156
  updateArea: function (durationForExit) {
15155
15157
  var $$ = this;
15156
15158
  var config = $$.config, state = $$.state, $el = $$.$el;
15157
15159
  config.area_linearGradient && $$.updateAreaGradient();
15158
- $el.area = $el.main.selectAll("." + CLASS.areas)
15159
- .selectAll("." + CLASS.area)
15160
+ $el.area = $el.main.selectAll(".".concat(CLASS.areas))
15161
+ .selectAll(".".concat(CLASS.area))
15160
15162
  .data($$.lineData.bind($$));
15161
15163
  $el.area.exit().transition()
15162
15164
  .duration(durationForExit)
@@ -15234,7 +15236,7 @@ var shapeArea = {
15234
15236
  x0 = $$.scale.x(values[0].x);
15235
15237
  y0 = $$.getYScaleById(d.id)(values[0].value);
15236
15238
  }
15237
- path = isRotated ? "M " + y0 + " " + x0 : "M " + x0 + " " + y0;
15239
+ path = isRotated ? "M ".concat(y0, " ").concat(x0) : "M ".concat(x0, " ").concat(y0);
15238
15240
  }
15239
15241
  return path || "M 0 0";
15240
15242
  };
@@ -15274,7 +15276,7 @@ var shapeArea = {
15274
15276
  var shapeBar = {
15275
15277
  initBar: function () {
15276
15278
  var $el = this.$el;
15277
- $el.bar = $el.main.select("." + CLASS.chart)
15279
+ $el.bar = $el.main.select(".".concat(CLASS.chart))
15278
15280
  // should positioned at the beginning of the shape node to not overlap others
15279
15281
  .insert("g", ":first-child")
15280
15282
  .attr("class", CLASS.chartBars);
@@ -15289,8 +15291,8 @@ var shapeBar = {
15289
15291
  if (!$el.bar) {
15290
15292
  $$.initBar();
15291
15293
  }
15292
- var mainBarUpdate = $$.$el.main.select("." + CLASS.chartBars)
15293
- .selectAll("." + CLASS.chartBar)
15294
+ var mainBarUpdate = $$.$el.main.select(".".concat(CLASS.chartBars))
15295
+ .selectAll(".".concat(CLASS.chartBar))
15294
15296
  .data(targets)
15295
15297
  .attr("class", function (d) { return classChartBar(d) + classFocus(d); });
15296
15298
  var mainBarEnter = mainBarUpdate.enter().append("g")
@@ -15308,7 +15310,7 @@ var shapeBar = {
15308
15310
  var barData = $$.barData.bind($$);
15309
15311
  var classBar = $$.getClass("bar", true);
15310
15312
  var initialOpacity = $$.initialOpacity.bind($$);
15311
- $el.bar = $el.main.selectAll("." + CLASS.bars).selectAll("." + CLASS.bar)
15313
+ $el.bar = $el.main.selectAll(".".concat(CLASS.bars)).selectAll(".".concat(CLASS.bar))
15312
15314
  .data(barData);
15313
15315
  $el.bar.exit().transition()
15314
15316
  .duration(durationForExit)
@@ -15360,10 +15362,10 @@ var shapeBar = {
15360
15362
  getBars: function (i, id) {
15361
15363
  var $$ = this;
15362
15364
  var main = $$.$el.main;
15363
- var suffix = (isValue(i) ? "-" + i : "");
15365
+ var suffix = (isValue(i) ? "-".concat(i) : "");
15364
15366
  return (id ? main
15365
- .selectAll("." + CLASS.bars + $$.getTargetSelectorSuffix(id)) : main)
15366
- .selectAll("." + CLASS.bar + suffix);
15367
+ .selectAll(".".concat(CLASS.bars).concat($$.getTargetSelectorSuffix(id))) : main)
15368
+ .selectAll(".".concat(CLASS.bar).concat(suffix));
15367
15369
  },
15368
15370
  expandBars: function (i, id, reset) {
15369
15371
  var $$ = this;
@@ -15397,17 +15399,17 @@ var shapeBar = {
15397
15399
  var index = isRotated ? indexY : indexX;
15398
15400
  var barW = points[2][index] - points[0][index];
15399
15401
  radius = getRadius(barW);
15400
- var arc = "a" + radius + "," + radius + " " + (isNegative ? "1 0 0" : "0 0 1") + " ";
15401
- pathRadius[+!isRotated] = "" + arc + radius + "," + radius;
15402
- pathRadius[+isRotated] = "" + arc + [-radius, radius][isRotated ? "sort" : "reverse"]();
15402
+ var arc = "a".concat(radius, ",").concat(radius, " ").concat(isNegative ? "1 0 0" : "0 0 1", " ");
15403
+ pathRadius[+!isRotated] = "".concat(arc).concat(radius, ",").concat(radius);
15404
+ pathRadius[+isRotated] = "".concat(arc).concat([-radius, radius][isRotated ? "sort" : "reverse"]());
15403
15405
  isNegative && pathRadius.reverse();
15404
15406
  }
15405
15407
  // path string data shouldn't be containing new line chars
15406
15408
  // https://github.com/naver/billboard.js/issues/530
15407
15409
  var path = isRotated ?
15408
- "H" + (points[1][indexX] - radius) + " " + pathRadius[0] + "V" + (points[2][indexY] - radius) + " " + pathRadius[1] + "H" + points[3][indexX] :
15409
- "V" + (points[1][indexY] + (isNegative ? -radius : radius)) + " " + pathRadius[0] + "H" + (points[2][indexX] - radius) + " " + pathRadius[1] + "V" + points[3][indexY];
15410
- return "M" + points[0][indexX] + "," + points[0][indexY] + path + "z";
15410
+ "H".concat(points[1][indexX] - radius, " ").concat(pathRadius[0], "V").concat(points[2][indexY] - radius, " ").concat(pathRadius[1], "H").concat(points[3][indexX]) :
15411
+ "V".concat(points[1][indexY] + (isNegative ? -radius : radius), " ").concat(pathRadius[0], "H").concat(points[2][indexX] - radius, " ").concat(pathRadius[1], "V").concat(points[3][indexY]);
15412
+ return "M".concat(points[0][indexX], ",").concat(points[0][indexY]).concat(path, "z");
15411
15413
  };
15412
15414
  },
15413
15415
  generateGetBarPoints: function (barIndices, isSub) {
@@ -15502,12 +15504,12 @@ var shapeGauge = {
15502
15504
  var $$ = this;
15503
15505
  var config = $$.config, state = $$.state, $el = $$.$el;
15504
15506
  var hiddenTargetIds = $$.state.hiddenTargetIds;
15505
- var arcLabelLines = $el.main.selectAll("." + CLASS.arcs)
15506
- .selectAll("." + CLASS.arcLabelLine)
15507
+ var arcLabelLines = $el.main.selectAll(".".concat(CLASS.arcs))
15508
+ .selectAll(".".concat(CLASS.arcLabelLine))
15507
15509
  .data($$.arcData.bind($$));
15508
15510
  var mainArcLabelLine = arcLabelLines.enter()
15509
15511
  .append("rect")
15510
- .attr("class", function (d) { return CLASS.arcLabelLine + " " + CLASS.target + " " + CLASS.target + "-" + d.data.id; })
15512
+ .attr("class", function (d) { return "".concat(CLASS.arcLabelLine, " ").concat(CLASS.target, " ").concat(CLASS.target, "-").concat(d.data.id); })
15511
15513
  .merge(arcLabelLines);
15512
15514
  mainArcLabelLine
15513
15515
  .style("fill", function (d) { return ($$.levelColor ? $$.levelColor(d.data.values[0].value) : $$.color(d.data)); })
@@ -15528,7 +15530,7 @@ var shapeGauge = {
15528
15530
  lineLength = state.radiusExpanded - state.radius + innerLineLength;
15529
15531
  x = Math.cos(linePositioningAngle) * arcInnerRadius;
15530
15532
  y = Math.sin(linePositioningAngle) * arcInnerRadius;
15531
- transform = "rotate(" + lineAngle * 180 / Math.PI + ", " + x + ", " + y + ")";
15533
+ transform = "rotate(".concat(lineAngle * 180 / Math.PI, ", ").concat(x, ", ").concat(y, ")");
15532
15534
  }
15533
15535
  select(this)
15534
15536
  .attr("x", x)
@@ -15536,7 +15538,7 @@ var shapeGauge = {
15536
15538
  .attr("width", lineLength)
15537
15539
  .attr("height", lineThickness)
15538
15540
  .attr("transform", transform)
15539
- .style("stroke-dasharray", "0, " + (lineLength + lineThickness) + ", 0");
15541
+ .style("stroke-dasharray", "0, ".concat(lineLength + lineThickness, ", 0"));
15540
15542
  });
15541
15543
  },
15542
15544
  textForGaugeMinMax: function (value, isMax) {
@@ -15628,7 +15630,7 @@ var shapeBubble = {
15628
15630
  var shapeLine = {
15629
15631
  initLine: function () {
15630
15632
  var $el = this.$el;
15631
- $el.line = $el.main.select("." + CLASS.chart).append("g")
15633
+ $el.line = $el.main.select(".".concat(CLASS.chart)).append("g")
15632
15634
  .attr("class", CLASS.chartLines);
15633
15635
  },
15634
15636
  updateTargetsForLine: function (t) {
@@ -15641,8 +15643,8 @@ var shapeLine = {
15641
15643
  $$.initLine();
15642
15644
  }
15643
15645
  var targets = t.filter(function (d) { return !($$.isScatterType(d) || $$.isBubbleType(d)); });
15644
- var mainLineUpdate = main.select("." + CLASS.chartLines)
15645
- .selectAll("." + CLASS.chartLine)
15646
+ var mainLineUpdate = main.select(".".concat(CLASS.chartLines))
15647
+ .selectAll(".".concat(CLASS.chartLine))
15646
15648
  .data(targets)
15647
15649
  .attr("class", function (d) { return classChartLine(d) + classFocus(d); });
15648
15650
  var mainLineEnter = mainLineUpdate.enter().append("g")
@@ -15662,8 +15664,8 @@ var shapeLine = {
15662
15664
  var $$ = this;
15663
15665
  var extraLineClasses = $$.format.extraLineClasses, $el = $$.$el;
15664
15666
  $el.line = $el.main
15665
- .selectAll("." + CLASS.lines)
15666
- .selectAll("." + CLASS.line)
15667
+ .selectAll(".".concat(CLASS.lines))
15668
+ .selectAll(".".concat(CLASS.line))
15667
15669
  .data($$.lineData.bind($$));
15668
15670
  $el.line.exit().transition()
15669
15671
  .duration(durationForExit)
@@ -15671,7 +15673,7 @@ var shapeLine = {
15671
15673
  .remove();
15672
15674
  $el.line = $el.line.enter()
15673
15675
  .append("path")
15674
- .attr("class", function (d) { return $$.getClass("line", true)(d) + " " + (extraLineClasses(d) || ""); })
15676
+ .attr("class", function (d) { return "".concat($$.getClass("line", true)(d), " ").concat(extraLineClasses(d) || ""); })
15675
15677
  .style("stroke", $$.color)
15676
15678
  .merge($el.line)
15677
15679
  .style("opacity", $$.initialOpacity.bind($$))
@@ -15758,7 +15760,7 @@ var shapeLine = {
15758
15760
  x0 = x(values[0].x);
15759
15761
  y0 = y(values[0].value);
15760
15762
  }
15761
- path = isRotated ? "M " + y0 + " " + x0 : "M " + x0 + " " + y0;
15763
+ path = isRotated ? "M ".concat(y0, " ").concat(x0) : "M ".concat(x0, " ").concat(y0);
15762
15764
  }
15763
15765
  return path || "M 0 0";
15764
15766
  };
@@ -15798,7 +15800,7 @@ var shapeLine = {
15798
15800
  var xValue = isRotated ? function (dt) { return y(dt.value); } : function (dt) { return x(dt.x); };
15799
15801
  var yValue = isRotated ? function (dt) { return x(dt.x); } : function (dt) { return y(dt.value); };
15800
15802
  // Define svg generator function for region
15801
- var generateM = function (points) { return "M" + points[0][0] + "," + points[0][1] + "L" + points[1][0] + "," + points[1][1]; };
15803
+ var generateM = function (points) { return "M".concat(points[0][0], ",").concat(points[0][1], "L").concat(points[1][0], ",").concat(points[1][1]); };
15802
15804
  var sWithRegion = isTimeSeries ? function (d0, d1, k, timeseriesDiff) {
15803
15805
  var x0 = d0.x.getTime();
15804
15806
  var xDiff = d1.x - d0.x;
@@ -15827,7 +15829,7 @@ var shapeLine = {
15827
15829
  }
15828
15830
  // Draw as normal
15829
15831
  if (isUndefined(regions) || !style || !hasPrevData) {
15830
- path += "" + (i && hasPrevData ? "L" : "M") + xValue(data) + "," + yValue(data);
15832
+ path += "".concat(i && hasPrevData ? "L" : "M").concat(xValue(data), ",").concat(yValue(data));
15831
15833
  }
15832
15834
  else if (hasPrevData) {
15833
15835
  try {
@@ -15899,8 +15901,8 @@ var shapePoint = {
15899
15901
  var $$ = this;
15900
15902
  var main = $$.$el.main;
15901
15903
  $$.point = $$.generatePoint();
15902
- if (($$.hasType("bubble") || $$.hasType("scatter")) && main.select("." + CLASS.chartCircles).empty()) {
15903
- main.select("." + CLASS.chart)
15904
+ if (($$.hasType("bubble") || $$.hasType("scatter")) && main.select(".".concat(CLASS.chartCircles)).empty()) {
15905
+ main.select(".".concat(CLASS.chart))
15904
15906
  .append("g")
15905
15907
  .attr("class", CLASS.chartCircles);
15906
15908
  }
@@ -15922,9 +15924,9 @@ var shapePoint = {
15922
15924
  if (!targets) {
15923
15925
  targets = (data.targets)
15924
15926
  .filter(function (d) { return _this.isScatterType(d) || _this.isBubbleType(d); });
15925
- var mainCircle = $el.main.select("." + CLASS.chartCircles)
15927
+ var mainCircle = $el.main.select(".".concat(CLASS.chartCircles))
15926
15928
  .style("pointer-events", "none")
15927
- .selectAll("." + CLASS.circles)
15929
+ .selectAll(".".concat(CLASS.circles))
15928
15930
  .data(targets)
15929
15931
  .attr("class", classCircles);
15930
15932
  mainCircle.exit().remove();
@@ -15938,8 +15940,8 @@ var shapePoint = {
15938
15940
  .style("cursor", function (d) { return (isSelectable && isSelectable(d) ? "pointer" : null); });
15939
15941
  // Update date for selected circles
15940
15942
  selectionEnabled && targets.forEach(function (t) {
15941
- $el.main.selectAll("." + CLASS.selectedCircles + $$.getTargetSelectorSuffix(t.id))
15942
- .selectAll("" + CLASS.selectedCircle)
15943
+ $el.main.selectAll(".".concat(CLASS.selectedCircles).concat($$.getTargetSelectorSuffix(t.id)))
15944
+ .selectAll("".concat(CLASS.selectedCircle))
15943
15945
  .each(function (d) {
15944
15946
  d.value = t.values[d.index].value;
15945
15947
  });
@@ -15950,8 +15952,8 @@ var shapePoint = {
15950
15952
  var config = $$.config, state = $$.state, $el = $$.$el;
15951
15953
  var focusOnly = config.point_focus_only;
15952
15954
  if (config.point_show && !state.toggling) {
15953
- var circles = $el.main.selectAll("." + CLASS.circles)
15954
- .selectAll("." + CLASS.circle)
15955
+ var circles = $el.main.selectAll(".".concat(CLASS.circles))
15956
+ .selectAll(".".concat(CLASS.circle))
15955
15957
  .data(function (d) { return (($$.isLineType(d) && $$.shouldDrawPointsForLine(d)) ||
15956
15958
  $$.isBubbleType(d) || $$.isRadarType(d) || $$.isScatterType(d) ?
15957
15959
  (focusOnly ? [d.values[0]] : d.values) : []); });
@@ -15959,7 +15961,7 @@ var shapePoint = {
15959
15961
  circles.enter()
15960
15962
  .filter(Boolean)
15961
15963
  .append($$.point("create", this, $$.pointR.bind($$), $$.color));
15962
- $el.circle = $el.main.selectAll("." + CLASS.circles + " ." + CLASS.circle)
15964
+ $el.circle = $el.main.selectAll(".".concat(CLASS.circles, " .").concat(CLASS.circle))
15963
15965
  .style("stroke", $$.color)
15964
15966
  .style("opacity", $$.initialOpacityForCircle.bind($$));
15965
15967
  }
@@ -15967,7 +15969,7 @@ var shapePoint = {
15967
15969
  redrawCircle: function (cx, cy, withTransition, flow) {
15968
15970
  var $$ = this;
15969
15971
  var rendered = $$.state.rendered, _a = $$.$el, circle = _a.circle, main = _a.main;
15970
- var selectedCircles = main.selectAll("." + CLASS.selectedCircle);
15972
+ var selectedCircles = main.selectAll(".".concat(CLASS.selectedCircle));
15971
15973
  if (!$$.config.point_show) {
15972
15974
  return [];
15973
15975
  }
@@ -15985,8 +15987,8 @@ var shapePoint = {
15985
15987
  return [
15986
15988
  mainCircles,
15987
15989
  (withTransition ? selectedCircles.transition() : selectedCircles)
15988
- .attr(posAttr + "x", cx)
15989
- .attr(posAttr + "y", cy)
15990
+ .attr("".concat(posAttr, "x"), cx)
15991
+ .attr("".concat(posAttr, "y"), cy)
15990
15992
  ];
15991
15993
  },
15992
15994
  /**
@@ -16053,9 +16055,9 @@ var shapePoint = {
16053
16055
  },
16054
16056
  getCircles: function (i, id) {
16055
16057
  var $$ = this;
16056
- var suffix = (isValue(i) ? "-" + i : "");
16057
- return (id ? $$.$el.main.selectAll("." + CLASS.circles + $$.getTargetSelectorSuffix(id)) : $$.$el.main)
16058
- .selectAll("." + CLASS.circle + suffix);
16058
+ var suffix = (isValue(i) ? "-".concat(i) : "");
16059
+ return (id ? $$.$el.main.selectAll(".".concat(CLASS.circles).concat($$.getTargetSelectorSuffix(id))) : $$.$el.main)
16060
+ .selectAll(".".concat(CLASS.circle).concat(suffix));
16059
16061
  },
16060
16062
  expandCircles: function (i, id, reset) {
16061
16063
  var $$ = this;
@@ -16078,7 +16080,7 @@ var shapePoint = {
16078
16080
  var _a = this.getBBox(), width = _a.width, height = _a.height;
16079
16081
  var x = ratio * (+point.attr("x") + width / 2);
16080
16082
  var y = ratio * (+point.attr("y") + height / 2);
16081
- point.attr("transform", "translate(" + x + " " + y + ") scale(" + scale + ")");
16083
+ point.attr("transform", "translate(".concat(x, " ").concat(y, ") scale(").concat(scale, ")"));
16082
16084
  }
16083
16085
  });
16084
16086
  }
@@ -16093,7 +16095,7 @@ var shapePoint = {
16093
16095
  .classed(CLASS.EXPANDED, false);
16094
16096
  circles.attr("r", r);
16095
16097
  !$$.isCirclePoint() &&
16096
- circles.attr("transform", "scale(" + r(circles) / $$.config.point_r + ")");
16098
+ circles.attr("transform", "scale(".concat(r(circles) / $$.config.point_r, ")"));
16097
16099
  },
16098
16100
  pointR: function (d) {
16099
16101
  var $$ = this;
@@ -16125,8 +16127,8 @@ var shapePoint = {
16125
16127
  var mouse$1 = mouse(node);
16126
16128
  var element = select(node);
16127
16129
  var prefix = this.isCirclePoint(node) ? "c" : "";
16128
- var cx = +element.attr(prefix + "x");
16129
- var cy = +element.attr(prefix + "y");
16130
+ var cx = +element.attr("".concat(prefix, "x"));
16131
+ var cy = +element.attr("".concat(prefix, "y"));
16130
16132
  // if node don't have cx/y or x/y attribute value
16131
16133
  if (!(cx || cy) && node.nodeType === 1) {
16132
16134
  var _a = getBoundingRect(node), x = _a.x, y = _a.y;
@@ -16165,7 +16167,7 @@ var shapePoint = {
16165
16167
  $$.$el.defs.node().appendChild(clone);
16166
16168
  },
16167
16169
  pointFromDefs: function (id) {
16168
- return this.$el.defs.select("#" + id);
16170
+ return this.$el.defs.select("#".concat(id));
16169
16171
  },
16170
16172
  updatePointClass: function (d) {
16171
16173
  var $$ = this;
@@ -16176,7 +16178,7 @@ var shapePoint = {
16176
16178
  circle.each(function (d) {
16177
16179
  var className = $$.getClass("circle", true)(d);
16178
16180
  if (this.getAttribute("class").indexOf(CLASS.EXPANDED) > -1) {
16179
- className += " " + CLASS.EXPANDED;
16181
+ className += " ".concat(CLASS.EXPANDED);
16180
16182
  }
16181
16183
  this.setAttribute("class", className);
16182
16184
  }) : $$.getClass("circle", true)(d);
@@ -16228,26 +16230,26 @@ var shapePoint = {
16228
16230
  point = $$[point];
16229
16231
  }
16230
16232
  else if (!$$.hasValidPointDrawMethods(point)) {
16231
- var pointId = datetimeId + "-point" + id;
16233
+ var pointId = "".concat(datetimeId, "-point").concat(id);
16232
16234
  var pointFromDefs = $$.pointFromDefs(pointId);
16233
16235
  if (pointFromDefs.size() < 1) {
16234
16236
  $$.insertPointInfoDefs(point, pointId);
16235
16237
  }
16236
16238
  if (method === "create") {
16237
- return $$.custom.create.bind(context).apply(void 0, __spreadArray([element, pointId], args));
16239
+ return $$.custom.create.bind(context).apply(void 0, __spreadArray([element, pointId], args, false));
16238
16240
  }
16239
16241
  else if (method === "update") {
16240
- return $$.custom.update.bind(context).apply(void 0, __spreadArray([element], args));
16242
+ return $$.custom.update.bind(context).apply(void 0, __spreadArray([element], args, false));
16241
16243
  }
16242
16244
  }
16243
- return point[method].bind(context).apply(void 0, __spreadArray([element], args));
16245
+ return point[method].bind(context).apply(void 0, __spreadArray([element], args, false));
16244
16246
  };
16245
16247
  };
16246
16248
  },
16247
16249
  custom: {
16248
16250
  create: function (element, id, sizeFn, fillStyleFn) {
16249
16251
  return element.append("use")
16250
- .attr("xlink:href", "#" + id)
16252
+ .attr("xlink:href", "#".concat(id))
16251
16253
  .attr("class", this.updatePointClass.bind(this))
16252
16254
  .style("fill", fillStyleFn)
16253
16255
  .node();
@@ -16358,7 +16360,7 @@ var shapeRadar = {
16358
16360
  var $$ = this;
16359
16361
  var config = $$.config, current = $$.state.current, $el = $$.$el;
16360
16362
  if ($$.hasType("radar")) {
16361
- $el.radar = $el.main.select("." + CLASS.chart).append("g")
16363
+ $el.radar = $el.main.select(".".concat(CLASS.chart)).append("g")
16362
16364
  .attr("class", CLASS.chartRadars);
16363
16365
  // level
16364
16366
  $el.radar.levels = $el.radar.append("g")
@@ -16422,7 +16424,7 @@ var shapeRadar = {
16422
16424
  // Adjust radar, circles and texts' position
16423
16425
  if (translate) {
16424
16426
  radar.attr("transform", translate);
16425
- main.select("." + CLASS.chartTexts).attr("transform", translate);
16427
+ main.select(".".concat(CLASS.chartTexts)).attr("transform", translate);
16426
16428
  $$.generateRadarPoints();
16427
16429
  $$.updateRadarLevel();
16428
16430
  $$.updateRadarAxes();
@@ -16460,11 +16462,11 @@ var shapeRadar = {
16460
16462
  return pos.join(" ");
16461
16463
  });
16462
16464
  var level = radarLevels
16463
- .selectAll("." + CLASS.level)
16465
+ .selectAll(".".concat(CLASS.level))
16464
16466
  .data(levelData);
16465
16467
  level.exit().remove();
16466
16468
  var levelEnter = level.enter().append("g")
16467
- .attr("class", function (d, i) { return CLASS.level + " " + CLASS.level + "-" + i; });
16469
+ .attr("class", function (d, i) { return "".concat(CLASS.level, " ").concat(CLASS.level, "-").concat(i); });
16468
16470
  levelEnter.append("polygon")
16469
16471
  .style("visibility", config.radar_level_show ? null : "hidden");
16470
16472
  if (showText) {
@@ -16483,7 +16485,7 @@ var shapeRadar = {
16483
16485
  }
16484
16486
  levelEnter
16485
16487
  .merge(level)
16486
- .attr("transform", function (d) { return "translate(" + (width - levelRatio[d]) + ", " + (height - levelRatio[d]) + ")"; })
16488
+ .attr("transform", function (d) { return "translate(".concat(width - levelRatio[d], ", ").concat(height - levelRatio[d], ")"); })
16487
16489
  .selectAll("polygon")
16488
16490
  .attr("points", function (d) { return points[d]; });
16489
16491
  // update level text position
@@ -16502,7 +16504,7 @@ var shapeRadar = {
16502
16504
  .data(categories);
16503
16505
  axis.exit().remove();
16504
16506
  var axisEnter = axis.enter().append("g")
16505
- .attr("class", function (d, i) { return CLASS.axis + "-" + i; });
16507
+ .attr("class", function (d, i) { return "".concat(CLASS.axis, "-").concat(i); });
16506
16508
  config.radar_axis_line_show && axisEnter.append("line");
16507
16509
  config.radar_axis_text_show && axisEnter.append("text");
16508
16510
  axis = axisEnter.merge(axis);
@@ -16549,7 +16551,7 @@ var shapeRadar = {
16549
16551
  else if (posY < height) {
16550
16552
  posY -= y_1;
16551
16553
  }
16552
- return "translate(" + posX + " " + posY + ")";
16554
+ return "translate(".concat(posX, " ").concat(posY, ")");
16553
16555
  });
16554
16556
  }
16555
16557
  $$.bindEvent();
@@ -17517,8 +17519,8 @@ var apiSelection = {
17517
17519
  selected: function (targetId) {
17518
17520
  var $$ = this.internal;
17519
17521
  var dataPoint = [];
17520
- $$.$el.main.selectAll("." + (CLASS.shapes + $$.getTargetSelectorSuffix(targetId)))
17521
- .selectAll("." + CLASS.shape)
17522
+ $$.$el.main.selectAll(".".concat(CLASS.shapes + $$.getTargetSelectorSuffix(targetId)))
17523
+ .selectAll(".".concat(CLASS.shape))
17522
17524
  .filter(function () {
17523
17525
  return select(this).classed(CLASS.SELECTED);
17524
17526
  })
@@ -17555,8 +17557,8 @@ var apiSelection = {
17555
17557
  if (!config.data_selection_enabled) {
17556
17558
  return;
17557
17559
  }
17558
- $el.main.selectAll("." + CLASS.shapes)
17559
- .selectAll("." + CLASS.shape)
17560
+ $el.main.selectAll(".".concat(CLASS.shapes))
17561
+ .selectAll(".".concat(CLASS.shape))
17560
17562
  .each(function (d, i) {
17561
17563
  var shape = select(this);
17562
17564
  var id = d.data ? d.data.id : d.id;
@@ -17601,8 +17603,8 @@ var apiSelection = {
17601
17603
  if (!config.data_selection_enabled) {
17602
17604
  return;
17603
17605
  }
17604
- $el.main.selectAll("." + CLASS.shapes)
17605
- .selectAll("." + CLASS.shape)
17606
+ $el.main.selectAll(".".concat(CLASS.shapes))
17607
+ .selectAll(".".concat(CLASS.shape))
17606
17608
  .each(function (d, i) {
17607
17609
  var shape = select(this);
17608
17610
  var id = d.data ? d.data.id : d.id;
@@ -17817,7 +17819,7 @@ var apiZoom = {
17817
17819
  $$.updateZoom(true);
17818
17820
  $$.zoom.resetBtn && $$.zoom.resetBtn.style("display", "none");
17819
17821
  // reset transform
17820
- var eventRects = $$.$el.main.select("." + CLASS.eventRects);
17822
+ var eventRects = $$.$el.main.select(".".concat(CLASS.eventRects));
17821
17823
  if (zoomTransform(eventRects.node()) !== zoomIdentity) {
17822
17824
  $$.zoom.transform(eventRects, zoomIdentity);
17823
17825
  }
@@ -17863,14 +17865,14 @@ var drag = {
17863
17865
  var maxX = Math.max(sx, mx);
17864
17866
  var minY = isSelectionGrouped ? state.margin.top : Math.min(sy, my);
17865
17867
  var maxY = isSelectionGrouped ? state.height : Math.max(sy, my);
17866
- main.select("." + CLASS.dragarea)
17868
+ main.select(".".concat(CLASS.dragarea))
17867
17869
  .attr("x", minX)
17868
17870
  .attr("y", minY)
17869
17871
  .attr("width", maxX - minX)
17870
17872
  .attr("height", maxY - minY);
17871
17873
  // TODO: binary search when multiple xs
17872
- main.selectAll("." + CLASS.shapes)
17873
- .selectAll("." + CLASS.shape)
17874
+ main.selectAll(".".concat(CLASS.shapes))
17875
+ .selectAll(".".concat(CLASS.shape))
17874
17876
  .filter(function (d) { return isSelectable && isSelectable.bind($$.api)(d); })
17875
17877
  .each(function (d, i) {
17876
17878
  var shape = select(this);
@@ -17915,7 +17917,7 @@ var drag = {
17915
17917
  return;
17916
17918
  }
17917
17919
  state.dragStart = mouse;
17918
- main.select("." + CLASS.chart)
17920
+ main.select(".".concat(CLASS.chart))
17919
17921
  .append("rect")
17920
17922
  .attr("class", CLASS.dragarea)
17921
17923
  .style("opacity", "0.1");
@@ -17932,12 +17934,12 @@ var drag = {
17932
17934
  if ($$.hasArcType() || !config.data_selection_enabled) { // do nothing if not selectable
17933
17935
  return;
17934
17936
  }
17935
- main.select("." + CLASS.dragarea)
17937
+ main.select(".".concat(CLASS.dragarea))
17936
17938
  .transition()
17937
17939
  .duration(100)
17938
17940
  .style("opacity", "0")
17939
17941
  .remove();
17940
- main.selectAll("." + CLASS.shape)
17942
+ main.selectAll(".".concat(CLASS.shape))
17941
17943
  .classed(CLASS.INCLUDED, false);
17942
17944
  $$.setDragStatus(false);
17943
17945
  }
@@ -17960,8 +17962,8 @@ var selection = _assign(_assign({}, drag), {
17960
17962
  var r = $$.pointSelectR.bind($$);
17961
17963
  callFn(config.data_onselected, $$.api, d, target.node());
17962
17964
  // add selected-circle on low layer g
17963
- main.select("." + CLASS.selectedCircles + $$.getTargetSelectorSuffix(d.id))
17964
- .selectAll("." + CLASS.selectedCircle + "-" + i)
17965
+ main.select(".".concat(CLASS.selectedCircles).concat($$.getTargetSelectorSuffix(d.id)))
17966
+ .selectAll(".".concat(CLASS.selectedCircle, "-").concat(i))
17965
17967
  .data([d])
17966
17968
  .enter()
17967
17969
  .append("circle")
@@ -17973,7 +17975,7 @@ var selection = _assign(_assign({}, drag), {
17973
17975
  .transition()
17974
17976
  .duration(100)
17975
17977
  .attr("r", r);
17976
- },
17978
+ },
17977
17979
  /**
17978
17980
  * Unelect a point
17979
17981
  * @param {object} target Target point
@@ -17986,13 +17988,13 @@ var selection = _assign(_assign({}, drag), {
17986
17988
  var config = $$.config, $el = $$.$el;
17987
17989
  callFn(config.data_onunselected, $$.api, d, target.node());
17988
17990
  // remove selected-circle from low layer g
17989
- $el.main.select("." + CLASS.selectedCircles + $$.getTargetSelectorSuffix(d.id))
17990
- .selectAll("." + CLASS.selectedCircle + "-" + i)
17991
+ $el.main.select(".".concat(CLASS.selectedCircles).concat($$.getTargetSelectorSuffix(d.id)))
17992
+ .selectAll(".".concat(CLASS.selectedCircle, "-").concat(i))
17991
17993
  .transition()
17992
17994
  .duration(100)
17993
17995
  .attr("r", 0)
17994
17996
  .remove();
17995
- },
17997
+ },
17996
17998
  /**
17997
17999
  * Toggles the selection of points
17998
18000
  * @param {boolean} selected whether or not to select.
@@ -18002,9 +18004,9 @@ var selection = _assign(_assign({}, drag), {
18002
18004
  * @private
18003
18005
  */
18004
18006
  togglePoint: function (selected, target, d, i) {
18005
- var method = (selected ? "" : "un") + "selectPoint";
18007
+ var method = "".concat(selected ? "" : "un", "selectPoint");
18006
18008
  this[method](target, d, i);
18007
- },
18009
+ },
18008
18010
  /**
18009
18011
  * Select a path
18010
18012
  * @param {object} target Target path
@@ -18019,7 +18021,7 @@ var selection = _assign(_assign({}, drag), {
18019
18021
  target.transition().duration(100)
18020
18022
  .style("fill", function () { return rgb($$.color(d)).brighter(0.75); });
18021
18023
  }
18022
- },
18024
+ },
18023
18025
  /**
18024
18026
  * Unelect a path
18025
18027
  * @private
@@ -18034,7 +18036,7 @@ var selection = _assign(_assign({}, drag), {
18034
18036
  target.transition().duration(100)
18035
18037
  .style("fill", function () { return $$.color(d); });
18036
18038
  }
18037
- },
18039
+ },
18038
18040
  /**
18039
18041
  * Toggles the selection of lines
18040
18042
  * @param {boolean} selected whether or not to select.
@@ -18044,8 +18046,8 @@ var selection = _assign(_assign({}, drag), {
18044
18046
  * @private
18045
18047
  */
18046
18048
  togglePath: function (selected, target, d, i) {
18047
- this[(selected ? "" : "un") + "selectPath"](target, d, i);
18048
- },
18049
+ this["".concat(selected ? "" : "un", "selectPath")](target, d, i);
18050
+ },
18049
18051
  /**
18050
18052
  * Returns the toggle method of the target
18051
18053
  * @param {object} that shape
@@ -18059,7 +18061,7 @@ var selection = _assign(_assign({}, drag), {
18059
18061
  $$.togglePath : ($$.isStepType(d) ?
18060
18062
  function () { } : // circle is hidden in step chart, so treat as within the click area
18061
18063
  $$.togglePoint);
18062
- },
18064
+ },
18063
18065
  /**
18064
18066
  * Toggles the selection of shapes
18065
18067
  * @param {object} that shape
@@ -18076,12 +18078,12 @@ var selection = _assign(_assign({}, drag), {
18076
18078
  var toggledShape;
18077
18079
  if (config.data_selection_enabled && config.data_selection_isselectable.bind($$.api)(d)) {
18078
18080
  if (!config.data_selection_multiple) {
18079
- var selector = "." + CLASS.shapes;
18081
+ var selector = ".".concat(CLASS.shapes);
18080
18082
  if (config.data_selection_grouped) {
18081
18083
  selector += $$.getTargetSelectorSuffix(d.id);
18082
18084
  }
18083
18085
  main.selectAll(selector)
18084
- .selectAll("." + CLASS.shape)
18086
+ .selectAll(".".concat(CLASS.shape))
18085
18087
  .each(function (d, i) {
18086
18088
  var shape = select(this);
18087
18089
  if (shape.classed(CLASS.SELECTED)) {
@@ -18117,7 +18119,7 @@ var subchart = {
18117
18119
  $$.redrawForBrush();
18118
18120
  };
18119
18121
  var getBrushSize = function () {
18120
- var brush = $$.$el.svg.select("." + CLASS.brush + " .overlay");
18122
+ var brush = $$.$el.svg.select(".".concat(CLASS.brush, " .overlay"));
18121
18123
  var brushSize = { width: 0, height: 0 };
18122
18124
  if (brush.size()) {
18123
18125
  brushSize.width = +brush.attr("width");
@@ -18148,7 +18150,7 @@ var subchart = {
18148
18150
  $$.brush.update = function () {
18149
18151
  var extent = this.extent()();
18150
18152
  if (extent[1].filter(function (v) { return isNaN(v); }).length === 0) {
18151
- subchart.main && subchart.main.select("." + CLASS.brush).call(this);
18153
+ subchart.main && subchart.main.select(".".concat(CLASS.brush)).call(this);
18152
18154
  }
18153
18155
  return this;
18154
18156
  };
@@ -18171,7 +18173,7 @@ var subchart = {
18171
18173
  };
18172
18174
  $$.brush.getSelection = function () { return (
18173
18175
  // @ts-ignore
18174
- subchart.main ? subchart.main.select("." + CLASS.brush) : select([])); };
18176
+ subchart.main ? subchart.main.select(".".concat(CLASS.brush)) : select([])); };
18175
18177
  },
18176
18178
  /**
18177
18179
  * Initialize the subchart.
@@ -18184,7 +18186,7 @@ var subchart = {
18184
18186
  return;
18185
18187
  }
18186
18188
  var visibility = config.subchart_show ? "visible" : "hidden";
18187
- var clipId = clip.id + "-subchart";
18189
+ var clipId = "".concat(clip.id, "-subchart");
18188
18190
  var clipPath = $$.getClipPath(clipId);
18189
18191
  clip.idSubchart = clipId;
18190
18192
  $$.appendClip(defs, clipId);
@@ -18199,11 +18201,11 @@ var subchart = {
18199
18201
  .attr("clip-path", clipPath)
18200
18202
  .attr("class", CLASS.chart);
18201
18203
  // Define g for bar chart area
18202
- $$.hasType("bar") && main.select("." + CLASS.chart)
18204
+ $$.hasType("bar") && main.select(".".concat(CLASS.chart))
18203
18205
  .append("g")
18204
18206
  .attr("class", CLASS.chartBars);
18205
18207
  // Define g for line chart area
18206
- main.select("." + CLASS.chart)
18208
+ main.select(".".concat(CLASS.chart))
18207
18209
  .append("g")
18208
18210
  .attr("class", CLASS.chartLines);
18209
18211
  // Add extent rect for Brush
@@ -18234,8 +18236,8 @@ var subchart = {
18234
18236
  var classAreas = $$.getClass("areas", true);
18235
18237
  if (config.subchart_show) {
18236
18238
  // -- Bar --//
18237
- var barUpdate = main.select("." + CLASS.chartBars)
18238
- .selectAll("." + CLASS.chartBar)
18239
+ var barUpdate = main.select(".".concat(CLASS.chartBars))
18240
+ .selectAll(".".concat(CLASS.chartBar))
18239
18241
  .data(targets)
18240
18242
  .attr("class", classChartBar);
18241
18243
  var barEnter = barUpdate.enter()
@@ -18247,8 +18249,8 @@ var subchart = {
18247
18249
  barEnter.append("g")
18248
18250
  .attr("class", classBars);
18249
18251
  // -- Line --//
18250
- var lineUpdate = main.select("." + CLASS.chartLines)
18251
- .selectAll("." + CLASS.chartLine)
18252
+ var lineUpdate = main.select(".".concat(CLASS.chartLines))
18253
+ .selectAll(".".concat(CLASS.chartLine))
18252
18254
  .data(targets)
18253
18255
  .attr("class", classChartLine);
18254
18256
  var lineEnter = lineUpdate.enter().append("g")
@@ -18262,7 +18264,7 @@ var subchart = {
18262
18264
  $$.hasTypeOf("Area") && lineEnter.append("g")
18263
18265
  .attr("class", classAreas);
18264
18266
  // -- Brush --//
18265
- main.selectAll("." + CLASS.brush + " rect")
18267
+ main.selectAll(".".concat(CLASS.brush, " rect"))
18266
18268
  .attr(config.axis_rotated ? "width" : "height", config.axis_rotated ? state.width2 : state.height2);
18267
18269
  }
18268
18270
  },
@@ -18274,7 +18276,7 @@ var subchart = {
18274
18276
  updateBarForSubchart: function (durationForExit) {
18275
18277
  var $$ = this;
18276
18278
  var subchart = $$.$el.subchart;
18277
- subchart.bar = subchart.main.selectAll("." + CLASS.bars).selectAll("." + CLASS.bar)
18279
+ subchart.bar = subchart.main.selectAll(".".concat(CLASS.bars)).selectAll(".".concat(CLASS.bar))
18278
18280
  .data($$.barData.bind($$));
18279
18281
  subchart.bar
18280
18282
  .exit()
@@ -18312,8 +18314,8 @@ var subchart = {
18312
18314
  updateLineForSubchart: function (durationForExit) {
18313
18315
  var $$ = this;
18314
18316
  var subchart = $$.$el.subchart;
18315
- subchart.line = subchart.main.selectAll("." + CLASS.lines)
18316
- .selectAll("." + CLASS.line)
18317
+ subchart.line = subchart.main.selectAll(".".concat(CLASS.lines))
18318
+ .selectAll(".".concat(CLASS.line))
18317
18319
  .data($$.lineData.bind($$));
18318
18320
  subchart.line
18319
18321
  .exit()
@@ -18350,8 +18352,8 @@ var subchart = {
18350
18352
  updateAreaForSubchart: function (durationForExit) {
18351
18353
  var $$ = this;
18352
18354
  var subchart = $$.$el.subchart;
18353
- subchart.area = subchart.main.selectAll("." + CLASS.areas)
18354
- .selectAll("." + CLASS.area)
18355
+ subchart.area = subchart.main.selectAll(".".concat(CLASS.areas))
18356
+ .selectAll(".".concat(CLASS.area))
18355
18357
  .data($$.lineData.bind($$));
18356
18358
  subchart.area
18357
18359
  .exit()
@@ -18408,9 +18410,9 @@ var subchart = {
18408
18410
  !brushEmpty($$) && $$.brush.update();
18409
18411
  Object.keys(shape.type).forEach(function (v) {
18410
18412
  var name = capitalize(v);
18411
- var draw = $$["generateDraw" + name](shape.indices[v], true);
18412
- $$["update" + name + "ForSubchart"](duration);
18413
- $$["redraw" + name + "ForSubchart"](draw, duration, duration);
18413
+ var draw = $$["generateDraw".concat(name)](shape.indices[v], true);
18414
+ $$["update".concat(name, "ForSubchart")](duration);
18415
+ $$["redraw".concat(name, "ForSubchart")](draw, duration, duration);
18414
18416
  });
18415
18417
  }
18416
18418
  }
@@ -18445,7 +18447,7 @@ var subchart = {
18445
18447
  subXAxis = transitions.axisSubX;
18446
18448
  }
18447
18449
  else {
18448
- subXAxis = main.select("." + CLASS.axisX);
18450
+ subXAxis = main.select(".".concat(CLASS.axisX));
18449
18451
  if (withTransition) {
18450
18452
  subXAxis = subXAxis.transition();
18451
18453
  }
@@ -18500,7 +18502,7 @@ var zoom = {
18500
18502
  var $$ = this;
18501
18503
  var config = $$.config, main = $$.$el.main;
18502
18504
  var zoomEnabled = config.zoom_enabled;
18503
- var eventRects = main.select("." + CLASS.eventRects);
18505
+ var eventRects = main.select(".".concat(CLASS.eventRects));
18504
18506
  if (zoomEnabled && bind) {
18505
18507
  // Do not bind zoom event when subchart is shown
18506
18508
  !config.subchart_show &&
@@ -19090,7 +19092,7 @@ var zoomModule = function () {
19090
19092
  var defaults = {};
19091
19093
  /**
19092
19094
  * @namespace bb
19093
- * @version 2.2.6
19095
+ * @version 2.2.8a
19094
19096
  */
19095
19097
  var bb = {
19096
19098
  /**
@@ -19100,7 +19102,7 @@ var bb = {
19100
19102
  * bb.version; // "1.0.0"
19101
19103
  * @memberof bb
19102
19104
  */
19103
- version: "2.2.6",
19105
+ version: "2.2.8a",
19104
19106
  /**
19105
19107
  * Generate chart
19106
19108
  * - **NOTE:** Bear in mind for the possiblity of ***throwing an error***, during the generation when:
@@ -19228,5 +19230,4 @@ var bb = {
19228
19230
  plugin: {}
19229
19231
  };
19230
19232
 
19231
- export default bb;
19232
- export { area, areaLineRange, areaSpline, areaSplineRange, areaStep, bar, bb, bubble, donut, gauge, line, pie, radar, scatter, selectionModule as selection, spline, step, subchartModule as subchart, zoomModule as zoom };
19233
+ export { area, areaLineRange, areaSpline, areaSplineRange, areaStep, bar, bb, bubble, bb as default, donut, gauge, line, pie, radar, scatter, selectionModule as selection, spline, step, subchartModule as subchart, zoomModule as zoom };