@amcharts/amcharts5 5.2.18 → 5.2.19

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 (161) hide show
  1. package/.internal/charts/map/MapChart.d.ts +8 -0
  2. package/.internal/charts/map/MapChart.d.ts.map +1 -1
  3. package/.internal/charts/map/MapChart.js +15 -0
  4. package/.internal/charts/map/MapChart.js.map +1 -1
  5. package/.internal/charts/stock/drawing/DrawingSeries.d.ts +10 -10
  6. package/.internal/charts/stock/drawing/DrawingSeries.d.ts.map +1 -1
  7. package/.internal/charts/stock/drawing/DrawingSeries.js +1 -1
  8. package/.internal/charts/stock/drawing/DrawingSeries.js.map +1 -1
  9. package/.internal/charts/stock/indicators/StochasticOscillator.d.ts +2 -2
  10. package/.internal/charts/stock/indicators/StochasticOscillator.js.map +1 -1
  11. package/.internal/charts/xy/XYChart.d.ts +17 -3
  12. package/.internal/charts/xy/XYChart.d.ts.map +1 -1
  13. package/.internal/charts/xy/XYChart.js +18 -6
  14. package/.internal/charts/xy/XYChart.js.map +1 -1
  15. package/.internal/charts/xy/axes/Axis.d.ts +1 -2
  16. package/.internal/charts/xy/axes/Axis.d.ts.map +1 -1
  17. package/.internal/charts/xy/axes/Axis.js.map +1 -1
  18. package/.internal/charts/xy/axes/CategoryAxis.d.ts.map +1 -1
  19. package/.internal/charts/xy/axes/CategoryAxis.js +25 -0
  20. package/.internal/charts/xy/axes/CategoryAxis.js.map +1 -1
  21. package/.internal/charts/xy/series/XYSeries.d.ts +2 -2
  22. package/.internal/charts/xy/series/XYSeries.d.ts.map +1 -1
  23. package/.internal/charts/xy/series/XYSeries.js +33 -35
  24. package/.internal/charts/xy/series/XYSeries.js.map +1 -1
  25. package/.internal/core/Root.d.ts.map +1 -1
  26. package/.internal/core/Root.js +3 -2
  27. package/.internal/core/Root.js.map +1 -1
  28. package/CHANGELOG.md +14 -0
  29. package/examples/javascript/flow-chord/package.json +1 -1
  30. package/examples/javascript/flow-chord-directed/package.json +1 -1
  31. package/examples/javascript/flow-chord-non-ribbon/package.json +1 -1
  32. package/examples/javascript/flow-sankey/package.json +1 -1
  33. package/examples/javascript/gauge/package.json +1 -1
  34. package/examples/javascript/gauge-bands/package.json +1 -1
  35. package/examples/javascript/hierarchy-force-directed/package.json +1 -1
  36. package/examples/javascript/hierarchy-pack/package.json +1 -1
  37. package/examples/javascript/hierarchy-partition/package.json +1 -1
  38. package/examples/javascript/hierarchy-sunburst/package.json +1 -1
  39. package/examples/javascript/hierarchy-tree/package.json +1 -1
  40. package/examples/javascript/hierarchy-treemap/package.json +1 -1
  41. package/examples/javascript/jest/package.json +1 -1
  42. package/examples/javascript/json/package.json +1 -1
  43. package/examples/javascript/map-animating-along-lines/package.json +1 -1
  44. package/examples/javascript/map-day-and-night/package.json +1 -1
  45. package/examples/javascript/map-globe-rotate-to-country/package.json +1 -1
  46. package/examples/javascript/map-globe-with-projected-circles/package.json +1 -1
  47. package/examples/javascript/map-with-bubbles/package.json +1 -1
  48. package/examples/javascript/map-zoom-to-country/package.json +1 -1
  49. package/examples/javascript/misc-40-charts/package.json +1 -1
  50. package/examples/javascript/misc-microchart-grid/package.json +1 -1
  51. package/examples/javascript/pie-chart/package.json +1 -1
  52. package/examples/javascript/pie-donut-chart/package.json +1 -1
  53. package/examples/javascript/pie-variable-radius/package.json +1 -1
  54. package/examples/javascript/radar-column-iwatch-style/package.json +1 -1
  55. package/examples/javascript/radar-heat-map/package.json +1 -1
  56. package/examples/javascript/radar-line/package.json +1 -1
  57. package/examples/javascript/radar-time-line/package.json +1 -1
  58. package/examples/javascript/sliced-funnel/package.json +1 -1
  59. package/examples/javascript/sliced-pictorial-stacked/package.json +1 -1
  60. package/examples/javascript/sliced-pyramid/package.json +1 -1
  61. package/examples/javascript/stock-chart/package.json +1 -1
  62. package/examples/javascript/stock-chart-comparing-stocks/package.json +1 -1
  63. package/examples/javascript/stock-chart-data-granularity/package.json +1 -1
  64. package/examples/javascript/stock-chart-data-grouping/package.json +1 -1
  65. package/examples/javascript/stock-chart-intraday/package.json +1 -1
  66. package/examples/javascript/stock-chart-live/package.json +1 -1
  67. package/examples/javascript/stock-chart-volume-separate-panel/package.json +1 -1
  68. package/examples/javascript/venn-diagram/package.json +1 -1
  69. package/examples/javascript/wordcloud-with-data/package.json +1 -1
  70. package/examples/javascript/wordcloud-with-text/package.json +1 -1
  71. package/examples/javascript/xy-100-percent-stacked-column/package.json +1 -1
  72. package/examples/javascript/xy-animated-bullet-at-the-end-of-the-series/package.json +1 -1
  73. package/examples/javascript/xy-bubble/package.json +1 -1
  74. package/examples/javascript/xy-candlestick/package.json +1 -1
  75. package/examples/javascript/xy-clustered-column/package.json +1 -1
  76. package/examples/javascript/xy-column/package.json +1 -1
  77. package/examples/javascript/xy-comparing-series-google-analytics-style/package.json +1 -1
  78. package/examples/javascript/xy-data-grouping/package.json +1 -1
  79. package/examples/javascript/xy-draggable-range/package.json +1 -1
  80. package/examples/javascript/xy-drawing-series-with-mouse-or-touch/package.json +1 -1
  81. package/examples/javascript/xy-dumbbell plot/package.json +1 -1
  82. package/examples/javascript/xy-evenly-spaced-date-axis/package.json +1 -1
  83. package/examples/javascript/xy-line/package.json +1 -1
  84. package/examples/javascript/xy-line-highlight-on-legend-hover/package.json +1 -1
  85. package/examples/javascript/xy-live-data/package.json +1 -1
  86. package/examples/javascript/xy-multiple-synced-value-axes/package.json +1 -1
  87. package/examples/javascript/xy-ohlc/package.json +1 -1
  88. package/examples/javascript/xy-real-time-data-sorting/package.json +1 -1
  89. package/examples/javascript/xy-smoothed-line/package.json +1 -1
  90. package/examples/javascript/xy-stacked-and-clustered-column/package.json +1 -1
  91. package/examples/javascript/xy-stacked-column/package.json +1 -1
  92. package/examples/javascript/xy-stacked-step/package.json +1 -1
  93. package/examples/javascript/xy-stock/package.json +1 -1
  94. package/examples/javascript/xy-stock-comparing/package.json +1 -1
  95. package/examples/typescript/flow-chord/package.json +1 -1
  96. package/examples/typescript/flow-chord-directed/package.json +1 -1
  97. package/examples/typescript/flow-chord-non-ribbon/package.json +1 -1
  98. package/examples/typescript/flow-sankey/package.json +1 -1
  99. package/examples/typescript/gauge/package.json +1 -1
  100. package/examples/typescript/gauge-bands/package.json +1 -1
  101. package/examples/typescript/hierarchy-force-directed/package.json +1 -1
  102. package/examples/typescript/hierarchy-pack/package.json +1 -1
  103. package/examples/typescript/hierarchy-partition/package.json +1 -1
  104. package/examples/typescript/hierarchy-sunburst/package.json +1 -1
  105. package/examples/typescript/hierarchy-tree/package.json +1 -1
  106. package/examples/typescript/hierarchy-treemap/package.json +1 -1
  107. package/examples/typescript/jest/package.json +1 -1
  108. package/examples/typescript/json/package.json +1 -1
  109. package/examples/typescript/map-animating-along-lines/package.json +1 -1
  110. package/examples/typescript/map-day-and-night/package.json +1 -1
  111. package/examples/typescript/map-globe-rotate-to-country/package.json +1 -1
  112. package/examples/typescript/map-globe-with-projected-circles/package.json +1 -1
  113. package/examples/typescript/map-with-bubbles/package.json +1 -1
  114. package/examples/typescript/map-zoom-to-country/package.json +1 -1
  115. package/examples/typescript/misc-40-charts/package.json +1 -1
  116. package/examples/typescript/misc-microchart-grid/package.json +1 -1
  117. package/examples/typescript/pie-chart/package.json +1 -1
  118. package/examples/typescript/pie-donut-chart/package.json +1 -1
  119. package/examples/typescript/pie-variable-radius/package.json +1 -1
  120. package/examples/typescript/radar-column-iwatch-style/package.json +1 -1
  121. package/examples/typescript/radar-heat-map/package.json +1 -1
  122. package/examples/typescript/radar-line/package.json +1 -1
  123. package/examples/typescript/radar-time-line/package.json +1 -1
  124. package/examples/typescript/sliced-funnel/package.json +1 -1
  125. package/examples/typescript/sliced-pictorial-stacked/package.json +1 -1
  126. package/examples/typescript/sliced-pyramid/package.json +1 -1
  127. package/examples/typescript/stock-chart/package.json +1 -1
  128. package/examples/typescript/stock-chart-comparing-stocks/package.json +1 -1
  129. package/examples/typescript/stock-chart-data-granularity/package.json +1 -1
  130. package/examples/typescript/stock-chart-data-grouping/package.json +1 -1
  131. package/examples/typescript/stock-chart-intraday/package.json +1 -1
  132. package/examples/typescript/stock-chart-live/package.json +1 -1
  133. package/examples/typescript/stock-chart-volume-separate-panel/package.json +1 -1
  134. package/examples/typescript/venn-diagram/package.json +1 -1
  135. package/examples/typescript/wordcloud-with-data/package.json +1 -1
  136. package/examples/typescript/wordcloud-with-text/package.json +1 -1
  137. package/examples/typescript/xy-100-percent-stacked-column/package.json +1 -1
  138. package/examples/typescript/xy-animated-bullet-at-the-end-of-the-series/package.json +1 -1
  139. package/examples/typescript/xy-bubble/package.json +1 -1
  140. package/examples/typescript/xy-candlestick/package.json +1 -1
  141. package/examples/typescript/xy-clustered-column/package.json +1 -1
  142. package/examples/typescript/xy-column/package.json +1 -1
  143. package/examples/typescript/xy-comparing-series-google-analytics-style/package.json +1 -1
  144. package/examples/typescript/xy-data-grouping/package.json +1 -1
  145. package/examples/typescript/xy-draggable-range/package.json +1 -1
  146. package/examples/typescript/xy-drawing-series-with-mouse-or-touch/package.json +1 -1
  147. package/examples/typescript/xy-dumbbell plot/package.json +1 -1
  148. package/examples/typescript/xy-evenly-spaced-date-axis/package.json +1 -1
  149. package/examples/typescript/xy-line/package.json +1 -1
  150. package/examples/typescript/xy-line-highlight-on-legend-hover/package.json +1 -1
  151. package/examples/typescript/xy-live-data/package.json +1 -1
  152. package/examples/typescript/xy-multiple-synced-value-axes/package.json +1 -1
  153. package/examples/typescript/xy-ohlc/package.json +1 -1
  154. package/examples/typescript/xy-real-time-data-sorting/package.json +1 -1
  155. package/examples/typescript/xy-smoothed-line/package.json +1 -1
  156. package/examples/typescript/xy-stacked-and-clustered-column/package.json +1 -1
  157. package/examples/typescript/xy-stacked-column/package.json +1 -1
  158. package/examples/typescript/xy-stacked-step/package.json +1 -1
  159. package/examples/typescript/xy-stock/package.json +1 -1
  160. package/examples/typescript/xy-stock-comparing/package.json +1 -1
  161. package/package.json +1 -1
