@amcharts/amcharts5 5.1.10 → 5.1.11

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 (236) hide show
  1. package/.internal/charts/hierarchy/ForceDirected.d.ts +1 -0
  2. package/.internal/charts/hierarchy/ForceDirected.d.ts.map +1 -1
  3. package/.internal/charts/hierarchy/ForceDirected.js +9 -0
  4. package/.internal/charts/hierarchy/ForceDirected.js.map +1 -1
  5. package/.internal/charts/hierarchy/LinkedHierarchy.d.ts +1 -0
  6. package/.internal/charts/hierarchy/LinkedHierarchy.d.ts.map +1 -1
  7. package/.internal/charts/hierarchy/LinkedHierarchy.js +12 -3
  8. package/.internal/charts/hierarchy/LinkedHierarchy.js.map +1 -1
  9. package/.internal/charts/xy/XYChart.d.ts +8 -1
  10. package/.internal/charts/xy/XYChart.d.ts.map +1 -1
  11. package/.internal/charts/xy/XYChart.js +15 -3
  12. package/.internal/charts/xy/XYChart.js.map +1 -1
  13. package/.internal/charts/xy/axes/Axis.d.ts.map +1 -1
  14. package/.internal/charts/xy/axes/Axis.js +1 -0
  15. package/.internal/charts/xy/axes/Axis.js.map +1 -1
  16. package/.internal/charts/xy/axes/DateAxis.d.ts.map +1 -1
  17. package/.internal/charts/xy/axes/DateAxis.js +46 -4
  18. package/.internal/charts/xy/axes/DateAxis.js.map +1 -1
  19. package/.internal/charts/xy/axes/ValueAxis.d.ts +12 -0
  20. package/.internal/charts/xy/axes/ValueAxis.d.ts.map +1 -1
  21. package/.internal/charts/xy/axes/ValueAxis.js +16 -4
  22. package/.internal/charts/xy/axes/ValueAxis.js.map +1 -1
  23. package/.internal/charts/xy/series/XYSeries.d.ts +11 -0
  24. package/.internal/charts/xy/series/XYSeries.d.ts.map +1 -1
  25. package/.internal/charts/xy/series/XYSeries.js +40 -13
  26. package/.internal/charts/xy/series/XYSeries.js.map +1 -1
  27. package/.internal/core/Root.d.ts +1 -0
  28. package/.internal/core/Root.d.ts.map +1 -1
  29. package/.internal/core/Root.js +10 -2
  30. package/.internal/core/Root.js.map +1 -1
  31. package/.internal/core/render/GridLayout.d.ts.map +1 -1
  32. package/.internal/core/render/GridLayout.js +11 -9
  33. package/.internal/core/render/GridLayout.js.map +1 -1
  34. package/.internal/core/render/HorizontalLayout.d.ts.map +1 -1
  35. package/.internal/core/render/HorizontalLayout.js +40 -34
  36. package/.internal/core/render/HorizontalLayout.js.map +1 -1
  37. package/.internal/core/render/Scrollbar.d.ts.map +1 -1
  38. package/.internal/core/render/Scrollbar.js +3 -0
  39. package/.internal/core/render/Scrollbar.js.map +1 -1
  40. package/.internal/core/render/Series.d.ts +5 -0
  41. package/.internal/core/render/Series.d.ts.map +1 -1
  42. package/.internal/core/render/Series.js +29 -3
  43. package/.internal/core/render/Series.js.map +1 -1
  44. package/.internal/core/render/Sprite.d.ts +4 -0
  45. package/.internal/core/render/Sprite.d.ts.map +1 -1
  46. package/.internal/core/render/Sprite.js +14 -0
  47. package/.internal/core/render/Sprite.js.map +1 -1
  48. package/.internal/core/render/VerticalLayout.d.ts.map +1 -1
  49. package/.internal/core/render/VerticalLayout.js +40 -34
  50. package/.internal/core/render/VerticalLayout.js.map +1 -1
  51. package/.internal/plugins/exporting/ExportingMenu.d.ts.map +1 -1
  52. package/.internal/plugins/exporting/ExportingMenu.js +3 -2
  53. package/.internal/plugins/exporting/ExportingMenu.js.map +1 -1
  54. package/.internal/plugins/json/Classes.js +131 -131
  55. package/.internal/plugins/json/Classes.js.map +1 -1
  56. package/.internal/plugins/json/Json.d.ts.map +1 -1
  57. package/.internal/plugins/json/Json.js +67 -29
  58. package/.internal/plugins/json/Json.js.map +1 -1
  59. package/CHANGELOG.md +20 -0
  60. package/examples/javascript/flow-chord/package.json +1 -1
  61. package/examples/javascript/flow-chord-directed/package.json +1 -1
  62. package/examples/javascript/flow-chord-non-ribbon/package.json +1 -1
  63. package/examples/javascript/flow-sankey/package.json +1 -1
  64. package/examples/javascript/gauge/package.json +1 -1
  65. package/examples/javascript/gauge-bands/package.json +1 -1
  66. package/examples/javascript/hierarchy-force-directed/package.json +1 -1
  67. package/examples/javascript/hierarchy-pack/package.json +1 -1
  68. package/examples/javascript/hierarchy-partition/package.json +1 -1
  69. package/examples/javascript/hierarchy-sunburst/package.json +1 -1
  70. package/examples/javascript/hierarchy-tree/package.json +1 -1
  71. package/examples/javascript/hierarchy-treemap/package.json +1 -1
  72. package/examples/javascript/json/index.js +192 -80
  73. package/examples/javascript/json/package.json +1 -1
  74. package/examples/javascript/map-animating-along-lines/package.json +1 -1
  75. package/examples/javascript/map-day-and-night/package.json +1 -1
  76. package/examples/javascript/map-globe-rotate-to-country/package.json +1 -1
  77. package/examples/javascript/map-globe-with-projected-circles/package.json +1 -1
  78. package/examples/javascript/map-with-bubbles/package.json +1 -1
  79. package/examples/javascript/map-zoom-to-country/package.json +1 -1
  80. package/examples/javascript/misc-40-charts/package.json +1 -1
  81. package/examples/javascript/misc-microchart-grid/package.json +1 -1
  82. package/examples/javascript/pie-chart/package.json +1 -1
  83. package/examples/javascript/pie-donut-chart/package.json +1 -1
  84. package/examples/javascript/pie-variable-radius/package.json +1 -1
  85. package/examples/javascript/radar-column-iwatch-style/package.json +1 -1
  86. package/examples/javascript/radar-heat-map/package.json +1 -1
  87. package/examples/javascript/radar-line/package.json +1 -1
  88. package/examples/javascript/radar-time-line/package.json +1 -1
  89. package/examples/javascript/sliced-funnel/package.json +1 -1
  90. package/examples/javascript/sliced-pictorial-stacked/package.json +1 -1
  91. package/examples/javascript/sliced-pyramid/package.json +1 -1
  92. package/examples/javascript/venn-diagram/package.json +1 -1
  93. package/examples/javascript/wordcloud-with-data/package.json +1 -1
  94. package/examples/javascript/wordcloud-with-text/package.json +1 -1
  95. package/examples/javascript/xy-100-percent-stacked-column/package.json +1 -1
  96. package/examples/javascript/xy-animated-bullet-at-the-end-of-the-series/package.json +1 -1
  97. package/examples/javascript/xy-bubble/package.json +1 -1
  98. package/examples/javascript/xy-candlestick/package.json +1 -1
  99. package/examples/javascript/xy-clustered-column/package.json +1 -1
  100. package/examples/javascript/xy-column/package.json +1 -1
  101. package/examples/javascript/xy-comparing-series-google-analytics-style/package.json +1 -1
  102. package/examples/javascript/xy-data-grouping/package.json +1 -1
  103. package/examples/javascript/xy-draggable-range/package.json +1 -1
  104. package/examples/javascript/xy-drawing-series-with-mouse-or-touch/package.json +1 -1
  105. package/examples/javascript/xy-dumbbell plot/package.json +1 -1
  106. package/examples/javascript/xy-evenly-spaced-date-axis/package.json +1 -1
  107. package/examples/javascript/xy-line/package.json +1 -1
  108. package/examples/javascript/xy-line-highlight-on-legend-hover/package.json +1 -1
  109. package/examples/javascript/xy-live-data/package.json +1 -1
  110. package/examples/javascript/xy-multiple-synced-value-axes/package.json +1 -1
  111. package/examples/javascript/xy-ohlc/package.json +1 -1
  112. package/examples/javascript/xy-real-time-data-sorting/package.json +1 -1
  113. package/examples/javascript/xy-smoothed-line/package.json +1 -1
  114. package/examples/javascript/xy-stacked-and-clustered-column/package.json +1 -1
  115. package/examples/javascript/xy-stacked-column/package.json +1 -1
  116. package/examples/javascript/xy-stacked-step/package.json +1 -1
  117. package/examples/javascript/xy-stock/package.json +1 -1
  118. package/examples/javascript/xy-stock-comparing/package.json +1 -1
  119. package/examples/typescript/flow-chord/package.json +1 -1
  120. package/examples/typescript/flow-chord/webpack.config.js +1 -1
  121. package/examples/typescript/flow-chord-directed/package.json +1 -1
  122. package/examples/typescript/flow-chord-directed/webpack.config.js +1 -1
  123. package/examples/typescript/flow-chord-non-ribbon/package.json +1 -1
  124. package/examples/typescript/flow-chord-non-ribbon/webpack.config.js +1 -1
  125. package/examples/typescript/flow-sankey/package.json +1 -1
  126. package/examples/typescript/flow-sankey/webpack.config.js +1 -1
  127. package/examples/typescript/gauge/package.json +1 -1
  128. package/examples/typescript/gauge/webpack.config.js +1 -1
  129. package/examples/typescript/gauge-bands/package.json +1 -1
  130. package/examples/typescript/gauge-bands/webpack.config.js +1 -1
  131. package/examples/typescript/hierarchy-force-directed/package.json +1 -1
  132. package/examples/typescript/hierarchy-force-directed/webpack.config.js +1 -1
  133. package/examples/typescript/hierarchy-pack/package.json +1 -1
  134. package/examples/typescript/hierarchy-pack/webpack.config.js +1 -1
  135. package/examples/typescript/hierarchy-partition/package.json +1 -1
  136. package/examples/typescript/hierarchy-partition/webpack.config.js +1 -1
  137. package/examples/typescript/hierarchy-sunburst/package.json +1 -1
  138. package/examples/typescript/hierarchy-sunburst/webpack.config.js +1 -1
  139. package/examples/typescript/hierarchy-tree/package.json +1 -1
  140. package/examples/typescript/hierarchy-tree/webpack.config.js +1 -1
  141. package/examples/typescript/hierarchy-treemap/package.json +1 -1
  142. package/examples/typescript/hierarchy-treemap/webpack.config.js +1 -1
  143. package/examples/typescript/json/index.ts +191 -79
  144. package/examples/typescript/json/package.json +1 -1
  145. package/examples/typescript/json/webpack.config.js +1 -1
  146. package/examples/typescript/map-animating-along-lines/package.json +1 -1
  147. package/examples/typescript/map-animating-along-lines/webpack.config.js +1 -1
  148. package/examples/typescript/map-day-and-night/package.json +1 -1
  149. package/examples/typescript/map-day-and-night/webpack.config.js +1 -1
  150. package/examples/typescript/map-globe-rotate-to-country/package.json +1 -1
  151. package/examples/typescript/map-globe-rotate-to-country/webpack.config.js +1 -1
  152. package/examples/typescript/map-globe-with-projected-circles/package.json +1 -1
  153. package/examples/typescript/map-globe-with-projected-circles/webpack.config.js +1 -1
  154. package/examples/typescript/map-with-bubbles/package.json +1 -1
  155. package/examples/typescript/map-with-bubbles/webpack.config.js +1 -1
  156. package/examples/typescript/map-zoom-to-country/package.json +1 -1
  157. package/examples/typescript/map-zoom-to-country/webpack.config.js +1 -1
  158. package/examples/typescript/misc-40-charts/package.json +1 -1
  159. package/examples/typescript/misc-40-charts/webpack.config.js +1 -1
  160. package/examples/typescript/misc-microchart-grid/package.json +1 -1
  161. package/examples/typescript/misc-microchart-grid/webpack.config.js +1 -1
  162. package/examples/typescript/pie-chart/package.json +1 -1
  163. package/examples/typescript/pie-chart/webpack.config.js +1 -1
  164. package/examples/typescript/pie-donut-chart/package.json +1 -1
  165. package/examples/typescript/pie-donut-chart/webpack.config.js +1 -1
  166. package/examples/typescript/pie-variable-radius/package.json +1 -1
  167. package/examples/typescript/pie-variable-radius/webpack.config.js +1 -1
  168. package/examples/typescript/radar-column-iwatch-style/package.json +1 -1
  169. package/examples/typescript/radar-column-iwatch-style/webpack.config.js +1 -1
  170. package/examples/typescript/radar-heat-map/package.json +1 -1
  171. package/examples/typescript/radar-heat-map/webpack.config.js +1 -1
  172. package/examples/typescript/radar-line/package.json +1 -1
  173. package/examples/typescript/radar-line/webpack.config.js +1 -1
  174. package/examples/typescript/radar-time-line/package.json +1 -1
  175. package/examples/typescript/radar-time-line/webpack.config.js +1 -1
  176. package/examples/typescript/sliced-funnel/package.json +1 -1
  177. package/examples/typescript/sliced-funnel/webpack.config.js +1 -1
  178. package/examples/typescript/sliced-pictorial-stacked/package.json +1 -1
  179. package/examples/typescript/sliced-pictorial-stacked/webpack.config.js +1 -1
  180. package/examples/typescript/sliced-pyramid/package.json +1 -1
  181. package/examples/typescript/sliced-pyramid/webpack.config.js +1 -1
  182. package/examples/typescript/venn-diagram/package.json +1 -1
  183. package/examples/typescript/venn-diagram/webpack.config.js +1 -1
  184. package/examples/typescript/wordcloud-with-data/package.json +1 -1
  185. package/examples/typescript/wordcloud-with-data/webpack.config.js +1 -1
  186. package/examples/typescript/wordcloud-with-text/package.json +1 -1
  187. package/examples/typescript/wordcloud-with-text/webpack.config.js +1 -1
  188. package/examples/typescript/xy-100-percent-stacked-column/package.json +1 -1
  189. package/examples/typescript/xy-100-percent-stacked-column/webpack.config.js +1 -1
  190. package/examples/typescript/xy-animated-bullet-at-the-end-of-the-series/package.json +1 -1
  191. package/examples/typescript/xy-animated-bullet-at-the-end-of-the-series/webpack.config.js +1 -1
  192. package/examples/typescript/xy-bubble/package.json +1 -1
  193. package/examples/typescript/xy-bubble/webpack.config.js +1 -1
  194. package/examples/typescript/xy-candlestick/package.json +1 -1
  195. package/examples/typescript/xy-candlestick/webpack.config.js +1 -1
  196. package/examples/typescript/xy-clustered-column/package.json +1 -1
  197. package/examples/typescript/xy-clustered-column/webpack.config.js +1 -1
  198. package/examples/typescript/xy-column/package.json +1 -1
  199. package/examples/typescript/xy-column/webpack.config.js +1 -1
  200. package/examples/typescript/xy-comparing-series-google-analytics-style/package.json +1 -1
  201. package/examples/typescript/xy-comparing-series-google-analytics-style/webpack.config.js +1 -1
  202. package/examples/typescript/xy-data-grouping/package.json +1 -1
  203. package/examples/typescript/xy-data-grouping/webpack.config.js +1 -1
  204. package/examples/typescript/xy-draggable-range/package.json +1 -1
  205. package/examples/typescript/xy-draggable-range/webpack.config.js +1 -1
  206. package/examples/typescript/xy-drawing-series-with-mouse-or-touch/package.json +1 -1
  207. package/examples/typescript/xy-drawing-series-with-mouse-or-touch/webpack.config.js +1 -1
  208. package/examples/typescript/xy-dumbbell plot/package.json +1 -1
  209. package/examples/typescript/xy-dumbbell plot/webpack.config.js +1 -1
  210. package/examples/typescript/xy-evenly-spaced-date-axis/package.json +1 -1
  211. package/examples/typescript/xy-evenly-spaced-date-axis/webpack.config.js +1 -1
  212. package/examples/typescript/xy-line/package.json +1 -1
  213. package/examples/typescript/xy-line/webpack.config.js +1 -1
  214. package/examples/typescript/xy-line-highlight-on-legend-hover/package.json +1 -1
  215. package/examples/typescript/xy-line-highlight-on-legend-hover/webpack.config.js +1 -1
  216. package/examples/typescript/xy-live-data/package.json +1 -1
  217. package/examples/typescript/xy-live-data/webpack.config.js +1 -1
  218. package/examples/typescript/xy-multiple-synced-value-axes/package.json +1 -1
  219. package/examples/typescript/xy-multiple-synced-value-axes/webpack.config.js +1 -1
  220. package/examples/typescript/xy-ohlc/package.json +1 -1
  221. package/examples/typescript/xy-ohlc/webpack.config.js +1 -1
  222. package/examples/typescript/xy-real-time-data-sorting/package.json +1 -1
  223. package/examples/typescript/xy-real-time-data-sorting/webpack.config.js +1 -1
  224. package/examples/typescript/xy-smoothed-line/package.json +1 -1
  225. package/examples/typescript/xy-smoothed-line/webpack.config.js +1 -1
  226. package/examples/typescript/xy-stacked-and-clustered-column/package.json +1 -1
  227. package/examples/typescript/xy-stacked-and-clustered-column/webpack.config.js +1 -1
  228. package/examples/typescript/xy-stacked-column/package.json +1 -1
  229. package/examples/typescript/xy-stacked-column/webpack.config.js +1 -1
  230. package/examples/typescript/xy-stacked-step/package.json +1 -1
  231. package/examples/typescript/xy-stacked-step/webpack.config.js +1 -1
  232. package/examples/typescript/xy-stock/package.json +1 -1
  233. package/examples/typescript/xy-stock/webpack.config.js +1 -1
  234. package/examples/typescript/xy-stock-comparing/package.json +1 -1
  235. package/examples/typescript/xy-stock-comparing/webpack.config.js +1 -1
  236. package/package.json +1 -1
