@splunk/visualizations 24.0.0 → 24.1.0

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 (113) hide show
  1. package/.loki/reference/chrome_docker_PureVisualizations_PureLinkGraph_Background_Color.png +0 -0
  2. package/.loki/reference/chrome_docker_PureVisualizations_PureLinkGraph_Field_Order.png +0 -0
  3. package/.loki/reference/chrome_docker_PureVisualizations_PureLinkGraph_Field_Order_First_And_Last.png +0 -0
  4. package/.loki/reference/chrome_docker_PureVisualizations_PureLinkGraph_Field_Order_Some.png +0 -0
  5. package/.loki/reference/chrome_docker_PureVisualizations_PureLinkGraph_Fields_Columns.png +0 -0
  6. package/.loki/reference/chrome_docker_PureVisualizations_PureLinkGraph_Handles_Large_Data_Set.png +0 -0
  7. package/.loki/reference/chrome_docker_PureVisualizations_PureLinkGraph_Link_Color.png +0 -0
  8. package/.loki/reference/chrome_docker_PureVisualizations_PureLinkGraph_Link_Width.png +0 -0
  9. package/.loki/reference/chrome_docker_PureVisualizations_PureLinkGraph_Node_Color.png +0 -0
  10. package/.loki/reference/chrome_docker_PureVisualizations_PureLinkGraph_Node_Height.png +0 -0
  11. package/.loki/reference/chrome_docker_PureVisualizations_PureLinkGraph_Node_Highlight_Color.png +0 -0
  12. package/.loki/reference/chrome_docker_PureVisualizations_PureLinkGraph_Node_Spacing_X.png +0 -0
  13. package/.loki/reference/chrome_docker_PureVisualizations_PureLinkGraph_Node_Spacing_Y.png +0 -0
  14. package/.loki/reference/chrome_docker_PureVisualizations_PureLinkGraph_Node_Width.png +0 -0
  15. package/.loki/reference/chrome_docker_PureVisualizations_PureLinkGraph_Result_Limit.png +0 -0
  16. package/.loki/reference/chrome_docker_PureVisualizations_PureLinkGraph_Show_Node_Counts_False.png +0 -0
  17. package/.loki/reference/chrome_docker_PureVisualizations_PureLinkGraph_Show_Value_Counts_False.png +0 -0
  18. package/.loki/reference/chrome_docker_PureVisualizations_PureLinkGraph_Width_Height.png +0 -0
  19. package/.loki/reference/chrome_docker_Visualizations_Line_Line_Basic_Line_with_offset_IANA_timezone.png +0 -0
  20. package/.loki/reference/chrome_docker_Visualizations_Line_Line_Basic_Line_with_offset_serialized_timezone.png +0 -0
  21. package/.loki/reference/chrome_docker_Visualizations_Line_Line_Basic_Line_with_offset_utc_timezone.png +0 -0
  22. package/.loki/reference/chrome_docker_Visualizations_LinkGraph_LinkGraph_Basic_LinkGraph.png +0 -0
  23. package/.loki/reference/chrome_docker_Visualizations_LinkGraph_LinkGraph_Field_Order_First_and_Last_Fields.png +0 -0
  24. package/.loki/reference/chrome_docker_Visualizations_LinkGraph_LinkGraph_Field_Order_From_the_First_to_the_Last_Fields.png +0 -0
  25. package/.loki/reference/chrome_docker_Visualizations_LinkGraph_LinkGraph_Field_Order_From_the_Last_to_the_First_Fields.png +0 -0
  26. package/.loki/reference/chrome_docker_Visualizations_LinkGraph_LinkGraph_Node_Text_Color.png +0 -0
  27. package/.loki/reference/chrome_docker_Visualizations_LinkGraph_LinkGraph_Node_Text_Highlight_Color.png +0 -0
  28. package/.loki/reference/chrome_docker_Visualizations_LinkGraph_LinkGraph_Result_Limit_3.png +0 -0
  29. package/Area.config.js +4 -0
  30. package/Area.config.js.map +1 -1
  31. package/Area.js +57 -44
  32. package/Area.js.map +1 -1
  33. package/Bar.js +46 -37
  34. package/Bar.js.map +1 -1
  35. package/Bubble.js +39 -30
  36. package/Bubble.js.map +1 -1
  37. package/ChoroplethSvg.js +40 -39
  38. package/ChoroplethSvg.js.map +1 -1
  39. package/Column.js +46 -37
  40. package/Column.js.map +1 -1
  41. package/Ellipse.config.js +0 -4
  42. package/Ellipse.config.js.map +1 -1
  43. package/Ellipse.js +20 -23
  44. package/Ellipse.js.map +1 -1
  45. package/FillerGauge.js +24 -23
  46. package/FillerGauge.js.map +1 -1
  47. package/Image.js +12 -12
  48. package/Image.js.map +1 -1
  49. package/Line.js +46 -37
  50. package/Line.js.map +1 -1
  51. package/LinkGraph.config.js +48 -1
  52. package/LinkGraph.config.js.map +1 -1
  53. package/LinkGraph.js +118 -54
  54. package/LinkGraph.js.map +1 -1
  55. package/Markdown.config.js +0 -4
  56. package/Markdown.config.js.map +1 -1
  57. package/Markdown.js +11 -15
  58. package/Markdown.js.map +1 -1
  59. package/MarkerGauge.js +26 -25
  60. package/MarkerGauge.js.map +1 -1
  61. package/ParallelCoordinates.js +29 -28
  62. package/ParallelCoordinates.js.map +1 -1
  63. package/Pie.config.js +0 -4
  64. package/Pie.config.js.map +1 -1
  65. package/Pie.js +36 -31
  66. package/Pie.js.map +1 -1
  67. package/Punchcard.js +51 -50
  68. package/Punchcard.js.map +1 -1
  69. package/Rectangle.config.js +0 -4
  70. package/Rectangle.config.js.map +1 -1
  71. package/Rectangle.js +26 -30
  72. package/Rectangle.js.map +1 -1
  73. package/Sankey.js +51 -50
  74. package/Sankey.js.map +1 -1
  75. package/Scatter.js +168 -158
  76. package/Scatter.js.map +1 -1
  77. package/SingleValue.js +67 -67
  78. package/SingleValue.js.map +1 -1
  79. package/SingleValueBasic.js +8 -8
  80. package/SingleValueBasic.js.map +1 -1
  81. package/SingleValueIcon.js +55 -54
  82. package/SingleValueIcon.js.map +1 -1
  83. package/SingleValueRadial.js +85 -85
  84. package/SingleValueRadial.js.map +1 -1
  85. package/Table.js +66 -66
  86. package/Table.js.map +1 -1
  87. package/common/Charting.js +19 -10
  88. package/common/Charting.js.map +1 -1
  89. package/common/EventsDoc.js +3 -2
  90. package/common/EventsDoc.js.map +1 -1
  91. package/common/GaugeMajorTicks.js +2 -2
  92. package/common/GaugeMajorTicks.js.map +1 -1
  93. package/common/GaugeValueMarker.js +2 -2
  94. package/common/GaugeValueMarker.js.map +1 -1
  95. package/common/OptionsDoc.js +9 -8
  96. package/common/OptionsDoc.js.map +1 -1
  97. package/common/OverviewDoc.js +22 -22
  98. package/common/OverviewDoc.js.map +1 -1
  99. package/common/SplunkVisualizationApi.js +2 -2
  100. package/common/SplunkVisualizationApi.js.map +1 -1
  101. package/common/ThemesDoc.js +2 -2
  102. package/common/ThemesDoc.js.map +1 -1
  103. package/common/chartingUtils.js +2 -2
  104. package/common/chartingUtils.js.map +1 -1
  105. package/common/docUtils.js +4 -4
  106. package/common/docUtils.js.map +1 -1
  107. package/common/gaugeUtils.js +7 -7
  108. package/common/gaugeUtils.js.map +1 -1
  109. package/common/shapeUtils.js +8 -8
  110. package/common/shapeUtils.js.map +1 -1
  111. package/common/withDashboardViz.js +29 -28
  112. package/common/withDashboardViz.js.map +1 -1
  113. package/package.json +9 -9