@@ -1410,49 +1410,47 @@ var XYSeries = /** @class */ (function (_super) {
1410
1410
  value: function (dataItem) {
1411
1411
  this.updateLegendMarker(dataItem);
1412
1412
  this.updateLegendValue(dataItem);
1413
- if (this.get("tooltip")) {
1413
+ var tooltip = this.get("tooltip");
1414
+ if (tooltip) {
1414
1415
  if (!this.isHidden()) {
1415
- var tooltip = this.get("tooltip");
1416
- if (tooltip) {
1417
- tooltip._setDataItem(dataItem);
1418
- if (dataItem) {
1419
- var locationX = this.get("locationX", 0);
1420
- var locationY = this.get("locationY", 1);
1421
- var itemLocationX = dataItem.get("locationX", locationX);
1422
- var itemLocationY = dataItem.get("locationY", locationY);
1423
- var xAxis = this.get("xAxis");
1424
- var yAxis = this.get("yAxis");
1425
- var vcx = this.get("vcx", 1);
1426
- var vcy = this.get("vcy", 1);
1427
- var xPos = xAxis.getDataItemPositionX(dataItem, this._tooltipFieldX, this._aLocationX0 + (this._aLocationX1 - this._aLocationX0) * itemLocationX, vcx);
1428
- var yPos = yAxis.getDataItemPositionY(dataItem, this._tooltipFieldY, this._aLocationY0 + (this._aLocationY1 - this._aLocationY0) * itemLocationY, vcy);
1429
- var point = this.getPoint(xPos, yPos);
1430
- var show_1 = true;
1431
- $array.each(this._valueFields, function (field) {
1432
- if (dataItem.get(field) == null) {
1433
- show_1 = false;
1434
- }
1435
- });
1436
- if (show_1) {
1437
- var chart = this.chart;
1438
- if (chart && chart.inPlot(point)) {
1439
- tooltip.label.text.markDirtyText();
1440
- tooltip.set("tooltipTarget", this._getTooltipTarget(dataItem));
1441
- tooltip.set("pointTo", this._display.toGlobal({ x: point.x, y: point.y }));
1442
- }
1443
- else {
1444
- tooltip._setDataItem(undefined);
1445
- }
1416
+ tooltip._setDataItem(dataItem);
1417
+ if (dataItem) {
1418
+ var locationX = this.get("locationX", 0);
1419
+ var locationY = this.get("locationY", 1);
1420
+ var itemLocationX = dataItem.get("locationX", locationX);
1421
+ var itemLocationY = dataItem.get("locationY", locationY);
1422
+ var xAxis = this.get("xAxis");
1423
+ var yAxis = this.get("yAxis");
1424
+ var vcx = this.get("vcx", 1);
1425
+ var vcy = this.get("vcy", 1);
1426
+ var xPos = xAxis.getDataItemPositionX(dataItem, this._tooltipFieldX, this._aLocationX0 + (this._aLocationX1 - this._aLocationX0) * itemLocationX, vcx);
1427
+ var yPos = yAxis.getDataItemPositionY(dataItem, this._tooltipFieldY, this._aLocationY0 + (this._aLocationY1 - this._aLocationY0) * itemLocationY, vcy);
1428
+ var point = this.getPoint(xPos, yPos);
1429
+ var show_1 = true;
1430
+ $array.each(this._valueFields, function (field) {
1431
+ if (dataItem.get(field) == null) {
1432
+ show_1 = false;
1433
+ }
1434
+ });
1435
+ if (show_1) {
1436
+ var chart = this.chart;
1437
+ if (chart && chart.inPlot(point)) {
1438
+ tooltip.label.text.markDirtyText();
1439
+ tooltip.set("tooltipTarget", this._getTooltipTarget(dataItem));
1440
+ tooltip.set("pointTo", this._display.toGlobal({ x: point.x, y: point.y }));
1446
1441
  }
1447
1442
  else {
1448
1443
  tooltip._setDataItem(undefined);
1449
1444
  }
1450
1445
  }
1446
+ else {
1447
+ tooltip._setDataItem(undefined);
1448
+ }
1451
1449
  }
1452
1450
  }
1453
- else {
1454
- this.hideTooltip();
1455
- }
1451
+ }
1452
+ else {
1453
+ this.hideTooltip();
1456
1454
  }
1457
1455
  }
1458
1456
  });