@@ -596,10 +596,12 @@ var XYSeries = /** @class */ (function (_super) {
596
596
  value: function () {
597
597
  var _this = this;
598
598
  _super.prototype._prepareChildren.call(this);
599
- if (this.isDirty("valueYShow") || this.isDirty("valueYShow" || this.isDirty("openValueYShow") || this.isDirty("openValueXShow") || this.isDirty("lowValueYShow") || this.isDirty("lowValueXShow") || this.isDirty("highValueYShow") || this.isDirty("highValueXShow"))) {
599
+ if (this.isDirty("valueYShow") || this.isDirty("valueXShow" || this.isDirty("openValueYShow") || this.isDirty("openValueXShow") || this.isDirty("lowValueYShow") || this.isDirty("lowValueXShow") || this.isDirty("highValueYShow") || this.isDirty("highValueXShow"))) {
600
600
  this._updateFields();
601
601
  this._makeFieldNames();
602
- this.resetExtremes();
602
+ if (this._prevSettings.valueXShow != undefined || this._prevSettings.valueYShow != undefined) {
603
+ this.resetExtremes();
604
+ }
603
605
  this._valuesDirty = true;
604
606
  }
605
607
  this.set("width", this.get("xAxis").width());
@@ -715,7 +717,7 @@ var XYSeries = /** @class */ (function (_super) {
715
717
  yAxis._groupSeriesData(this);
716
718
  this._dataGrouped = true;
717
719
  }
718
- if ((this._valuesDirty || this.isPrivateDirty("startIndex") || this.isPrivateDirty("endIndex") || this.isDirty("vcx") || this.isDirty("vcy") || this._stackDirty)) {
720
+ if (this._valuesDirty || this.isPrivateDirty("startIndex") || this.isPrivateDirty("endIndex") || this.isDirty("vcx") || this.isDirty("vcy") || this._stackDirty) {
719
721
  var startIndex = this.startIndex();
720
722
  var endIndex = this.endIndex();
721
723
  var minBulletDistance = this.get("minBulletDistance", 0);
@@ -732,34 +734,59 @@ var XYSeries = /** @class */ (function (_super) {
732
734
  var vcx = this.get("vcx", 1);
733
735
  var vcy = this.get("vcy", 1);
734
736
  var stacked_1 = this.get("stacked", false);
737
+ var outOfSelection = this.getPrivate("outOfSelection");
735
738
  if (baseAxis === xAxis) {
736
739
  yAxis._calculateTotals();
737
740
  this.setPrivateRaw("selectionMinY", undefined);
738
741
  this.setPrivateRaw("selectionMaxY", undefined);
739
- for (var i = startIndex; i < endIndex; i++) {
740
- this.processYSelectionDataItem(this.dataItems[i], vcy, stacked_1);
742
+ if (!outOfSelection) {
743
+ for (var i = startIndex; i < endIndex; i++) {
744
+ this.processYSelectionDataItem(this.dataItems[i], vcy, stacked_1);
745
+ }
746
+ }
747
+ else {
748
+ yAxis.markDirtySelectionExtremes();
741
749
  }
742
750
  }
743
751
  else if (baseAxis === yAxis) {
744
752
  xAxis._calculateTotals();
745
753
  this.setPrivateRaw("selectionMinX", undefined);
746
754
  this.setPrivateRaw("selectionMaxX", undefined);
747
- for (var i = startIndex; i < endIndex; i++) {
748
- this.processXSelectionDataItem(this.dataItems[i], vcx, stacked_1);
755
+ if (!outOfSelection) {
756
+ for (var i = startIndex; i < endIndex; i++) {
757
+ this.processXSelectionDataItem(this.dataItems[i], vcx, stacked_1);
758
+ }
759
+ }
760
+ else {
761
+ yAxis.markDirtySelectionExtremes();
749
762
  }
750
763
  }
751
764
  if (baseAxis === xAxis) {
752
765
  if (this.get("valueYShow") !== "valueYWorking") {
753
- this.setPrivateRaw("minY", this.getPrivate("selectionMinY"));
754
- this.setPrivateRaw("maxY", this.getPrivate("selectionMaxY"));
755
- yAxis.markDirtyExtremes();
766
+ var selectionMinY = this.getPrivate("selectionMinY");
767
+ if (selectionMinY != null) {
768
+ this.setPrivateRaw("minY", selectionMinY);
769
+ yAxis.markDirtyExtremes();
770
+ }
771
+ var selectionMaxY = this.getPrivate("selectionMaxY");
772
+ if (selectionMaxY != null) {
773
+ this.setPrivateRaw("maxY", selectionMaxY);
774
+ yAxis.markDirtyExtremes();
775
+ }
756
776
  }
757
777
  }
758
778
  else if (baseAxis === yAxis) {
759
779
  if (this.get("valueXShow") !== "valueXWorking") {
760
- this.setPrivateRaw("minX", this.getPrivate("selectionMinX"));
761
- this.setPrivateRaw("maxX", this.getPrivate("selectionMaxX"));
762
- xAxis.markDirtyExtremes();
780
+ var selectionMinX = this.getPrivate("selectionMinX");
781
+ if (selectionMinX != null) {
782
+ this.setPrivateRaw("minX", selectionMinX);
783
+ yAxis.markDirtyExtremes();
784
+ }
785
+ var selectionMaxX = this.getPrivate("selectionMaxX");
786
+ if (selectionMaxX != null) {
787
+ this.setPrivateRaw("maxX", selectionMaxX);
788
+ xAxis.markDirtyExtremes();
789
+ }
763
790
  }
764
791
  }
765
792
  if (this.isPrivateDirty("selectionMinX") || this.isPrivateDirty("selectionMaxX")) {