package/Scatter.js CHANGED
@@ -87,7 +87,7 @@ module.exports =
87
87
  /******/
88
88
  /******/
89
89
  /******/ // Load entry module and return exports
90
- /******/ return __webpack_require__(__webpack_require__.s = 228);
90
+ /******/ return __webpack_require__(__webpack_require__.s = 229);
91
91
  /******/ })
92
92
  /************************************************************************/
93
93
  /******/ ({
@@ -216,7 +216,7 @@ exports.default = withFixedSizeContainer;
216
216
 
217
217
  /***/ }),
218
218
 
219
- /***/ 127:
219
+ /***/ 128:
220
220
  /***/ (function(module, exports, __webpack_require__) {
221
221
 
222
222
  "use strict";
@@ -248,15 +248,15 @@ var Charting_1 = __webpack_require__(50);
248
248
 
249
249
  var charting_bundle_1 = __webpack_require__(47);
250
250
 
251
- var simpleXMLOptions_1 = __webpack_require__(56);
251
+ var simpleXMLOptions_1 = __webpack_require__(57);
252
252
 
253
- var config_1 = __webpack_require__(229);
253
+ var config_1 = __webpack_require__(230);
254
254
 
255
255
  exports.config = config_1.default;
256
256
 
257
257
  var withDashboardViz_1 = __webpack_require__(27);
258
258
 
259
- var scatterUtils_1 = __webpack_require__(230);
259
+ var scatterUtils_1 = __webpack_require__(231);
260
260
 
261
261
  var chartingUtils_1 = __webpack_require__(46);
262
262
 
@@ -397,7 +397,7 @@ module.exports = require("@babel/runtime/helpers/typeof");
397
397
 
398
398
  /***/ }),
