@amcharts/amcharts5 5.0.13 → 5.0.17

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 (231) hide show
  1. package/.internal/charts/hierarchy/Hierarchy.js +1 -1
  2. package/.internal/charts/hierarchy/Hierarchy.js.map +1 -1
  3. package/.internal/charts/hierarchy/HierarchyDefaultTheme.d.ts.map +1 -1
  4. package/.internal/charts/hierarchy/HierarchyDefaultTheme.js +3 -0
  5. package/.internal/charts/hierarchy/HierarchyDefaultTheme.js.map +1 -1
  6. package/.internal/charts/map/MapChart.d.ts +9 -2
  7. package/.internal/charts/map/MapChart.d.ts.map +1 -1
  8. package/.internal/charts/map/MapChart.js +9 -2
  9. package/.internal/charts/map/MapChart.js.map +1 -1
  10. package/.internal/charts/map/MapPointSeries.d.ts.map +1 -1
  11. package/.internal/charts/map/MapPointSeries.js +1 -2
  12. package/.internal/charts/map/MapPointSeries.js.map +1 -1
  13. package/.internal/charts/map/MapUtils.js +2 -2
  14. package/.internal/charts/map/MapUtils.js.map +1 -1
  15. package/.internal/charts/percent/PercentSeries.d.ts.map +1 -1
  16. package/.internal/charts/percent/PercentSeries.js +3 -1
  17. package/.internal/charts/percent/PercentSeries.js.map +1 -1
  18. package/.internal/charts/wordcloud/WordCloud.d.ts.map +1 -1
  19. package/.internal/charts/wordcloud/WordCloud.js +6 -1
  20. package/.internal/charts/wordcloud/WordCloud.js.map +1 -1
  21. package/.internal/charts/xy/XYChart.d.ts.map +1 -1
  22. package/.internal/charts/xy/XYChart.js +6 -2
  23. package/.internal/charts/xy/XYChart.js.map +1 -1
  24. package/.internal/charts/xy/XYCursor.d.ts.map +1 -1
  25. package/.internal/charts/xy/XYCursor.js +4 -1
  26. package/.internal/charts/xy/XYCursor.js.map +1 -1
  27. package/.internal/charts/xy/axes/Axis.d.ts.map +1 -1
  28. package/.internal/charts/xy/axes/Axis.js +3 -0
  29. package/.internal/charts/xy/axes/Axis.js.map +1 -1
  30. package/.internal/charts/xy/axes/ValueAxis.js +4 -4
  31. package/.internal/charts/xy/axes/ValueAxis.js.map +1 -1
  32. package/.internal/charts/xy/series/BaseColumnSeries.d.ts +2 -0
  33. package/.internal/charts/xy/series/BaseColumnSeries.d.ts.map +1 -1
  34. package/.internal/charts/xy/series/BaseColumnSeries.js +36 -4
  35. package/.internal/charts/xy/series/BaseColumnSeries.js.map +1 -1
  36. package/.internal/charts/xy/series/LineSeries.js +2 -2
  37. package/.internal/charts/xy/series/LineSeries.js.map +1 -1
  38. package/.internal/charts/xy/series/XYSeries.d.ts +16 -1
  39. package/.internal/charts/xy/series/XYSeries.d.ts.map +1 -1
  40. package/.internal/charts/xy/series/XYSeries.js +69 -33
  41. package/.internal/charts/xy/series/XYSeries.js.map +1 -1
  42. package/.internal/core/Root.d.ts.map +1 -1
  43. package/.internal/core/Root.js +43 -14
  44. package/.internal/core/Root.js.map +1 -1
  45. package/.internal/core/render/Component.d.ts.map +1 -1
  46. package/.internal/core/render/Component.js +5 -1
  47. package/.internal/core/render/Component.js.map +1 -1
  48. package/.internal/core/render/Container.d.ts.map +1 -1
  49. package/.internal/core/render/Container.js +6 -0
  50. package/.internal/core/render/Container.js.map +1 -1
  51. package/.internal/core/render/Label.d.ts +8 -0
  52. package/.internal/core/render/Label.d.ts.map +1 -1
  53. package/.internal/core/render/Label.js +1 -0
  54. package/.internal/core/render/Label.js.map +1 -1
  55. package/.internal/core/render/Legend.d.ts +7 -1
  56. package/.internal/core/render/Legend.d.ts.map +1 -1
  57. package/.internal/core/render/Legend.js +5 -0
  58. package/.internal/core/render/Legend.js.map +1 -1
  59. package/.internal/core/render/Scrollbar.d.ts.map +1 -1
  60. package/.internal/core/render/Scrollbar.js +12 -2
  61. package/.internal/core/render/Scrollbar.js.map +1 -1
  62. package/.internal/core/render/SerialChart.d.ts.map +1 -1
  63. package/.internal/core/render/SerialChart.js +4 -0
  64. package/.internal/core/render/SerialChart.js.map +1 -1
  65. package/.internal/core/render/Series.d.ts +2 -0
  66. package/.internal/core/render/Series.d.ts.map +1 -1
  67. package/.internal/core/render/Series.js +48 -29
  68. package/.internal/core/render/Series.js.map +1 -1
  69. package/.internal/core/render/Sprite.d.ts +17 -4
  70. package/.internal/core/render/Sprite.d.ts.map +1 -1
  71. package/.internal/core/render/Sprite.js +24 -10
  72. package/.internal/core/render/Sprite.js.map +1 -1
  73. package/.internal/core/render/Text.d.ts +1 -0
  74. package/.internal/core/render/Text.d.ts.map +1 -1
  75. package/.internal/core/render/Text.js +1 -0
  76. package/.internal/core/render/Text.js.map +1 -1
  77. package/.internal/core/render/backend/CanvasRenderer.d.ts +4 -2
  78. package/.internal/core/render/backend/CanvasRenderer.d.ts.map +1 -1
  79. package/.internal/core/render/backend/CanvasRenderer.js +85 -17
  80. package/.internal/core/render/backend/CanvasRenderer.js.map +1 -1
  81. package/.internal/core/render/backend/Renderer.d.ts +2 -0
  82. package/.internal/core/render/backend/Renderer.d.ts.map +1 -1
  83. package/.internal/core/render/backend/Renderer.js.map +1 -1
  84. package/.internal/core/util/Accessibility.d.ts +12 -0
  85. package/.internal/core/util/Accessibility.d.ts.map +1 -1
  86. package/.internal/core/util/Accessibility.js.map +1 -1
  87. package/.internal/core/util/Children.d.ts.map +1 -1
  88. package/.internal/core/util/Children.js +4 -0
  89. package/.internal/core/util/Children.js.map +1 -1
  90. package/.internal/core/util/Disposer.d.ts +9 -0
  91. package/.internal/core/util/Disposer.d.ts.map +1 -1
  92. package/.internal/core/util/Disposer.js +24 -0
  93. package/.internal/core/util/Disposer.js.map +1 -1
  94. package/.internal/core/util/List.d.ts +6 -0
  95. package/.internal/core/util/List.d.ts.map +1 -1
  96. package/.internal/core/util/List.js +26 -3
  97. package/.internal/core/util/List.js.map +1 -1
  98. package/.internal/core/util/TextFormatter.d.ts.map +1 -1
  99. package/.internal/core/util/TextFormatter.js +3 -0
  100. package/.internal/core/util/TextFormatter.js.map +1 -1
  101. package/.internal/plugins/exporting/Annotator.d.ts +3 -1
  102. package/.internal/plugins/exporting/Annotator.d.ts.map +1 -1
  103. package/.internal/plugins/exporting/Annotator.js +46 -16
  104. package/.internal/plugins/exporting/Annotator.js.map +1 -1
  105. package/.internal/plugins/exporting/Exporting.d.ts +29 -0
  106. package/.internal/plugins/exporting/Exporting.d.ts.map +1 -1
  107. package/.internal/plugins/exporting/Exporting.js +15 -0
  108. package/.internal/plugins/exporting/Exporting.js.map +1 -1
  109. package/.internal/plugins/exporting/ExportingMenu.d.ts +2 -0
  110. package/.internal/plugins/exporting/ExportingMenu.d.ts.map +1 -1
  111. package/.internal/plugins/exporting/ExportingMenu.js +35 -14
  112. package/.internal/plugins/exporting/ExportingMenu.js.map +1 -1
  113. package/.internal/themes/DefaultTheme.d.ts.map +1 -1
  114. package/.internal/themes/DefaultTheme.js +2 -0
  115. package/.internal/themes/DefaultTheme.js.map +1 -1
  116. package/CHANGELOG.md +59 -1
  117. package/examples/javascript/flow-chord/package.json +1 -1
  118. package/examples/javascript/flow-chord-directed/package.json +1 -1
  119. package/examples/javascript/flow-chord-non-ribbon/package.json +1 -1
  120. package/examples/javascript/flow-sankey/package.json +1 -1
  121. package/examples/javascript/gauge/package.json +1 -1
  122. package/examples/javascript/gauge-bands/package.json +1 -1
  123. package/examples/javascript/hierarchy-force-directed/package.json +1 -1
  124. package/examples/javascript/hierarchy-pack/package.json +1 -1
  125. package/examples/javascript/hierarchy-partition/package.json +1 -1
  126. package/examples/javascript/hierarchy-sunburst/package.json +1 -1
  127. package/examples/javascript/hierarchy-tree/package.json +1 -1
  128. package/examples/javascript/hierarchy-treemap/package.json +1 -1
  129. package/examples/javascript/map-animating-along-lines/package.json +1 -1
  130. package/examples/javascript/map-day-and-night/package.json +1 -1
  131. package/examples/javascript/map-globe-rotate-to-country/package.json +1 -1
  132. package/examples/javascript/map-globe-with-projected-circles/package.json +1 -1
  133. package/examples/javascript/map-with-bubbles/package.json +1 -1
  134. package/examples/javascript/map-zoom-to-country/package.json +1 -1
  135. package/examples/javascript/misc-40-charts/package.json +1 -1
  136. package/examples/javascript/misc-microchart-grid/package.json +1 -1
  137. package/examples/javascript/pie-chart/package.json +1 -1
  138. package/examples/javascript/pie-donut-chart/package.json +1 -1
  139. package/examples/javascript/pie-variable-radius/package.json +1 -1
  140. package/examples/javascript/radar-column-iwatch-style/package.json +1 -1
  141. package/examples/javascript/radar-heat-map/package.json +1 -1
  142. package/examples/javascript/radar-line/package.json +1 -1
  143. package/examples/javascript/radar-time-line/package.json +1 -1
  144. package/examples/javascript/sliced-funnel/package.json +1 -1
  145. package/examples/javascript/sliced-pictorial-stacked/package.json +1 -1
  146. package/examples/javascript/sliced-pyramid/package.json +1 -1
  147. package/examples/javascript/venn-diagram/package.json +1 -1
  148. package/examples/javascript/wordcloud-with-data/package.json +1 -1
  149. package/examples/javascript/wordcloud-with-text/package.json +1 -1
  150. package/examples/javascript/xy-100-percent-stacked-column/package.json +1 -1
  151. package/examples/javascript/xy-animated-bullet-at-the-end-of-the-series/package.json +1 -1
  152. package/examples/javascript/xy-bubble/package.json +1 -1
  153. package/examples/javascript/xy-candlestick/package.json +1 -1
  154. package/examples/javascript/xy-clustered-column/package.json +1 -1
  155. package/examples/javascript/xy-column/package.json +1 -1
  156. package/examples/javascript/xy-comparing-series-google-analytics-style/package.json +1 -1
  157. package/examples/javascript/xy-data-grouping/package.json +1 -1
  158. package/examples/javascript/xy-draggable-range/package.json +1 -1
  159. package/examples/javascript/xy-drawing-series-with-mouse-or-touch/package.json +1 -1
  160. package/examples/javascript/xy-dumbbell plot/package.json +1 -1
  161. package/examples/javascript/xy-evenly-spaced-date-axis/package.json +1 -1
  162. package/examples/javascript/xy-line/package.json +1 -1
  163. package/examples/javascript/xy-line-highlight-on-legend-hover/package.json +1 -1
  164. package/examples/javascript/xy-live-data/package.json +1 -1
  165. package/examples/javascript/xy-multiple-synced-value-axes/package.json +1 -1
  166. package/examples/javascript/xy-ohlc/package.json +1 -1
  167. package/examples/javascript/xy-real-time-data-sorting/package.json +1 -1
  168. package/examples/javascript/xy-smoothed-line/package.json +1 -1
  169. package/examples/javascript/xy-stacked-and-clustered-column/package.json +1 -1
  170. package/examples/javascript/xy-stacked-column/package.json +1 -1
  171. package/examples/javascript/xy-stacked-step/package.json +1 -1
  172. package/examples/javascript/xy-stock/package.json +1 -1
  173. package/examples/javascript/xy-stock-comparing/package.json +1 -1
  174. package/examples/typescript/flow-chord/package.json +1 -1
  175. package/examples/typescript/flow-chord-directed/package.json +1 -1
  176. package/examples/typescript/flow-chord-non-ribbon/package.json +1 -1
  177. package/examples/typescript/flow-sankey/package.json +1 -1
  178. package/examples/typescript/gauge/package.json +1 -1
  179. package/examples/typescript/gauge-bands/package.json +1 -1
  180. package/examples/typescript/hierarchy-force-directed/package.json +1 -1
  181. package/examples/typescript/hierarchy-pack/package.json +1 -1
  182. package/examples/typescript/hierarchy-partition/package.json +1 -1
  183. package/examples/typescript/hierarchy-sunburst/package.json +1 -1
  184. package/examples/typescript/hierarchy-tree/package.json +1 -1
  185. package/examples/typescript/hierarchy-treemap/package.json +1 -1
  186. package/examples/typescript/map-animating-along-lines/package.json +1 -1
  187. package/examples/typescript/map-day-and-night/package.json +1 -1
  188. package/examples/typescript/map-globe-rotate-to-country/package.json +1 -1
  189. package/examples/typescript/map-globe-with-projected-circles/package.json +1 -1
  190. package/examples/typescript/map-with-bubbles/package.json +1 -1
  191. package/examples/typescript/map-zoom-to-country/package.json +1 -1
  192. package/examples/typescript/misc-40-charts/package.json +1 -1
  193. package/examples/typescript/misc-microchart-grid/package.json +1 -1
  194. package/examples/typescript/pie-chart/package.json +1 -1
  195. package/examples/typescript/pie-donut-chart/package.json +1 -1
  196. package/examples/typescript/pie-variable-radius/package.json +1 -1
  197. package/examples/typescript/radar-column-iwatch-style/package.json +1 -1
  198. package/examples/typescript/radar-heat-map/package.json +1 -1
  199. package/examples/typescript/radar-line/package.json +1 -1
  200. package/examples/typescript/radar-time-line/package.json +1 -1
  201. package/examples/typescript/sliced-funnel/package.json +1 -1
  202. package/examples/typescript/sliced-pictorial-stacked/package.json +1 -1
  203. package/examples/typescript/sliced-pyramid/package.json +1 -1
  204. package/examples/typescript/venn-diagram/package.json +1 -1
  205. package/examples/typescript/wordcloud-with-data/package.json +1 -1
  206. package/examples/typescript/wordcloud-with-text/package.json +1 -1
  207. package/examples/typescript/xy-100-percent-stacked-column/package.json +1 -1
  208. package/examples/typescript/xy-animated-bullet-at-the-end-of-the-series/package.json +1 -1
  209. package/examples/typescript/xy-bubble/package.json +1 -1
  210. package/examples/typescript/xy-candlestick/package.json +1 -1
  211. package/examples/typescript/xy-clustered-column/package.json +1 -1
  212. package/examples/typescript/xy-column/package.json +1 -1
  213. package/examples/typescript/xy-comparing-series-google-analytics-style/package.json +1 -1
  214. package/examples/typescript/xy-data-grouping/package.json +1 -1
  215. package/examples/typescript/xy-draggable-range/package.json +1 -1
  216. package/examples/typescript/xy-drawing-series-with-mouse-or-touch/package.json +1 -1
  217. package/examples/typescript/xy-dumbbell plot/package.json +1 -1
  218. package/examples/typescript/xy-evenly-spaced-date-axis/package.json +1 -1
  219. package/examples/typescript/xy-line/package.json +1 -1
  220. package/examples/typescript/xy-line-highlight-on-legend-hover/package.json +1 -1
  221. package/examples/typescript/xy-live-data/package.json +1 -1
  222. package/examples/typescript/xy-multiple-synced-value-axes/package.json +1 -1
  223. package/examples/typescript/xy-ohlc/package.json +1 -1
  224. package/examples/typescript/xy-real-time-data-sorting/package.json +1 -1
  225. package/examples/typescript/xy-smoothed-line/package.json +1 -1
  226. package/examples/typescript/xy-stacked-and-clustered-column/package.json +1 -1
  227. package/examples/typescript/xy-stacked-column/package.json +1 -1
  228. package/examples/typescript/xy-stacked-step/package.json +1 -1
  229. package/examples/typescript/xy-stock/package.json +1 -1
  230. package/examples/typescript/xy-stock-comparing/package.json +1 -1
  231. package/package.json +3 -2