399
399
 
400
- /***/ 228:
400
+ /***/ 229:
401
401
  /***/ (function(module, exports, __webpack_require__) {
402
402
 
403
403
  "use strict";
@@ -427,9 +427,9 @@ Object.defineProperty(exports, "__esModule", {
427
427
  });
428
428
  exports.default = void 0;
429
429
 
430
- __exportStar(__webpack_require__(127), exports);
430
+ __exportStar(__webpack_require__(128), exports);
431
431
 
432
- var Scatter_1 = __webpack_require__(127);
432
+ var Scatter_1 = __webpack_require__(128);
433
433
 
434
434
  Object.defineProperty(exports, "default", {
435
435
  enumerable: true,
@@ -440,7 +440,78 @@ Object.defineProperty(exports, "default", {
440
440
 
441
441
  /***/ }),
442
442
 
443
- /***/ 229:
443
+ /***/ 23:
444
+ /***/ (function(module, exports, __webpack_require__) {
445
+
446
+ "use strict";
447
+
448
+
449
+ var _defineProperty = __webpack_require__(7);
450
+
451
+ Object.defineProperty(exports, "__esModule", {
452
+ value: true
453
+ });
454
+ exports.getSortingParams = exports.SortParamsPropTypes = void 0;
455
+
456
+ var T = __webpack_require__(0);
457
+
458
+ var lodash_1 = __webpack_require__(2);
459
+
460
+ var DataSource_1 = __webpack_require__(33);
461
+
462
+ exports.SortParamsPropTypes = T.shape({
463
+ currentSortKey: T.string,
464
+ currentSortDir: T.oneOf(DataSource_1.validSortDirs),
465
+ onSort: T.func
466
+ });
467
+
468
+ var getSortingParams = function getSortingParams(_ref) {
469
+ var requestParams = _ref.requestParams,
470
+ onRequestParamsChange = _ref.onRequestParamsChange;
471
+ var currentSortKey;
472
+ var currentSortDir;
473
+ var nextSortDirMap = {
474
+ asc: 'desc',
475
+ desc: 'asc',
476
+ none: 'asc'
477
+ };
478
+ var onSort;
479
+
480
+ if (lodash_1.isFunction(onRequestParamsChange)) {
481
+ if (requestParams && lodash_1.has(requestParams, 'sort')) {
482
+ currentSortKey = Object.keys(requestParams.sort).shift();
483
+ currentSortDir = requestParams.sort[currentSortKey];
484
+ } // undid memoization since there is a dependency on requestParams, which is a deeply nested object
485
+
486
+
487
+ onSort = function onSort(e, _ref2) {
488
+ var sortKey = _ref2.sortKey,
489
+ sortDir = _ref2.sortDir;
490
+
491
+ if (typeof sortKey === 'string') {
492
+ var nextSortDir = lodash_1.has(nextSortDirMap, sortDir) ? nextSortDirMap[sortDir] : 'none';
493
+ onRequestParamsChange(Object.assign(Object.assign({}, requestParams), {
494
+ offset: 0,
495
+ sort: _defineProperty({}, sortKey, nextSortDir)
496
+ }));
497
+ } else {
498
+ onRequestParamsChange(requestParams);
499
+ }
500
+ };
501
+ }
502
+
503
+ return {
504
+ currentSortKey: currentSortKey,
505
+ currentSortDir: currentSortDir,
506
+ onSort: onSort
507
+ };
508
+ };
509
+
510
+ exports.getSortingParams = getSortingParams;
511
+
512
+ /***/ }),
513
+
514
+ /***/ 230:
444
515
  /***/ (function(module, exports, __webpack_require__) {
445
516
 
446
517
  "use strict";
@@ -469,9 +540,9 @@ var VizCategory_1 = __webpack_require__(26);
469
540
 
470
541
  var configUtils_1 = __webpack_require__(6);
471
542
 
472
- var Axes_1 = __webpack_require__(58);
543
+ var Axes_1 = __webpack_require__(59);
473
544
 
474
- var Legend_1 = __webpack_require__(59);
545
+ var Legend_1 = __webpack_require__(60);
475
546
 
476
547
  var BackgroundColor_1 = __webpack_require__(45);
477
548
 
@@ -834,78 +905,7 @@ exports.default = configUtils_1.enhanceConfig(config);
834
905
 
835
906
  /***/ }),
836
907
 
837
- /***/ 23:
838
- /***/ (function(module, exports, __webpack_require__) {
839
-
840
- "use strict";
841
-
842
-
843
- var _defineProperty = __webpack_require__(7);
844
-
845
- Object.defineProperty(exports, "__esModule", {
846
- value: true
847
- });
848
- exports.getSortingParams = exports.SortParamsPropTypes = void 0;
849
-
850
- var T = __webpack_require__(0);
851
-
852
- var lodash_1 = __webpack_require__(2);
853
-
854
- var DataSource_1 = __webpack_require__(33);
855
-
856
- exports.SortParamsPropTypes = T.shape({
857
- currentSortKey: T.string,
858
- currentSortDir: T.oneOf(DataSource_1.validSortDirs),
859
- onSort: T.func
860
- });
861
-
862
- var getSortingParams = function getSortingParams(_ref) {
863
- var requestParams = _ref.requestParams,
864
- onRequestParamsChange = _ref.onRequestParamsChange;
865
- var currentSortKey;
866
- var currentSortDir;
867
- var nextSortDirMap = {
868
- asc: 'desc',
869
- desc: 'asc',
870
- none: 'asc'
871
- };
872
- var onSort;
873
-
874
- if (lodash_1.isFunction(onRequestParamsChange)) {
875
- if (requestParams && lodash_1.has(requestParams, 'sort')) {
876
- currentSortKey = Object.keys(requestParams.sort).shift();
877
- currentSortDir = requestParams.sort[currentSortKey];
878
- } // undid memoization since there is a dependency on requestParams, which is a deeply nested object
879
-
880
-
881
- onSort = function onSort(e, _ref2) {
882
- var sortKey = _ref2.sortKey,
883
- sortDir = _ref2.sortDir;
884
-
885
- if (typeof sortKey === 'string') {
886
- var nextSortDir = lodash_1.has(nextSortDirMap, sortDir) ? nextSortDirMap[sortDir] : 'none';
887
- onRequestParamsChange(Object.assign(Object.assign({}, requestParams), {
888
- offset: 0,
889
- sort: _defineProperty({}, sortKey, nextSortDir)
890
- }));
891
- } else {
892
- onRequestParamsChange(requestParams);
893
- }
894
- };
895
- }
896
-
897
- return {
898
- currentSortKey: currentSortKey,
899
- currentSortDir: currentSortDir,
900
- onSort: onSort
901
- };
902
- };
903
-
904
- exports.getSortingParams = getSortingParams;
905
-
906
- /***/ }),
907
-
908
- /***/ 230:
908
+ /***/ 231:
909
909
  /***/ (function(module, exports, __webpack_require__) {
910
910
 
911
911
  "use strict";
@@ -2256,8 +2256,6 @@ var VizBehavior;
2256
2256
  "use strict";
2257
2257
 
2258
2258
 
2259
- var _this = this;
2260
-
2261
2259
  Object.defineProperty(exports, "__esModule", {
2262
2260
  value: true
2263
2261
  });
@@ -2283,17 +2281,19 @@ __webpack_require__(52); // fixme, @splunk/charting should be refactor to use lo
2283
2281
 
2284
2282
  var charting_bundle_1 = __webpack_require__(47);
2285
2283
 
2284
+ var TimezoneContext_1 = __webpack_require__(53);
2285
+
2286
2286
  var style_1 = __webpack_require__(13);
2287
2287
 
2288
2288
  var styled_components_1 = __webpack_require__(4);
2289
2289
 
2290
2290
  var Message_1 = __webpack_require__(9);
2291
2291
 
2292
- var useSplunkTheme_1 = __webpack_require__(53);
2292
+ var useSplunkTheme_1 = __webpack_require__(54);
2293
2293
 
2294
- var themeUtils_1 = __webpack_require__(54);
2294
+ var themeUtils_1 = __webpack_require__(55);
2295
2295
 
2296
- var ChartingApi_1 = __webpack_require__(55);
2296
+ var ChartingApi_1 = __webpack_require__(56);
2297
2297
 
2298
2298
  exports.NO_INPLACE_PROPS = ['chart', 'chart.orientation', 'layout.splitSeries', 'chart.style', 'legend.placement'];
2299
2299
 
@@ -2389,6 +2389,7 @@ var Charting = function Charting(props) {
2389
2389
  var chart = react_1.useRef();
2390
2390
  var needsRedraw = react_1.useRef(true);
2391
2391
  var api = react_1.useRef(new ChartingApi_1.ChartingApiFunctional(chart));
2392
+ var timezone = react_1.useContext(TimezoneContext_1.default);
2392
2393
 
2393
2394
  var computeChartingSize = function computeChartingSize() {
2394
2395
  if (container.current) {
@@ -2418,6 +2419,7 @@ var Charting = function Charting(props) {
2418
2419
  onPointMouseOver = props.onPointMouseOver,
2419
2420
  onEventTrigger = props.onEventTrigger;
2420
2421
  var prevOptions = usePrevious(options);
2422
+ var prevTimezone = usePrevious(timezone);
2421
2423
 
2422
2424
  var handleClick = function handleClick(chartEvent, type) {
2423
2425
  var payload = lodash_1.pick(chartEvent, 'name2', 'value2', '_span', 'modifierKey');
@@ -2501,9 +2503,9 @@ var Charting = function Charting(props) {
2501
2503
  var computedChartSize = computeChartingSize();
2502
2504
  var computedWidth = computedChartSize.width;
2503
2505
  var computedHeight = computedChartSize.height;
2504
- var serializedTimezone = lodash_1.get(_this, ['context', 'serializedTimezone']);
2505
- var ianaTimezone = lodash_1.get(_this, ['context', 'ianaTimezone']);
2506
- var utcOffset = lodash_1.get(_this, ['context', 'utcOffset']);
2506
+ var serializedTimezone = timezone === null || timezone === void 0 ? void 0 : timezone.serializedTimezone;
2507
+ var ianaTimezone = timezone === null || timezone === void 0 ? void 0 : timezone.ianaTimezone;
2508
+ var utcOffset = timezone === null || timezone === void 0 ? void 0 : timezone.utcOffset;
2507
2509
 
2508
2510
  if (!computedWidth || !computedHeight) {
2509
2511
  return;
@@ -2599,7 +2601,8 @@ var Charting = function Charting(props) {
2599
2601
  react_1.useEffect(function () {
2600
2602
  // TODO: figure out why re-init is needed for functional components (i.e. PlatformViz) when changing theme
2601
2603
  // seems like redraw doesn't suffice to update the background colors
2602
- if (!chart.current || !exports.canUpdateInPlace(prevOptions, options) || !props.themeKey && prevTheme !== themeKey || prevOnClick !== onClick) {
2604
+ if (!chart.current || !exports.canUpdateInPlace(prevOptions, options) || // timezone is a simple object so this comparison should be fast
2605
+ JSON.stringify(prevTimezone) !== JSON.stringify(timezone) || !props.themeKey && prevTheme !== themeKey || prevOnClick !== onClick) {
2603
2606
  needsInit.current = true;
2604
2607
  }
2605
2608
 
@@ -2607,7 +2610,7 @@ var Charting = function Charting(props) {
2607
2610
  // otherwise a noop would occur if the onContainerMount drawChart is re-invoked when dimensions change
2608
2611
 
2609
2612
  drawChart();
2610
- }, [JSON.stringify(options), JSON.stringify(chartData.toJSON()), JSON.stringify(chartData.annotations), themeKey, onClick]);
2613
+ }, [JSON.stringify(options), JSON.stringify(chartData.toJSON()), JSON.stringify(chartData.annotations), timezone === null || timezone === void 0 ? void 0 : timezone.ianaTimezone, timezone === null || timezone === void 0 ? void 0 : timezone.utcOffset, timezone === null || timezone === void 0 ? void 0 : timezone.serializedTimezone, themeKey, onClick]);
2611
2614
  return React.createElement(ChartingContainer, {
2612
2615
  style: style,
2613
2616
  ref: onContainerMount,
@@ -2687,18 +2690,25 @@ module.exports = require("@splunk/visualizations-shared/i18n");
2687
2690
  /***/ 53:
2688
2691
  /***/ (function(module, exports) {
2689
2692
 
2690
- module.exports = require("@splunk/themes/useSplunkTheme");
2693
+ module.exports = require("@splunk/visualization-context/TimezoneContext");
2691
2694
 
2692
2695
  /***/ }),
2693
2696
 
2694
2697
  /***/ 54:
2695
2698
  /***/ (function(module, exports) {
2696
2699
 
2697
- module.exports = require("@splunk/visualizations-shared/themeUtils");
2700
+ module.exports = require("@splunk/themes/useSplunkTheme");
2698
2701
 
2699
2702
  /***/ }),
2700
2703
 
2701
2704
  /***/ 55:
2705
+ /***/ (function(module, exports) {
2706
+
2707
+ module.exports = require("@splunk/visualizations-shared/themeUtils");
2708
+
2709
+ /***/ }),
2710
+
2711
+ /***/ 56:
2702
2712
  /***/ (function(module, exports, __webpack_require__) {
2703
2713
 
2704
2714
  "use strict";
@@ -2767,14 +2777,14 @@ exports.ChartingApiFunctional = ChartingApiFunctional;
2767
2777
 
2768
2778
  /***/ }),
2769
2779
 
2770
- /***/ 56:
2780
+ /***/ 57:
2771
2781
  /***/ (function(module, exports) {
2772
2782
 
2773
2783
  module.exports = require("@splunk/visualizations-shared/simpleXMLOptions");
2774
2784
 
2775
2785
  /***/ }),
2776
2786
 
2777
- /***/ 58:
2787
+ /***/ 59:
2778
2788
  /***/ (function(module, exports, __webpack_require__) {
2779
2789
 
2780
2790
  "use strict";
@@ -2802,67 +2812,6 @@ exports.default = axes;
2802
2812
 
2803
2813
  /***/ }),
2804
2814
 
2805
- /***/ 59:
2806
- /***/ (function(module, exports, __webpack_require__) {
2807
-
2808
- "use strict";
2809
-
2810
-
2811
- Object.defineProperty(exports, "__esModule", {
2812
- value: true
2813
- });
2814
-
2815
- var i18n_1 = __webpack_require__(3);
2816
-
2817
- var legend = {
2818
- label: i18n_1._('Legend'),
2819
- layout: [[{
2820
- label: i18n_1._('Position'),
2821
- option: 'legendDisplay',
2822
- editor: 'editor.select',
2823
- editorProps: {
2824
- values: [{
2825
- label: i18n_1._('Right'),
2826
- value: 'right'
2827
- }, {
2828
- label: i18n_1._('Left'),
2829
- value: 'left'
2830
- }, {
2831
- label: i18n_1._('Top'),
2832
- value: 'top'
2833
- }, {
2834
- label: i18n_1._('Bottom'),
2835
- value: 'bottom'
2836
- }, {
2837
- label: i18n_1._('Off'),
2838
- value: 'off'
2839
- }]
2840
- }
2841
- }], [{
2842
- label: i18n_1._('Truncation'),
2843
- option: 'legendTruncation',
2844
- editor: 'editor.radioBar',
2845
- editorProps: {
2846
- values: [{
2847
- label: i18n_1._('A...'),
2848
- value: 'ellipsisEnd'
2849
- }, {
2850
- label: i18n_1._('A...Z'),
2851
- value: 'ellipsisMiddle'
2852
- }, {
2853
- label: i18n_1._('...Z'),
2854
- value: 'ellipsisStart'
2855
- }, {
2856
- label: i18n_1._('Off'),
2857
- value: 'ellipsisOff'
2858
- }]
2859
- }
2860
- }]]
2861
- };
2862
- exports.default = legend;
2863
-
2864
- /***/ }),
2865
-
2866
2815
  /***/ 6:
2867
2816
  /***/ (function(module, exports, __webpack_require__) {
2868
2817
 
@@ -3055,6 +3004,67 @@ exports.generatePrecisionValues = generatePrecisionValues;
3055
3004
 
3056
3005
  /***/ }),
3057
3006
 
3007
+ /***/ 60:
3008
+ /***/ (function(module, exports, __webpack_require__) {
3009
+
3010
+ "use strict";
3011
+
3012
+
3013
+ Object.defineProperty(exports, "__esModule", {
3014
+ value: true
3015
+ });
3016
+
3017
+ var i18n_1 = __webpack_require__(3);
3018
+
3019
+ var legend = {
3020
+ label: i18n_1._('Legend'),
3021
+ layout: [[{
3022
+ label: i18n_1._('Position'),
3023
+ option: 'legendDisplay',
3024
+ editor: 'editor.select',
3025
+ editorProps: {
3026
+ values: [{
3027
+ label: i18n_1._('Right'),
3028
+ value: 'right'
3029
+ }, {
3030
+ label: i18n_1._('Left'),
3031
+ value: 'left'
3032
+ }, {
3033
+ label: i18n_1._('Top'),
3034
+ value: 'top'
3035
+ }, {
3036
+ label: i18n_1._('Bottom'),
3037
+ value: 'bottom'
3038
+ }, {
3039
+ label: i18n_1._('Off'),
3040
+ value: 'off'
3041
+ }]
3042
+ }
3043
+ }], [{
3044
+ label: i18n_1._('Truncation'),
3045
+ option: 'legendTruncation',
3046
+ editor: 'editor.radioBar',
3047
+ editorProps: {
3048
+ values: [{
3049
+ label: i18n_1._('A...'),
3050
+ value: 'ellipsisEnd'
3051
+ }, {
3052
+ label: i18n_1._('A...Z'),
3053
+ value: 'ellipsisMiddle'
3054
+ }, {
3055
+ label: i18n_1._('...Z'),
3056
+ value: 'ellipsisStart'
3057
+ }, {
3058
+ label: i18n_1._('Off'),
3059
+ value: 'ellipsisOff'
3060
+ }]
3061
+ }
3062
+ }]]
3063
+ };
3064
+ exports.default = legend;
3065
+
3066
+ /***/ }),
3067
+
3058
3068
  /***/ 7:
3059
3069
  /***/ (function(module, exports) {
3060
3070