@@ -285,6 +285,18 @@ var XYSeries = /** @class */ (function (_super) {
285
285
  writable: true,
286
286
  value: void 0
287
287
  });
288
+ Object.defineProperty(_this, "_tooltipFieldX", {
289
+ enumerable: true,
290
+ configurable: true,
291
+ writable: true,
292
+ value: void 0
293
+ });
294
+ Object.defineProperty(_this, "_tooltipFieldY", {
295
+ enumerable: true,
296
+ configurable: true,
297
+ writable: true,
298
+ value: void 0
299
+ });
288
300
  return _this;
289
301
  }
290
302
  Object.defineProperty(XYSeries.prototype, "_afterNew", {
@@ -324,6 +336,9 @@ var XYSeries = /** @class */ (function (_super) {
324
336
  else if (change.type === "removeIndex") {
325
337
  _this._removeAxisRange(change.oldValue);
326
338
  }
339
+ else if (change.type === "moveIndex") {
340
+ _this._processAxisRange(change.value);
341
+ }
327
342
  else {
328
343
  throw new Error("Unknown IStreamEvent type");
329
344
  }
@@ -356,7 +371,6 @@ var XYSeries = /** @class */ (function (_super) {
356
371
  var axis = axisDataItem.component;
357
372
  if (axis) {
358
373
  axis._processAxisRange(axisDataItem, ["range", "series"]);
359
- var axisFill = axisDataItem.get("axisFill");
360
374
  var bullet = axisDataItem.get("bullet");
361
375
  if (bullet) {
362
376
  var sprite = bullet.get("sprite");
@@ -364,8 +378,8 @@ var XYSeries = /** @class */ (function (_super) {
364
378
  sprite.setPrivate("visible", false);
365
379
  }
366
380
  }
381
+ var axisFill = axisDataItem.get("axisFill");
367
382
  if (axisFill) {
368
- this.children.push(axisFill);
369
383
  container.set("mask", axisFill);
370
384
  }
371
385
  axis._seriesAxisRanges.push(axisDataItem);
@@ -377,11 +391,14 @@ var XYSeries = /** @class */ (function (_super) {
377
391
  configurable: true,
378
392
  writable: true,
379
393
  value: function (axisRange) {
394
+ var axisDataItem = axisRange.axisDataItem;
395
+ var axis = axisDataItem.component;
396
+ axis.disposeDataItem(axisDataItem);
397
+ $array.remove(axis._seriesAxisRanges, axisDataItem);
380
398
  var container = axisRange.container;
381
399
  if (container) {
382
400
  container.dispose();
383
401
  }
384
- axisRange.axisDataItem.dispose();
385
402
  }
386
403
  });
387
404
  Object.defineProperty(XYSeries.prototype, "_updateFields", {
@@ -466,6 +483,9 @@ var XYSeries = /** @class */ (function (_super) {
466
483
  configurable: true,
467
484
  writable: true,
468
485
  value: function (dataItem) {
486
+ if (!this.get("xAxis").inited || !this.get("yAxis").inited) {
487
+ return false;
488
+ }
469
489
  if (dataItem.get(this._xField) != null && dataItem.get(this._yField) != null) {
470
490
  return true;
471
491
  }
@@ -566,6 +586,38 @@ var XYSeries = /** @class */ (function (_super) {
566
586
  var xAxis = this.get("xAxis");
567
587
  var yAxis = this.get("yAxis");
568
588
  var baseAxis = this.get("baseAxis");
589
+ var tooltipPositionX = this.get("tooltipPositionX");
590
+ var tooltipFieldX;
591
+ switch (tooltipPositionX) {
592
+ case "open":
593
+ tooltipFieldX = this._xOpenField;
594
+ break;
595
+ case "low":
596
+ tooltipFieldX = this._xLowField;
597
+ break;
598
+ case "high":
599
+ tooltipFieldX = this._xHighField;
600
+ break;
601
+ default:
602
+ tooltipFieldX = this._xField;
603
+ }
604
+ this._tooltipFieldX = tooltipFieldX;
605
+ var tooltipPositionY = this.get("tooltipPositionY");
606
+ var tooltipFieldY;
607
+ switch (tooltipPositionY) {
608
+ case "open":
609
+ tooltipFieldY = this._yOpenField;
610
+ break;
611
+ case "low":
612
+ tooltipFieldY = this._yLowField;
613
+ break;
614
+ case "high":
615
+ tooltipFieldY = this._yHighField;
616
+ break;
617
+ default:
618
+ tooltipFieldY = this._yField;
619
+ }
620
+ this._tooltipFieldY = tooltipFieldY;
569
621
  if (this.isDirty("baseAxis")) {
570
622
  this._fixVC();
571
623
  }
@@ -640,8 +692,8 @@ var XYSeries = /** @class */ (function (_super) {
640
692
  this._dataGrouped = true;
641
693
  }
642
694
  if ((this._valuesDirty || this.isPrivateDirty("startIndex") || this.isPrivateDirty("endIndex") || this.isDirty("vcx") || this.isDirty("vcy") || this._stackDirty)) {
643
- var startIndex = this.getPrivate("startIndex", 0);
644
- var endIndex = this.getPrivate("endIndex", this.dataItems.length);
695
+ var startIndex = this.startIndex();
696
+ var endIndex = this.endIndex();
645
697
  var minBulletDistance = this.get("minBulletDistance", 0);
646
698
  if (minBulletDistance > 0 && baseAxis) {
647
699
  if (baseAxis.get("renderer").axisLength() / (endIndex - startIndex) > minBulletDistance) {
@@ -704,10 +756,11 @@ var XYSeries = /** @class */ (function (_super) {
704
756
  value: function () {
705
757
  var _this = this;
706
758
  if (this.axisRanges.length > 0) {
707
- if (!this._mainContainerMask) {
708
- var mainContainerMask_1 = this.children.push(Graphics.new(this._root, {}));
759
+ var mainContainerMask_1 = this._mainContainerMask;
760
+ if (mainContainerMask_1 == null) {
761
+ mainContainerMask_1 = this.children.push(Graphics.new(this._root, {}));
709
762
  this._mainContainerMask = mainContainerMask_1;
710
- mainContainerMask_1.set("draw", function (display) {
763
+ mainContainerMask_1.set("draw", function (display, target) {
711
764
  var parent = _this.parent;
712
765
  if (parent) {
713
766
  var w = _this._root.container.width();
@@ -723,7 +776,7 @@ var XYSeries = /** @class */ (function (_super) {
723
776
  if (fill) {
724
777
  var draw = fill.get("draw");
725
778
  if (draw) {
726
- draw(mainContainerMask_1._display, mainContainerMask_1);
779
+ draw(display, target);
727
780
  }
728
781
  }
729
782
  }
@@ -732,8 +785,11 @@ var XYSeries = /** @class */ (function (_super) {
732
785
  _this.mainContainer._display.mask = mainContainerMask_1._display;
733
786
  });
734
787
  }
735
- this._mainContainerMask.markDirty();
736
- this._mainContainerMask._markDirtyKey("fill");
788
+ mainContainerMask_1.markDirty();
789
+ mainContainerMask_1._markDirtyKey("fill");
790
+ }
791
+ else {
792
+ this.mainContainer._display.mask = null;
737
793
  }
738
794
  }
739
795
  });
@@ -749,23 +805,6 @@ var XYSeries = /** @class */ (function (_super) {
749
805
  this._makeRangeMask();
750
806
  }
751
807
  });
752
- Object.defineProperty(XYSeries.prototype, "_maskBaseDraw", {
753
- enumerable: false,
754
- configurable: true,
755
- writable: true,
756
- value: function () {
757
- var _this = this;
758
- var mainContainerMask = this._mainContainerMask;
759
- mainContainerMask.set("draw", function (display) {
760
- var parent = _this.parent;
761
- if (parent) {
762
- var w = parent.width();
763
- var h = parent.height();
764
- display.drawRect(0, 0, w, h);
765
- }
766
- });
767
- }
768
- });
769
808
  Object.defineProperty(XYSeries.prototype, "_stack", {
770
809
  enumerable: false,
771
810
  configurable: true,
@@ -1331,8 +1370,8 @@ var XYSeries = /** @class */ (function (_super) {
1331
1370
  var yAxis = this.get("yAxis");
1332
1371
  var vcx = this.get("vcx", 1);
1333
1372
  var vcy = this.get("vcy", 1);
1334
- var xPos = xAxis.getDataItemPositionX(dataItem, this._xField, this._aLocationX0 + (this._aLocationX1 - this._aLocationX0) * itemLocationX, vcx);
1335
- var yPos = yAxis.getDataItemPositionY(dataItem, this._yField, this._aLocationY0 + (this._aLocationY1 - this._aLocationY0) * itemLocationY, vcy);
1373
+ var xPos = xAxis.getDataItemPositionX(dataItem, this._tooltipFieldX, this._aLocationX0 + (this._aLocationX1 - this._aLocationX0) * itemLocationX, vcx);
1374
+ var yPos = yAxis.getDataItemPositionY(dataItem, this._tooltipFieldY, this._aLocationY0 + (this._aLocationY1 - this._aLocationY0) * itemLocationY, vcy);
1336
1375
  var point = this.getPoint(xPos, yPos);
1337
1376
  var show_1 = true;
1338
1377
  $array.each(this._valueFields, function (field) {
@@ -1477,9 +1516,6 @@ var XYSeries = /** @class */ (function (_super) {
1477
1516
  writable: true,
1478
1517
  value: function () {
1479
1518
  _super.prototype._afterDataChange.call(this);
1480
- // this causes unneeded animation on live demo and it shouldn't be needed
1481
- //this.setPrivate("startIndex", 0);
1482
- //this.setPrivate("endIndex", this.dataItems.length);
1483
1519
  this.resetExtremes();
1484
1520
  }
1485
1521
  });