@carbon/charts 0.41.34 → 0.41.38

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 (102) hide show
  1. package/CHANGELOG.md +36 -1
  2. package/axis-chart.d.ts +1 -1
  3. package/axis-chart.js +5 -3
  4. package/axis-chart.js.map +1 -1
  5. package/build/demo/data/boxplot.d.ts +34 -0
  6. package/build/demo/data/combo.d.ts +4 -31
  7. package/build/demo/data/index.d.ts +6 -0
  8. package/build/src/axis-chart.d.ts +1 -1
  9. package/build/src/charts/boxplot.d.ts +8 -0
  10. package/build/src/charts/index.d.ts +1 -0
  11. package/build/src/components/axes/ruler-stacked.d.ts +0 -1
  12. package/build/src/components/axes/two-dimensional-axes.d.ts +0 -1
  13. package/build/src/components/component.d.ts +1 -1
  14. package/build/src/components/essentials/threshold.d.ts +3 -6
  15. package/build/src/components/graphs/area-stacked.d.ts +1 -1
  16. package/build/src/components/graphs/boxplot.d.ts +7 -0
  17. package/build/src/components/index.d.ts +1 -0
  18. package/build/src/configuration-non-customizable.d.ts +19 -0
  19. package/build/src/configuration.d.ts +2 -1
  20. package/build/src/interfaces/axis-scales.d.ts +6 -1
  21. package/build/src/interfaces/charts.d.ts +6 -1
  22. package/build/src/interfaces/enums.d.ts +7 -0
  23. package/build/src/interfaces/events.d.ts +13 -0
  24. package/build/src/model-boxplot.d.ts +12 -0
  25. package/build/src/model.d.ts +1 -1
  26. package/bundle.js +1 -1
  27. package/charts/boxplot.d.ts +8 -0
  28. package/charts/boxplot.js +55 -0
  29. package/charts/boxplot.js.map +1 -0
  30. package/charts/index.d.ts +1 -0
  31. package/charts/index.js +1 -0
  32. package/charts/index.js.map +1 -1
  33. package/components/axes/axis.js +34 -13
  34. package/components/axes/axis.js.map +1 -1
  35. package/components/axes/ruler-stacked.d.ts +0 -1
  36. package/components/axes/ruler-stacked.js +0 -8
  37. package/components/axes/ruler-stacked.js.map +1 -1
  38. package/components/axes/two-dimensional-axes.d.ts +0 -1
  39. package/components/axes/two-dimensional-axes.js +0 -29
  40. package/components/axes/two-dimensional-axes.js.map +1 -1
  41. package/components/component.d.ts +1 -1
  42. package/components/component.js.map +1 -1
  43. package/components/essentials/threshold.d.ts +3 -6
  44. package/components/essentials/threshold.js +158 -79
  45. package/components/essentials/threshold.js.map +1 -1
  46. package/components/graphs/area-stacked.d.ts +1 -1
  47. package/components/graphs/area-stacked.js +5 -3
  48. package/components/graphs/area-stacked.js.map +1 -1
  49. package/components/graphs/boxplot.d.ts +7 -0
  50. package/components/graphs/boxplot.js +420 -0
  51. package/components/graphs/boxplot.js.map +1 -0
  52. package/components/index.d.ts +1 -0
  53. package/components/index.js +1 -0
  54. package/components/index.js.map +1 -1
  55. package/configuration-non-customizable.d.ts +19 -0
  56. package/configuration-non-customizable.js +19 -0
  57. package/configuration-non-customizable.js.map +1 -1
  58. package/configuration.d.ts +2 -1
  59. package/configuration.js +5 -0
  60. package/configuration.js.map +1 -1
  61. package/demo/data/boxplot.d.ts +34 -0
  62. package/demo/data/boxplot.js +48 -0
  63. package/demo/data/boxplot.js.map +1 -0
  64. package/demo/data/bubble.js +4 -4
  65. package/demo/data/bubble.js.map +1 -1
  66. package/demo/data/bundle.js +1 -1
  67. package/demo/data/combo.d.ts +4 -31
  68. package/demo/data/combo.js +4 -42
  69. package/demo/data/combo.js.map +1 -1
  70. package/demo/data/index.d.ts +6 -0
  71. package/demo/data/index.js +22 -6
  72. package/demo/data/index.js.map +1 -1
  73. package/demo/styles.css +4 -4
  74. package/demo/styles.min.css +1 -1
  75. package/demo/tsconfig.tsbuildinfo +31 -17
  76. package/interfaces/axis-scales.d.ts +6 -1
  77. package/interfaces/axis-scales.js.map +1 -1
  78. package/interfaces/charts.d.ts +6 -1
  79. package/interfaces/charts.js.map +1 -1
  80. package/interfaces/enums.d.ts +7 -0
  81. package/interfaces/enums.js +8 -0
  82. package/interfaces/enums.js.map +1 -1
  83. package/interfaces/events.d.ts +13 -0
  84. package/interfaces/events.js +14 -0
  85. package/interfaces/events.js.map +1 -1
  86. package/model-boxplot.d.ts +12 -0
  87. package/model-boxplot.js +99 -0
  88. package/model-boxplot.js.map +1 -0
  89. package/model.d.ts +1 -1
  90. package/model.js +3 -2
  91. package/model.js.map +1 -1
  92. package/package.json +1 -1
  93. package/styles/components/_threshold.scss +1 -1
  94. package/styles-g10.css +1 -1
  95. package/styles-g10.min.css +1 -1
  96. package/styles-g100.css +1 -1
  97. package/styles-g100.min.css +1 -1
  98. package/styles-g90.css +1 -1
  99. package/styles-g90.min.css +1 -1
  100. package/styles.css +1 -1
  101. package/styles.min.css +1 -1
  102. package/tsconfig.tsbuildinfo +97 -31
@@ -141,6 +141,10 @@
141
141
  "version": "0080adb4759e07ed7f98b56a32a571862ad7d7c86b0455d149143969539191ce",
142
142
  "signature": "a1e31e2ee1781dad367d536ed3d6f92792b671ef6bc531683ceffa28d7ea9c9d"
143
143
  },
144
+ "../../demo/data/boxplot.ts": {
145
+ "version": "155a4ee121434836d83cdabf8b32caf201da5f33b3891616ba3af9d3fa788083",
146
+ "signature": "835715dcde95fe8b2dcec159736d2b971fa87d8c3f3868a82740d4668750359d"
147
+ },
144
148
  "../../../../node_modules/@types/d3-array/index.d.ts": {
145
149
  "version": "f5b8f86da74b4bfb29f85a631b725a47c8a3ab6c4ce91537e5b176bbe0cd0a7a",
146
150
  "signature": "f5b8f86da74b4bfb29f85a631b725a47c8a3ab6c4ce91537e5b176bbe0cd0a7a"
@@ -274,12 +278,12 @@
274
278
  "signature": "d73f679a0b56a67838b8f038dfe5885ec32278e07e2edebb03236db2a5902494"
275
279
  },
276
280
  "../../demo/data/bubble.ts": {
277
- "version": "f1ea6b6766c667aa7abfb198b98638a50f3ac6e8be19d9353a94f095c972d280",
281
+ "version": "53e4c8d16f2131c79a0414c0c2a86f6e4bdc663fecd6e1a142e3569241df06fc",
278
282
  "signature": "5f971e9544c4c5f5f7c2b82e997d49bfb78c1834bbab909f0a21c5dace641fef"
279
283
  },
280
284
  "../../demo/data/combo.ts": {
281
- "version": "7134dcb02e8fad0973a56bbf5f3562798e6029997337b369847ec8bee9eae2df",
282
- "signature": "fc793d82b4314193bb1fafda589681025a57e766cc87fe3fbac57dcb9718b636"
285
+ "version": "d9add234716b3e5c816355b7cce5aa02e6d671daa17002cceaebe034025e76d6",
286
+ "signature": "a0a4570994fda6f1d5790e3d7d5114d9f6de1c6db57e88ca9084eb02165d3c37"
283
287
  },
284
288
  "../../demo/data/pie.ts": {
285
289
  "version": "112e7eefe70adc6e8e3b221a4cb373bd40f04ad2b24bade565181a38bd37ac81",
@@ -342,20 +346,20 @@
342
346
  "signature": "95edee9e66eb5c6dd0060018df015a4a079945b22b2b5788573094ea68a928be"
343
347
  },
344
348
  "../../src/interfaces/events.ts": {
345
- "version": "1a67bee88525382926fc895938d847bfc0413885658bfec73b703e1876ba3528",
346
- "signature": "1a67bee88525382926fc895938d847bfc0413885658bfec73b703e1876ba3528"
349
+ "version": "a1fa01983db9af6999200bdac2c18929c4ec36086714c170dfd59e092cf70eec",
350
+ "signature": "a1fa01983db9af6999200bdac2c18929c4ec36086714c170dfd59e092cf70eec"
347
351
  },
348
352
  "../../src/interfaces/enums.ts": {
349
- "version": "06f0b586de11c4bd201cdf57692a542d45d8dbda053b9f7b7ea518b8efacba9e",
350
- "signature": "06f0b586de11c4bd201cdf57692a542d45d8dbda053b9f7b7ea518b8efacba9e"
353
+ "version": "908bb56d896567f1c71904fb9e60eaaa89663eb8637ef97c632ec1c6e8e541cd",
354
+ "signature": "908bb56d896567f1c71904fb9e60eaaa89663eb8637ef97c632ec1c6e8e541cd"
351
355
  },
352
356
  "../../src/model.ts": {
353
- "version": "a5aa57011d1430a98f07228d052792c143ff4ad8b7bd123dc67aff173e3afe38",
354
- "signature": "a5aa57011d1430a98f07228d052792c143ff4ad8b7bd123dc67aff173e3afe38"
357
+ "version": "8bedc18177c923dcb683c31b84e33bf64b49d018d268fe88cc40842dd74dea29",
358
+ "signature": "8bedc18177c923dcb683c31b84e33bf64b49d018d268fe88cc40842dd74dea29"
355
359
  },
356
360
  "../../src/components/component.ts": {
357
- "version": "c319c8cb7fecc35c6a86cd4afb7a72ff53ef6c3b16946342ecc1a42aabe43bf3",
358
- "signature": "c319c8cb7fecc35c6a86cd4afb7a72ff53ef6c3b16946342ecc1a42aabe43bf3"
361
+ "version": "b92c3d1d9c504d891ce52e3442de9ba7ef84538ee604b88edfc823add134cf5d",
362
+ "signature": "b92c3d1d9c504d891ce52e3442de9ba7ef84538ee604b88edfc823add134cf5d"
359
363
  },
360
364
  "../../src/interfaces/truncation.ts": {
361
365
  "version": "e13ca1760c1d894f0cbb054be895f12207ff8a8708be12a18944832c02dd7ab2",
@@ -366,12 +370,12 @@
366
370
  "signature": "54cebdaf37db61fa30d77a9753daafc69ae8ff21c2b23ae85304999cb7ef9f84"
367
371
  },
368
372
  "../../src/interfaces/axis-scales.ts": {
369
- "version": "431e93aa715e700e0816f0f531daa9ba4a33385a6de4c6e64a65f49bc863b0bd",
370
- "signature": "431e93aa715e700e0816f0f531daa9ba4a33385a6de4c6e64a65f49bc863b0bd"
373
+ "version": "5c97b5470761d6a1efca59cf6e995e6e6e4cd5bb3054bc6b71c366049464ce5d",
374
+ "signature": "5c97b5470761d6a1efca59cf6e995e6e6e4cd5bb3054bc6b71c366049464ce5d"
371
375
  },
372
376
  "../../src/interfaces/charts.ts": {
373
- "version": "7cb565ec73917748263b1c694c13accd731eeee6e907eff475cfd84b535ddb96",
374
- "signature": "7cb565ec73917748263b1c694c13accd731eeee6e907eff475cfd84b535ddb96"
377
+ "version": "361564f7f89dc14a7dcbb6e3b73e9055bae32d626d48be8811440aa447c9c967",
378
+ "signature": "361564f7f89dc14a7dcbb6e3b73e9055bae32d626d48be8811440aa447c9c967"
375
379
  },
376
380
  "../../src/interfaces/layout.ts": {
377
381
  "version": "3b70dfad0fc0aede74ab026fca88931f3b2a039a3362a3e3bd3293a0a762672f",
@@ -390,8 +394,8 @@
390
394
  "signature": "b766c38614e2a36e1261b020b9b9b8ff8ccb7fb756c1de28bbbbcd0f606bd741"
391
395
  },
392
396
  "../../demo/data/index.ts": {
393
- "version": "5a066e7b7f15c70ef21f11e228a5ed068c780c34d7e97cf86803dd64f28e279e",
394
- "signature": "1a4bbd3df3e649bd8a1445e9920e4ceb16e859c00bbc476fee03849b44f9722f"
397
+ "version": "d8d450fd098fde28708b97edcbb281ea3cfc9c1e388371c3d09a506cd0d7dd56",
398
+ "signature": "6fe1ac55b9ef03ab21d3f0397dc411725e9baf4bd81b30b0c6cda269fe948141"
395
399
  },
396
400
  "../../node_modules/@types/node/globals.d.ts": {
397
401
  "version": "6cf62fbc792aa81fa62f99dab5cc692c5315ecd5da09dd35f1ccc82778c4d5bc",
@@ -866,6 +870,13 @@
866
870
  "../../node_modules/@types/node/util.d.ts",
867
871
  "../../node_modules/@types/node/ts3.2/util.d.ts"
868
872
  ],
873
+ "../../demo/data/boxplot.ts": [
874
+ "../../../../node_modules/date-fns/typings.d.ts",
875
+ "../../node_modules/@types/node/fs.d.ts",
876
+ "../../node_modules/@types/node/ts3.2/fs.d.ts",
877
+ "../../node_modules/@types/node/util.d.ts",
878
+ "../../node_modules/@types/node/ts3.2/util.d.ts"
879
+ ],
869
880
  "../../../../node_modules/@types/d3-array/index.d.ts": [
870
881
  "../../../../node_modules/date-fns/typings.d.ts",
871
882
  "../../node_modules/@types/node/fs.d.ts",
@@ -1385,6 +1396,7 @@
1385
1396
  "../../demo/data/index.ts": [
1386
1397
  "../../demo/data/area.ts",
1387
1398
  "../../demo/data/bar.ts",
1399
+ "../../demo/data/boxplot.ts",
1388
1400
  "../../demo/data/bubble.ts",
1389
1401
  "../../demo/data/donut.ts",
1390
1402
  "../../demo/data/line.ts",
@@ -2041,6 +2053,7 @@
2041
2053
  "../../demo/data/index.ts": [
2042
2054
  "../../demo/data/area.ts",
2043
2055
  "../../demo/data/bar.ts",
2056
+ "../../demo/data/boxplot.ts",
2044
2057
  "../../demo/data/bubble.ts",
2045
2058
  "../../demo/data/donut.ts",
2046
2059
  "../../demo/data/line.ts",
@@ -2880,6 +2893,7 @@
2880
2893
  "../../../../node_modules/date-fns/typings.d.ts",
2881
2894
  "../../../../node_modules/date-fns/locale/tr/index.d.ts",
2882
2895
  "../../demo/data/bar.ts",
2896
+ "../../demo/data/boxplot.ts",
2883
2897
  "../../../../node_modules/@types/d3-array/index.d.ts",
2884
2898
  "../../../../node_modules/@types/d3-selection/index.d.ts",
2885
2899
  "../../../../node_modules/@types/d3-axis/index.d.ts",
@@ -1,4 +1,4 @@
1
- import { ScaleTypes, TickRotations } from './enums';
1
+ import { ScaleTypes, TickRotations, AxisTitleOrientations } from './enums';
2
2
  import { AxisDomain } from 'd3';
3
3
  import { Locale } from 'date-fns';
4
4
  import { ThresholdOptions } from './components';
@@ -42,6 +42,11 @@ export interface AxisOptions {
42
42
  * optional title for the scales
43
43
  */
44
44
  title?: string;
45
+ /**
46
+ * Override for the orientation of the title (for vertical axes).
47
+ * The title string can be overrided to be rotated left or right.
48
+ */
49
+ titleOrientation?: AxisTitleOrientations;
45
50
  /**
46
51
  * thresholds
47
52
  * Example:
@@ -1 +1 @@
1
- {"version":3,"file":"axis-scales.js","sourceRoot":"","sources":["axis-scales.ts"],"names":[],"mappings":"","sourcesContent":["import { ScaleTypes, TickRotations } from './enums';\nimport { AxisDomain } from 'd3';\nimport { Locale } from 'date-fns';\nimport { ThresholdOptions } from './components';\nimport { TruncationOptions } from './truncation';\n\n/**\n * options to configure a scale. not all options are used by all scales\n */\nexport interface AxisOptions {\n\t/**\n\t * type of the scale used on axis\n\t */\n\tscaleType?: ScaleTypes;\n\t/**\n\t * option for stacked axis\n\t */\n\tstacked?: boolean;\n\t/**\n\t * option for percentage axis scale\n\t */\n\tpercentage?: boolean;\n\t/**\n\t * Whether the Axis should use the specified domain\n\t * instead of it being dynamically generated based on data extents.\n\t * The type of values should depend on the scale type.\n\t * Example for continuous axis scale: [-100, 100]\n\t * Example for discrete axis scale: ['Qty', 'More', 'Sold']\n\t * No need to define domain for percentage axis scale\n\t */\n\tdomain?: AxisDomain[];\n\t/**\n\t * Whether the Axis should be forced to include 0 as a starting point\n\t * (or ending point, in case of all negative axis).\n\t * Default: true\n\t */\n\tincludeZero?: boolean;\n\t/**\n\t * identifies what key within the data the axis values would map to\n\t */\n\tmapsTo?: string;\n\t/**\n\t * optional title for the scales\n\t */\n\ttitle?: string;\n\t/**\n\t * thresholds\n\t * Example:\n\t * [\n\t *\t\t{value: 10000},\n\t *\t\t{value: 40020, valueFormatter: (x) => x},\n\t *\t\t{value: 55000, label: \"Custom label\", fillColor: \"#03a9f4\"},\n\t * ]\n\t */\n\tthresholds?: ThresholdOptions[];\n\t/**\n\t * tick configuration\n\t */\n\tticks?: {\n\t\t/**\n\t\t * number of ticks to show\n\t\t */\n\t\tnumber?: number;\n\t\t/**\n\t\t * minimum tick value\n\t\t */\n\t\tmin?: number;\n\t\t/**\n\t\t * maximum tick value\n\t\t */\n\t\tmax?: number;\n\t\t/**\n\t\t * minimum width of a tick\n\t\t * before getting rotated (in pixels)\n\t\t */\n\t\trotateIfSmallerThan?: number;\n\t\t/**\n\t\t * when to rotate ticks\n\t\t */\n\t\trotation?: TickRotations;\n\t\t/**\n\t\t * function to format the ticks\n\t\t */\n\t\tformatter?: Function;\n\t\t/**\n\t\t * optional custom array of tick values that is within the domain of data\n\t\t */\n\t\tvalues?: any[];\n\t};\n\ttruncation?: TruncationOptions;\n\t/**\n\t * is axis visible or not\n\t */\n\tvisible?: boolean;\n}\n\n/**\n * customize time series scales\n */\nexport interface TimeScaleOptions {\n\taddSpaceOnEdges?: number;\n\t/**\n\t * if it's true, days are shown as mon-sun,\n\t * otherwise days are shown as number 1-31\n\t */\n\tshowDayName?: boolean;\n\t/**\n\t * formats for each time interval\n\t */\n\ttimeIntervalFormats?: TimeIntervalFormats;\n\t/**\n\t * locale object, for more information see https://date-fns.org/v2.11.0/docs/Locale.\n\t * example: `import enUSLocaleObject from \"date-fns/locale/en-US/index\"`.\n\t * available locale objects are: https://github.com/date-fns/date-fns/tree/master/src/locale\n\t */\n\tlocaleObject?: Locale;\n}\n\n/**\n * time scales: customize ticks format for different time intervals\n */\nexport interface TickFormats {\n\tprimary?: string;\n\tsecondary?: string;\n}\n\nexport interface TimeIntervalFormats {\n\t'15seconds'?: TickFormats;\n\tminute?: TickFormats;\n\t'30minutes'?: TickFormats;\n\thourly?: TickFormats;\n\tdaily?: TickFormats;\n\tweekly?: TickFormats;\n\tmonthly?: TickFormats;\n\tquarterly?: TickFormats;\n\tyearly?: TickFormats;\n}\n\n/**\n * customize the axes components\n */\nexport interface AxesOptions {\n\tleft?: AxisOptions;\n\tbottom?: AxisOptions;\n\tright?: AxisOptions;\n\ttop?: AxisOptions;\n}\n"]}
1
+ {"version":3,"file":"axis-scales.js","sourceRoot":"","sources":["axis-scales.ts"],"names":[],"mappings":"","sourcesContent":["import { ScaleTypes, TickRotations, AxisTitleOrientations } from './enums';\nimport { AxisDomain } from 'd3';\nimport { Locale } from 'date-fns';\nimport { ThresholdOptions } from './components';\nimport { TruncationOptions } from './truncation';\n\n/**\n * options to configure a scale. not all options are used by all scales\n */\nexport interface AxisOptions {\n\t/**\n\t * type of the scale used on axis\n\t */\n\tscaleType?: ScaleTypes;\n\t/**\n\t * option for stacked axis\n\t */\n\tstacked?: boolean;\n\t/**\n\t * option for percentage axis scale\n\t */\n\tpercentage?: boolean;\n\t/**\n\t * Whether the Axis should use the specified domain\n\t * instead of it being dynamically generated based on data extents.\n\t * The type of values should depend on the scale type.\n\t * Example for continuous axis scale: [-100, 100]\n\t * Example for discrete axis scale: ['Qty', 'More', 'Sold']\n\t * No need to define domain for percentage axis scale\n\t */\n\tdomain?: AxisDomain[];\n\t/**\n\t * Whether the Axis should be forced to include 0 as a starting point\n\t * (or ending point, in case of all negative axis).\n\t * Default: true\n\t */\n\tincludeZero?: boolean;\n\t/**\n\t * identifies what key within the data the axis values would map to\n\t */\n\tmapsTo?: string;\n\t/**\n\t * optional title for the scales\n\t */\n\ttitle?: string;\n\t/**\n\t * Override for the orientation of the title (for vertical axes).\n\t * The title string can be overrided to be rotated left or right.\n\t */\n\ttitleOrientation?: AxisTitleOrientations;\n\t/**\n\t * thresholds\n\t * Example:\n\t * [\n\t *\t\t{value: 10000},\n\t *\t\t{value: 40020, valueFormatter: (x) => x},\n\t *\t\t{value: 55000, label: \"Custom label\", fillColor: \"#03a9f4\"},\n\t * ]\n\t */\n\tthresholds?: ThresholdOptions[];\n\t/**\n\t * tick configuration\n\t */\n\tticks?: {\n\t\t/**\n\t\t * number of ticks to show\n\t\t */\n\t\tnumber?: number;\n\t\t/**\n\t\t * minimum tick value\n\t\t */\n\t\tmin?: number;\n\t\t/**\n\t\t * maximum tick value\n\t\t */\n\t\tmax?: number;\n\t\t/**\n\t\t * minimum width of a tick\n\t\t * before getting rotated (in pixels)\n\t\t */\n\t\trotateIfSmallerThan?: number;\n\t\t/**\n\t\t * when to rotate ticks\n\t\t */\n\t\trotation?: TickRotations;\n\t\t/**\n\t\t * function to format the ticks\n\t\t */\n\t\tformatter?: Function;\n\t\t/**\n\t\t * optional custom array of tick values that is within the domain of data\n\t\t */\n\t\tvalues?: any[];\n\t};\n\ttruncation?: TruncationOptions;\n\t/**\n\t * is axis visible or not\n\t */\n\tvisible?: boolean;\n}\n\n/**\n * customize time series scales\n */\nexport interface TimeScaleOptions {\n\taddSpaceOnEdges?: number;\n\t/**\n\t * if it's true, days are shown as mon-sun,\n\t * otherwise days are shown as number 1-31\n\t */\n\tshowDayName?: boolean;\n\t/**\n\t * formats for each time interval\n\t */\n\ttimeIntervalFormats?: TimeIntervalFormats;\n\t/**\n\t * locale object, for more information see https://date-fns.org/v2.11.0/docs/Locale.\n\t * example: `import enUSLocaleObject from \"date-fns/locale/en-US/index\"`.\n\t * available locale objects are: https://github.com/date-fns/date-fns/tree/master/src/locale\n\t */\n\tlocaleObject?: Locale;\n}\n\n/**\n * time scales: customize ticks format for different time intervals\n */\nexport interface TickFormats {\n\tprimary?: string;\n\tsecondary?: string;\n}\n\nexport interface TimeIntervalFormats {\n\t'15seconds'?: TickFormats;\n\tminute?: TickFormats;\n\t'30minutes'?: TickFormats;\n\thourly?: TickFormats;\n\tdaily?: TickFormats;\n\tweekly?: TickFormats;\n\tmonthly?: TickFormats;\n\tquarterly?: TickFormats;\n\tyearly?: TickFormats;\n}\n\n/**\n * customize the axes components\n */\nexport interface AxesOptions {\n\tleft?: AxisOptions;\n\tbottom?: AxisOptions;\n\tright?: AxisOptions;\n\ttop?: AxisOptions;\n}\n"]}
@@ -78,7 +78,7 @@ export interface BaseChartOptions {
78
78
  */
79
79
  color?: {
80
80
  /**
81
- * e.g. { "Dataset 1": "blue" }
81
+ * e.g. { 'Dataset 1': 'blue' }
82
82
  */
83
83
  scale?: object;
84
84
  /**
@@ -110,6 +110,11 @@ export interface AxisChartOptions extends BaseChartOptions {
110
110
  */
111
111
  zoomBar?: ZoomBarsOptions;
112
112
  }
113
+ /**
114
+ * options specific to boxplot charts
115
+ */
116
+ export interface BoxplotChartOptions extends AxisChartOptions {
117
+ }
113
118
  /**
114
119
  * options specific to bar charts
115
120
  */
@@ -1 +1 @@
1
- {"version":3,"file":"charts.js","sourceRoot":"","sources":["charts.ts"],"names":[],"mappings":"","sourcesContent":["import {\n\tGaugeTypes,\n\tStatuses,\n\tArrowDirections,\n\tAlignments,\n\tChartTypes,\n} from './enums';\nimport {\n\tLegendOptions,\n\tTooltipOptions,\n\tGridOptions,\n\tAxesOptions,\n\tZoomBarsOptions,\n} from './index';\nimport { BarOptions, StackedBarOptions } from './components';\nimport { TimeScaleOptions } from './axis-scales';\n\n/**\n * Base chart options common to any chart\n */\nexport interface BaseChartOptions {\n\t/**\n\t * Optionally specify a title for the chart\n\t */\n\ttitle?: string;\n\t/**\n\t * boolean to disable animations (enabled by default)\n\t */\n\tanimations?: boolean;\n\t/**\n\t * boolean to prevent the container from resizing\n\t */\n\tresizable?: boolean;\n\t/**\n\t * Optionally specify a width for the chart\n\t */\n\twidth?: string;\n\t/**\n\t * Optionally specify a height for the chart\n\t */\n\theight?: string;\n\t/**\n\t * tooltip configuration\n\t */\n\ttooltip?: TooltipOptions;\n\t/**\n\t * legend configuration\n\t */\n\tlegend?: LegendOptions;\n\t/**\n\t * Optional function to determine whether is filled based on datasetLabel, label, and/or data\n\t */\n\tgetIsFilled?: (\n\t\tdatasetLabel: any,\n\t\tlabel?: any,\n\t\tdata?: any,\n\t\tdefaultFilled?: boolean\n\t) => boolean;\n\t/**\n\t * Optional function to generate the fill color based on datasetLabel, label, and/or data\n\t */\n\tgetFillColor?: (\n\t\tdatasetLabel: any,\n\t\tlabel?: any,\n\t\tdata?: any,\n\t\tdefaultFillColor?: string\n\t) => string;\n\t/**\n\t * Optional function to generate the stroke color based on datasetLabel, label, and/or data\n\t */\n\tgetStrokeColor?: (\n\t\tdatasetLabel: any,\n\t\tlabel?: any,\n\t\tdata?: any,\n\t\tdefaultStrokeColor?: string\n\t) => string;\n\t/**\n\t * stylesheet options\n\t */\n\tstyle?: {\n\t\t/**\n\t\t * optional prefixing string for css classes (defaults to 'cc')\n\t\t */\n\t\tprefix?: string;\n\t};\n\t/**\n\t * options related to charting data\n\t */\n\tdata?: {\n\t\t/**\n\t\t * identifier for data groups\n\t\t */\n\t\tgroupMapsTo?: string;\n\t\t/**\n\t\t * used to simulate data loading in skeleton way\n\t\t */\n\t\tloading?: boolean;\n\t\t/**\n\t\t * options related to pre-selected data groups\n\t\t * Remains empty if every legend item is active or dataset doesn't have the data groups.\n\t\t */\n\t\tselectedGroups?: string[];\n\t};\n\t/**\n\t * options related to color scales\n\t */\n\tcolor?: {\n\t\t/**\n\t\t * e.g. { \"Dataset 1\": \"blue\" }\n\t\t */\n\t\tscale?: object;\n\t\t/**\n\t\t * use a carbon dataviz preset color palette\n\t\t * put the index (selection of which variant)\n\t\t */\n\t\tpairing?: {\n\t\t\t/**\n\t\t\t * the number of color variants in the palette (defaults to using the number of data groups in the given data)\n\t\t\t */\n\t\t\tnumberOfVariants?: number;\n\t\t\t/**\n\t\t\t * the option number of the color paring\n\t\t\t */\n\t\t\toption?: number;\n\t\t};\n\t\t/*\n\t\t * options related to gradient\n\t\t * e.g. { enabled: true }\n\t\t */\n\t\tgradient?: object;\n\t};\n}\n\n/**\n * Options common to any chart with an axis\n */\nexport interface AxisChartOptions extends BaseChartOptions {\n\taxes?: AxesOptions;\n\tgrid?: GridOptions;\n\ttimeScale?: TimeScaleOptions;\n\t/**\n\t * zoombar configuration\n\t */\n\tzoomBar?: ZoomBarsOptions;\n}\n\n/**\n * options specific to bar charts\n */\nexport interface BarChartOptions extends AxisChartOptions {\n\tbars?: BarOptions;\n}\n\n/**\n * options specific to stacked bar charts\n */\nexport interface StackedBarChartOptions extends BarChartOptions {\n\tbars?: StackedBarOptions;\n}\n\n/**\n * options specific to scatter charts\n */\nexport interface ScatterChartOptions extends AxisChartOptions {\n\t/**\n\t * options for the points\n\t */\n\tpoints?: {\n\t\t/**\n\t\t * sets the radius of the point\n\t\t */\n\t\tradius: number;\n\t\tfillOpacity?: number;\n\t\tfilled?: boolean;\n\t\tenabled?: boolean;\n\t};\n}\n\n/**\n * options specific to lollipop charts\n */\nexport interface LollipopChartOptions extends ScatterChartOptions {}\n\n/**\n * options specific to bubble charts\n */\nexport interface BubbleChartOptions extends AxisChartOptions {\n\t/**\n\t * options for the individual bubbles\n\t */\n\tbubble?: {\n\t\t/**\n\t\t * the key to lookup in charting data for the bubble radius value\n\t\t */\n\t\tradiusMapsTo?: string;\n\t\t/**\n\t\t * A function that would determine the range of the bubble radius to use\n\t\t * Returns an array with the 1st value being the min and the 2nd value being the max radius\n\t\t */\n\t\tradiusRange?: Function;\n\t\t/**\n\t\t * Opacity of the fills used within each circle\n\t\t */\n\t\tfillOpacity?: number;\n\t\t/**\n\t\t * enabled scatter dot or not\n\t\t */\n\t\tenabled?: boolean;\n\t};\n}\n\n/**\n * options specific to line charts\n */\nexport interface LineChartOptions extends ScatterChartOptions {\n\t/**\n\t * options for the curve of the line\n\t */\n\tcurve?:\n\t\t| string\n\t\t| {\n\t\t\t\tname: string;\n\t\t };\n}\n\n/**\n * options specific to area charts\n */\nexport interface AreaChartOptions extends AxisChartOptions {\n\t/**\n\t * options for the curve of the line\n\t */\n\tcurve?:\n\t\t| string\n\t\t| {\n\t\t\t\tname: string;\n\t\t };\n\t/**\n\t * options to bound the area of the chart\n\t */\n\tbounds?: {\n\t\tupperBoundMapsTo?: string;\n\t\tlowerBoundMapsTo?: string;\n\t};\n}\n\n/**\n * options specific to area charts\n */\nexport interface StackedAreaChartOptions extends ScatterChartOptions {\n\t/**\n\t * options for the curve of the line\n\t */\n\tcurve?:\n\t\t| string\n\t\t| {\n\t\t\t\tname: string;\n\t\t };\n}\n\n/**\n * options specific to pie charts\n */\nexport interface PieChartOptions extends BaseChartOptions {\n\tpie?: {\n\t\tlabels?: {\n\t\t\tformatter?: Function;\n\t\t\tenabled?: Boolean;\n\t\t};\n\t\talignment?: Alignments;\n\t};\n}\n\n/**\n * options specific to gauge charts\n */\nexport interface GaugeChartOptions extends BaseChartOptions {\n\tgauge?: {\n\t\tarcWidth?: number;\n\t\tdeltaArrow?: {\n\t\t\tdirection?: ArrowDirections;\n\t\t\tsize?: Function;\n\t\t\tenabled: Boolean;\n\t\t};\n\t\tstatus?: Statuses;\n\t\tdeltaFontSize?: Function;\n\t\tnumberSpacing?: number;\n\t\tnumberFormatter?: Function;\n\t\tvalueFontSize?: Function;\n\t\ttype?: GaugeTypes;\n\t\talignment?: Alignments;\n\t};\n}\n\n/**\n * options specific to donut charts\n */\nexport interface DonutChartOptions extends PieChartOptions {\n\tdonut?: {\n\t\tcenter?: {\n\t\t\tlabel?: string;\n\t\t\tnumber?: number;\n\t\t\tnumberFontSize?: Function;\n\t\t\ttitleFontSize?: Function;\n\t\t\ttitleYPosition?: Function;\n\t\t\tnumberFormatter?: Function;\n\t\t};\n\t\talignment?: Alignments;\n\t};\n}\n\nexport interface MeterChartOptions extends BaseChartOptions {\n\tmeter?: {\n\t\tpeak?: number;\n\t\tstatus?: {\n\t\t\tranges: Array<{\n\t\t\t\trange: [number, number];\n\t\t\t\tstatus: Statuses;\n\t\t\t}>;\n\t\t};\n\t\theight?: number;\n\t\ttitle?: {\n\t\t\tpercentageIndicator?: {\n\t\t\t\t/**\n\t\t\t\t * rendering of the percentage value relative to the dataset within title\n\t\t\t\t */\n\t\t\t\tenabled?: boolean;\n\t\t\t};\n\t\t};\n\t};\n}\n\n/**\n * options specific to radar charts\n */\nexport interface RadarChartOptions extends BaseChartOptions {\n\tradar?: {\n\t\taxes: {\n\t\t\tangle: string;\n\t\t\tvalue: string;\n\t\t};\n\t\talignment?: Alignments;\n\t};\n}\n\n/**\n * options specific to combo charts\n */\nexport interface ComboChartOptions extends AxisChartOptions {\n\tcomboChartTypes: Array<{\n\t\ttype: ChartTypes | any;\n\t\toptions?: object;\n\t\tcorrespondingDatasets: Array<string>;\n\t}>;\n}\n\n/*\n * options specific to treemap charts\n */\nexport interface TreemapChartOptions extends BaseChartOptions {}\n"]}
1
+ {"version":3,"file":"charts.js","sourceRoot":"","sources":["charts.ts"],"names":[],"mappings":"","sourcesContent":["import {\n\tGaugeTypes,\n\tStatuses,\n\tArrowDirections,\n\tAlignments,\n\tChartTypes,\n} from './enums';\nimport {\n\tLegendOptions,\n\tTooltipOptions,\n\tGridOptions,\n\tAxesOptions,\n\tZoomBarsOptions,\n} from './index';\nimport { BarOptions, StackedBarOptions } from './components';\nimport { TimeScaleOptions } from './axis-scales';\n\n/**\n * Base chart options common to any chart\n */\nexport interface BaseChartOptions {\n\t/**\n\t * Optionally specify a title for the chart\n\t */\n\ttitle?: string;\n\t/**\n\t * boolean to disable animations (enabled by default)\n\t */\n\tanimations?: boolean;\n\t/**\n\t * boolean to prevent the container from resizing\n\t */\n\tresizable?: boolean;\n\t/**\n\t * Optionally specify a width for the chart\n\t */\n\twidth?: string;\n\t/**\n\t * Optionally specify a height for the chart\n\t */\n\theight?: string;\n\t/**\n\t * tooltip configuration\n\t */\n\ttooltip?: TooltipOptions;\n\t/**\n\t * legend configuration\n\t */\n\tlegend?: LegendOptions;\n\t/**\n\t * Optional function to determine whether is filled based on datasetLabel, label, and/or data\n\t */\n\tgetIsFilled?: (\n\t\tdatasetLabel: any,\n\t\tlabel?: any,\n\t\tdata?: any,\n\t\tdefaultFilled?: boolean\n\t) => boolean;\n\t/**\n\t * Optional function to generate the fill color based on datasetLabel, label, and/or data\n\t */\n\tgetFillColor?: (\n\t\tdatasetLabel: any,\n\t\tlabel?: any,\n\t\tdata?: any,\n\t\tdefaultFillColor?: string\n\t) => string;\n\t/**\n\t * Optional function to generate the stroke color based on datasetLabel, label, and/or data\n\t */\n\tgetStrokeColor?: (\n\t\tdatasetLabel: any,\n\t\tlabel?: any,\n\t\tdata?: any,\n\t\tdefaultStrokeColor?: string\n\t) => string;\n\t/**\n\t * stylesheet options\n\t */\n\tstyle?: {\n\t\t/**\n\t\t * optional prefixing string for css classes (defaults to 'cc')\n\t\t */\n\t\tprefix?: string;\n\t};\n\t/**\n\t * options related to charting data\n\t */\n\tdata?: {\n\t\t/**\n\t\t * identifier for data groups\n\t\t */\n\t\tgroupMapsTo?: string;\n\t\t/**\n\t\t * used to simulate data loading in skeleton way\n\t\t */\n\t\tloading?: boolean;\n\t\t/**\n\t\t * options related to pre-selected data groups\n\t\t * Remains empty if every legend item is active or dataset doesn't have the data groups.\n\t\t */\n\t\tselectedGroups?: string[];\n\t};\n\t/**\n\t * options related to color scales\n\t */\n\tcolor?: {\n\t\t/**\n\t\t * e.g. { 'Dataset 1': 'blue' }\n\t\t */\n\t\tscale?: object;\n\t\t/**\n\t\t * use a carbon dataviz preset color palette\n\t\t * put the index (selection of which variant)\n\t\t */\n\t\tpairing?: {\n\t\t\t/**\n\t\t\t * the number of color variants in the palette (defaults to using the number of data groups in the given data)\n\t\t\t */\n\t\t\tnumberOfVariants?: number;\n\t\t\t/**\n\t\t\t * the option number of the color paring\n\t\t\t */\n\t\t\toption?: number;\n\t\t};\n\t\t/*\n\t\t * options related to gradient\n\t\t * e.g. { enabled: true }\n\t\t */\n\t\tgradient?: object;\n\t};\n}\n\n/**\n * Options common to any chart with an axis\n */\nexport interface AxisChartOptions extends BaseChartOptions {\n\taxes?: AxesOptions;\n\tgrid?: GridOptions;\n\ttimeScale?: TimeScaleOptions;\n\t/**\n\t * zoombar configuration\n\t */\n\tzoomBar?: ZoomBarsOptions;\n}\n\n/**\n * options specific to boxplot charts\n */\nexport interface BoxplotChartOptions extends AxisChartOptions {}\n\n/**\n * options specific to bar charts\n */\nexport interface BarChartOptions extends AxisChartOptions {\n\tbars?: BarOptions;\n}\n\n/**\n * options specific to stacked bar charts\n */\nexport interface StackedBarChartOptions extends BarChartOptions {\n\tbars?: StackedBarOptions;\n}\n\n/**\n * options specific to scatter charts\n */\nexport interface ScatterChartOptions extends AxisChartOptions {\n\t/**\n\t * options for the points\n\t */\n\tpoints?: {\n\t\t/**\n\t\t * sets the radius of the point\n\t\t */\n\t\tradius: number;\n\t\tfillOpacity?: number;\n\t\tfilled?: boolean;\n\t\tenabled?: boolean;\n\t};\n}\n\n/**\n * options specific to lollipop charts\n */\nexport interface LollipopChartOptions extends ScatterChartOptions {}\n\n/**\n * options specific to bubble charts\n */\nexport interface BubbleChartOptions extends AxisChartOptions {\n\t/**\n\t * options for the individual bubbles\n\t */\n\tbubble?: {\n\t\t/**\n\t\t * the key to lookup in charting data for the bubble radius value\n\t\t */\n\t\tradiusMapsTo?: string;\n\t\t/**\n\t\t * A function that would determine the range of the bubble radius to use\n\t\t * Returns an array with the 1st value being the min and the 2nd value being the max radius\n\t\t */\n\t\tradiusRange?: Function;\n\t\t/**\n\t\t * Opacity of the fills used within each circle\n\t\t */\n\t\tfillOpacity?: number;\n\t\t/**\n\t\t * enabled scatter dot or not\n\t\t */\n\t\tenabled?: boolean;\n\t};\n}\n\n/**\n * options specific to line charts\n */\nexport interface LineChartOptions extends ScatterChartOptions {\n\t/**\n\t * options for the curve of the line\n\t */\n\tcurve?:\n\t\t| string\n\t\t| {\n\t\t\t\tname: string;\n\t\t };\n}\n\n/**\n * options specific to area charts\n */\nexport interface AreaChartOptions extends AxisChartOptions {\n\t/**\n\t * options for the curve of the line\n\t */\n\tcurve?:\n\t\t| string\n\t\t| {\n\t\t\t\tname: string;\n\t\t };\n\t/**\n\t * options to bound the area of the chart\n\t */\n\tbounds?: {\n\t\tupperBoundMapsTo?: string;\n\t\tlowerBoundMapsTo?: string;\n\t};\n}\n\n/**\n * options specific to area charts\n */\nexport interface StackedAreaChartOptions extends ScatterChartOptions {\n\t/**\n\t * options for the curve of the line\n\t */\n\tcurve?:\n\t\t| string\n\t\t| {\n\t\t\t\tname: string;\n\t\t };\n}\n\n/**\n * options specific to pie charts\n */\nexport interface PieChartOptions extends BaseChartOptions {\n\tpie?: {\n\t\tlabels?: {\n\t\t\tformatter?: Function;\n\t\t\tenabled?: Boolean;\n\t\t};\n\t\talignment?: Alignments;\n\t};\n}\n\n/**\n * options specific to gauge charts\n */\nexport interface GaugeChartOptions extends BaseChartOptions {\n\tgauge?: {\n\t\tarcWidth?: number;\n\t\tdeltaArrow?: {\n\t\t\tdirection?: ArrowDirections;\n\t\t\tsize?: Function;\n\t\t\tenabled: Boolean;\n\t\t};\n\t\tstatus?: Statuses;\n\t\tdeltaFontSize?: Function;\n\t\tnumberSpacing?: number;\n\t\tnumberFormatter?: Function;\n\t\tvalueFontSize?: Function;\n\t\ttype?: GaugeTypes;\n\t\talignment?: Alignments;\n\t};\n}\n\n/**\n * options specific to donut charts\n */\nexport interface DonutChartOptions extends PieChartOptions {\n\tdonut?: {\n\t\tcenter?: {\n\t\t\tlabel?: string;\n\t\t\tnumber?: number;\n\t\t\tnumberFontSize?: Function;\n\t\t\ttitleFontSize?: Function;\n\t\t\ttitleYPosition?: Function;\n\t\t\tnumberFormatter?: Function;\n\t\t};\n\t\talignment?: Alignments;\n\t};\n}\n\nexport interface MeterChartOptions extends BaseChartOptions {\n\tmeter?: {\n\t\tpeak?: number;\n\t\tstatus?: {\n\t\t\tranges: Array<{\n\t\t\t\trange: [number, number];\n\t\t\t\tstatus: Statuses;\n\t\t\t}>;\n\t\t};\n\t\theight?: number;\n\t\ttitle?: {\n\t\t\tpercentageIndicator?: {\n\t\t\t\t/**\n\t\t\t\t * rendering of the percentage value relative to the dataset within title\n\t\t\t\t */\n\t\t\t\tenabled?: boolean;\n\t\t\t};\n\t\t};\n\t};\n}\n\n/**\n * options specific to radar charts\n */\nexport interface RadarChartOptions extends BaseChartOptions {\n\tradar?: {\n\t\taxes: {\n\t\t\tangle: string;\n\t\t\tvalue: string;\n\t\t};\n\t\talignment?: Alignments;\n\t};\n}\n\n/**\n * options specific to combo charts\n */\nexport interface ComboChartOptions extends AxisChartOptions {\n\tcomboChartTypes: Array<{\n\t\ttype: ChartTypes | any;\n\t\toptions?: object;\n\t\tcorrespondingDatasets: Array<string>;\n\t}>;\n}\n\n/*\n * options specific to treemap charts\n */\nexport interface TreemapChartOptions extends BaseChartOptions {}\n"]}
@@ -181,3 +181,10 @@ export declare enum ToolbarControlTypes {
181
181
  ZOOM_OUT = "Zoom out",
182
182
  RESET_ZOOM = "Reset zoom"
183
183
  }
184
+ /**
185
+ * enum of title orientations for _vertical axes_
186
+ */
187
+ export declare enum AxisTitleOrientations {
188
+ LEFT = "left",
189
+ RIGHT = "right"
190
+ }
@@ -203,4 +203,12 @@ export var ToolbarControlTypes;
203
203
  ToolbarControlTypes["ZOOM_OUT"] = "Zoom out";
204
204
  ToolbarControlTypes["RESET_ZOOM"] = "Reset zoom";
205
205
  })(ToolbarControlTypes || (ToolbarControlTypes = {}));
206
+ /**
207
+ * enum of title orientations for _vertical axes_
208
+ */
209
+ export var AxisTitleOrientations;
210
+ (function (AxisTitleOrientations) {
211
+ AxisTitleOrientations["LEFT"] = "left";
212
+ AxisTitleOrientations["RIGHT"] = "right";
213
+ })(AxisTitleOrientations || (AxisTitleOrientations = {}));
206
214
  //# sourceMappingURL=../../src/interfaces/enums.js.map
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AM,CAAN,IAAY,mBAIX;AAJD,WAAY,mBAAmB;IAC9B,0CAAmB,CAAA;IACnB,4CAAqB,CAAA;IACrB,gDAAyB,CAAA;AAC1B,CAAC,EAJW,mBAAmB,KAAnB,mBAAmB,QAI9B","sourcesContent":["import * as EventEnums from './events';\nexport const Events = EventEnums;\n\n/**\n * enum of all supported chart themes\n */\nexport enum ChartTheme {\n\tDEFAULT = 'default',\n\tG100 = 'g100',\n\tG90 = 'g90',\n\tG10 = 'g10',\n}\n\n/**\n * enum of all color classname types\n */\nexport enum ColorClassNameTypes {\n\tFILL = 'fill',\n\tSTROKE = 'stroke',\n\tTOOLTIP = 'tooltip',\n}\n\n/**\n * enum of all possible axis positions\n */\nexport enum AxisPositions {\n\tLEFT = 'left',\n\tRIGHT = 'right',\n\tTOP = 'top',\n\tBOTTOM = 'bottom',\n}\n\n/**\n * enum of all possible axis positions\n */\nexport enum ZoomBarTypes {\n\tGRAPH_VIEW = 'graph_view',\n\tSLIDER_VIEW = 'slider_view',\n}\n\n/**\n * enum of all possible truncation types\n */\nexport enum TruncationTypes {\n\tEND_LINE = 'end_line',\n\tMID_LINE = 'mid_line',\n\tFRONT_LINE = 'front_line',\n\tNONE = 'none',\n}\n\n/**\n * enum of all possible cartesian orientations\n * to be used for determining the orientation\n * of graphs being draw over\n * cartesian scales\n */\nexport enum CartesianOrientations {\n\tVERTICAL = 'vertical',\n\tHORIZONTAL = 'horizontal',\n}\n\n/**\n * enum of all possible scale types\n */\nexport enum ScaleTypes {\n\tTIME = 'time',\n\tLINEAR = 'linear',\n\tLOG = 'log',\n\tLABELS = 'labels',\n}\n\n/**\n * enum of all possible legend positions\n */\nexport enum LegendPositions {\n\tRIGHT = 'right',\n\tLEFT = 'left',\n\tTOP = 'top',\n\tBOTTOM = 'bottom',\n}\n\n/**\n * enum of all possible alignments\n */\nexport enum Alignments {\n\tLEFT = 'left',\n\tCENTER = 'center',\n\tRIGHT = 'right',\n}\n\n/**\n * enum of all possible legend orientations\n */\nexport enum LegendOrientations {\n\tHORIZONTAL = 'horizontal',\n\tVERTICAL = 'vertical',\n}\n\n/**\n * enum of all possible layout directions\n */\nexport enum LayoutDirection {\n\tROW = 'row',\n\tCOLUMN = 'column',\n\tROW_REVERSE = 'row-reverse',\n\tCOLUMN_REVERSE = 'column-reverse',\n}\n\n/**\n * enum of all possible layout growth values\n */\nexport enum LayoutGrowth {\n\tFIXED = 'fixed',\n\tPREFERRED = 'preferred',\n\tSTRETCH = 'stretch',\n}\n\n/**\n * enum of all possible callout directions\n */\nexport enum CalloutDirections {\n\tLEFT = 'left',\n\tRIGHT = 'right',\n}\n\n/**\n * enum of all possible skeleton/empty state types\n */\nexport enum Skeletons {\n\tGRID = 'grid',\n\tVERT_OR_HORIZ = 'vertOrHoriz',\n\tPIE = 'pie',\n\tDONUT = 'donut',\n}\n\n/**\n * enum of all possible attributes used to aling text horizontally\n */\nexport enum TextAnchor {\n\tSTART = 'start',\n\tMIDDLE = 'middle',\n\tEND = 'end',\n}\n\n/**\n * enum of all possible attributes used to aling text vertically\n */\nexport enum DominantBaseline {\n\tBASELINE = 'baseline',\n\tMIDDLE = 'middle',\n\tHANGING = 'hanging',\n}\n\nexport enum GaugeTypes {\n\tSEMI = 'semi',\n\tFULL = 'full',\n}\n\n/**\n * enum of all possible callout directions\n */\nexport enum ArrowDirections {\n\tUP = 'up',\n\tDOWN = 'down',\n}\n\n/**\n * enum of carbon statuses\n */\nexport enum Statuses {\n\tSUCCESS = 'success',\n\tWARNING = 'warning',\n\tDANGER = 'danger',\n}\n\n/**\n * enum of axis ticks rotation\n */\nexport enum TickRotations {\n\tALWAYS = 'always',\n\tAUTO = 'auto',\n\tNEVER = 'never',\n}\n\n/**\n * enum of chartTypes that work with combo chart\n */\nexport enum ChartTypes {\n\tSCATTER = 'scatter',\n\tLINE = 'line',\n\tSIMPLE_BAR = 'simple-bar',\n\tSTACKED_BAR = 'stacked-bar',\n\tGROUPED_BAR = 'grouped-bar',\n\tAREA = 'area',\n\tSTACKED_AREA = 'stacked-area',\n}\n/**\n * enum of supported toolbar control types\n */\nexport enum ToolbarControlTypes {\n\tZOOM_IN = 'Zoom in',\n\tZOOM_OUT = 'Zoom out',\n\tRESET_ZOOM = 'Reset zoom',\n}\n"]}
1
+ {"version":3,"file":"enums.js","sourceRoot":"","sources":["enums.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,UAAU,MAAM,UAAU,CAAC;AACvC,MAAM,CAAC,IAAM,MAAM,GAAG,UAAU,CAAC;AAEjC;;GAEG;AACH,MAAM,CAAN,IAAY,UAKX;AALD,WAAY,UAAU;IACrB,iCAAmB,CAAA;IACnB,2BAAa,CAAA;IACb,yBAAW,CAAA;IACX,yBAAW,CAAA;AACZ,CAAC,EALW,UAAU,KAAV,UAAU,QAKrB;AAED;;GAEG;AACH,MAAM,CAAN,IAAY,mBAIX;AAJD,WAAY,mBAAmB;IAC9B,oCAAa,CAAA;IACb,wCAAiB,CAAA;IACjB,0CAAmB,CAAA;AACpB,CAAC,EAJW,mBAAmB,KAAnB,mBAAmB,QAI9B;AAED;;GAEG;AACH,MAAM,CAAN,IAAY,aAKX;AALD,WAAY,aAAa;IACxB,8BAAa,CAAA;IACb,gCAAe,CAAA;IACf,4BAAW,CAAA;IACX,kCAAiB,CAAA;AAClB,CAAC,EALW,aAAa,KAAb,aAAa,QAKxB;AAED;;GAEG;AACH,MAAM,CAAN,IAAY,YAGX;AAHD,WAAY,YAAY;IACvB,yCAAyB,CAAA;IACzB,2CAA2B,CAAA;AAC5B,CAAC,EAHW,YAAY,KAAZ,YAAY,QAGvB;AAED;;GAEG;AACH,MAAM,CAAN,IAAY,eAKX;AALD,WAAY,eAAe;IAC1B,wCAAqB,CAAA;IACrB,wCAAqB,CAAA;IACrB,4CAAyB,CAAA;IACzB,gCAAa,CAAA;AACd,CAAC,EALW,eAAe,KAAf,eAAe,QAK1B;AAED;;;;;GAKG;AACH,MAAM,CAAN,IAAY,qBAGX;AAHD,WAAY,qBAAqB;IA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AAA;IACzB,yCAA2B,CAAA;IAC3B,yCAA2B,CAAA;IAC3B,2BAAa,CAAA;IACb,2CAA6B,CAAA;AAC9B,CAAC,EARW,UAAU,KAAV,UAAU,QAQrB;AACD;;GAEG;AACH,MAAM,CAAN,IAAY,mBAIX;AAJD,WAAY,mBAAmB;IAC9B,0CAAmB,CAAA;IACnB,4CAAqB,CAAA;IACrB,gDAAyB,CAAA;AAC1B,CAAC,EAJW,mBAAmB,KAAnB,mBAAmB,QAI9B;AACD;;GAEG;AACH,MAAM,CAAN,IAAY,qBAGX;AAHD,WAAY,qBAAqB;IAChC,sCAAa,CAAA;IACb,wCAAe,CAAA;AAChB,CAAC,EAHW,qBAAqB,KAArB,qBAAqB,QAGhC","sourcesContent":["import * as EventEnums from './events';\nexport const Events = EventEnums;\n\n/**\n * enum of all supported chart themes\n */\nexport enum ChartTheme {\n\tDEFAULT = 'default',\n\tG100 = 'g100',\n\tG90 = 'g90',\n\tG10 = 'g10',\n}\n\n/**\n * enum of all color classname types\n */\nexport enum ColorClassNameTypes {\n\tFILL = 'fill',\n\tSTROKE = 'stroke',\n\tTOOLTIP = 'tooltip',\n}\n\n/**\n * enum of all possible axis positions\n */\nexport enum AxisPositions {\n\tLEFT = 'left',\n\tRIGHT = 'right',\n\tTOP = 'top',\n\tBOTTOM = 'bottom',\n}\n\n/**\n * enum of all possible axis positions\n */\nexport enum ZoomBarTypes {\n\tGRAPH_VIEW = 'graph_view',\n\tSLIDER_VIEW = 'slider_view',\n}\n\n/**\n * enum of all possible truncation types\n */\nexport enum TruncationTypes {\n\tEND_LINE = 'end_line',\n\tMID_LINE = 'mid_line',\n\tFRONT_LINE = 'front_line',\n\tNONE = 'none',\n}\n\n/**\n * enum of all possible cartesian orientations\n * to be used for determining the orientation\n * of graphs being draw over\n * cartesian scales\n */\nexport enum CartesianOrientations {\n\tVERTICAL = 'vertical',\n\tHORIZONTAL = 'horizontal',\n}\n\n/**\n * enum of all possible scale types\n */\nexport enum ScaleTypes {\n\tTIME = 'time',\n\tLINEAR = 'linear',\n\tLOG = 'log',\n\tLABELS = 'labels',\n}\n\n/**\n * enum of all possible legend positions\n */\nexport enum LegendPositions {\n\tRIGHT = 'right',\n\tLEFT = 'left',\n\tTOP = 'top',\n\tBOTTOM = 'bottom',\n}\n\n/**\n * enum of all possible alignments\n */\nexport enum Alignments {\n\tLEFT = 'left',\n\tCENTER = 'center',\n\tRIGHT = 'right',\n}\n\n/**\n * enum of all possible legend orientations\n */\nexport enum LegendOrientations {\n\tHORIZONTAL = 'horizontal',\n\tVERTICAL = 'vertical',\n}\n\n/**\n * enum of all possible layout directions\n */\nexport enum LayoutDirection {\n\tROW = 'row',\n\tCOLUMN = 'column',\n\tROW_REVERSE = 'row-reverse',\n\tCOLUMN_REVERSE = 'column-reverse',\n}\n\n/**\n * enum of all possible layout growth values\n */\nexport enum LayoutGrowth {\n\tFIXED = 'fixed',\n\tPREFERRED = 'preferred',\n\tSTRETCH = 'stretch',\n}\n\n/**\n * enum of all possible callout directions\n */\nexport enum CalloutDirections {\n\tLEFT = 'left',\n\tRIGHT = 'right',\n}\n\n/**\n * enum of all possible skeleton/empty state types\n */\nexport enum Skeletons {\n\tGRID = 'grid',\n\tVERT_OR_HORIZ = 'vertOrHoriz',\n\tPIE = 'pie',\n\tDONUT = 'donut',\n}\n\n/**\n * enum of all possible attributes used to aling text horizontally\n */\nexport enum TextAnchor {\n\tSTART = 'start',\n\tMIDDLE = 'middle',\n\tEND = 'end',\n}\n\n/**\n * enum of all possible attributes used to aling text vertically\n */\nexport enum DominantBaseline {\n\tBASELINE = 'baseline',\n\tMIDDLE = 'middle',\n\tHANGING = 'hanging',\n}\n\nexport enum GaugeTypes {\n\tSEMI = 'semi',\n\tFULL = 'full',\n}\n\n/**\n * enum of all possible callout directions\n */\nexport enum ArrowDirections {\n\tUP = 'up',\n\tDOWN = 'down',\n}\n\n/**\n * enum of carbon statuses\n */\nexport enum Statuses {\n\tSUCCESS = 'success',\n\tWARNING = 'warning',\n\tDANGER = 'danger',\n}\n\n/**\n * enum of axis ticks rotation\n */\nexport enum TickRotations {\n\tALWAYS = 'always',\n\tAUTO = 'auto',\n\tNEVER = 'never',\n}\n\n/**\n * enum of chartTypes that work with combo chart\n */\nexport enum ChartTypes {\n\tSCATTER = 'scatter',\n\tLINE = 'line',\n\tSIMPLE_BAR = 'simple-bar',\n\tSTACKED_BAR = 'stacked-bar',\n\tGROUPED_BAR = 'grouped-bar',\n\tAREA = 'area',\n\tSTACKED_AREA = 'stacked-area',\n}\n/**\n * enum of supported toolbar control types\n */\nexport enum ToolbarControlTypes {\n\tZOOM_IN = 'Zoom in',\n\tZOOM_OUT = 'Zoom out',\n\tRESET_ZOOM = 'Reset zoom',\n}\n/**\n * enum of title orientations for _vertical axes_\n */\nexport enum AxisTitleOrientations {\n\tLEFT = 'left',\n\tRIGHT = 'right',\n}\n"]}
@@ -80,6 +80,19 @@ export declare enum Bar {
80
80
  BAR_CLICK = "bar-click",
81
81
  BAR_MOUSEOUT = "bar-mouseout"
82
82
  }
83
+ /**
84
+ * enum of all boxplot graph events
85
+ */
86
+ export declare enum Boxplot {
87
+ BOX_MOUSEOVER = "box-mouseover",
88
+ BOX_MOUSEMOVE = "box-mousemove",
89
+ BOX_CLICK = "box-click",
90
+ BOX_MOUSEOUT = "box-mouseout",
91
+ OUTLIER_MOUSEOVER = "outlier-mouseover",
92
+ OUTLIER_MOUSEMOVE = "outlier-mousemove",
93
+ OUTLIER_CLICK = "outlier-click",
94
+ OUTLIER_MOUSEOUT = "outlier-mouseout"
95
+ }
83
96
  /**
84
97
  * enum of all scatter graph events
85
98
  */
@@ -92,6 +92,20 @@ export var Bar;
92
92
  Bar["BAR_CLICK"] = "bar-click";
93
93
  Bar["BAR_MOUSEOUT"] = "bar-mouseout";
94
94
  })(Bar || (Bar = {}));
95
+ /**
96
+ * enum of all boxplot graph events
97
+ */
98
+ export var Boxplot;
99
+ (function (Boxplot) {
100
+ Boxplot["BOX_MOUSEOVER"] = "box-mouseover";
101
+ Boxplot["BOX_MOUSEMOVE"] = "box-mousemove";
102
+ Boxplot["BOX_CLICK"] = "box-click";
103
+ Boxplot["BOX_MOUSEOUT"] = "box-mouseout";
104
+ Boxplot["OUTLIER_MOUSEOVER"] = "outlier-mouseover";
105
+ Boxplot["OUTLIER_MOUSEMOVE"] = "outlier-mousemove";
106
+ Boxplot["OUTLIER_CLICK"] = "outlier-click";
107
+ Boxplot["OUTLIER_MOUSEOUT"] = "outlier-mouseout";
108
+ })(Boxplot || (Boxplot = {}));
95
109
  /**
96
110
  * enum of all scatter graph events
97
111
  */
@@ -1 +1 @@
1
- {"version":3,"file":"events.js","sourceRoot":"","sources":["events.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,CAAN,IAAY,KAOX;AAPD,WAAY,KAAK;IAChB,4CAAmC,CAAA;IACnC,gCAAuB,CAAA;IACvB,sCAA6B,CAAA;IAC7B,iCAAiC;IACjC,yBAAyB;IACzB,oCAA2B,CAAA;AAC5B,CAAC,EAPW,KAAK,KAAL,KAAK,QAOhB;AAED;;GAEG;AACH,MAAM,CAAN,IAAY,KAEX;AAFD,WAAY,KAAK;IAChB,gCAAuB,CAAA;AACxB,CAAC,EAFW,KAAK,KAAL,KAAK,QAEhB;AAED;;GAEG;AACH,MAAM,CAAN,IAAY,OAGX;AAHD,WAAY,OAAO;IAClB,4DAAiD,CAAA;IACjD,4DAAiD,CAAA;AAClD,CAAC,EAHW,OAAO,KAAP,OAAO,QAGlB;AAED;;GAEG;AACH,MAAM,CAAN,IAAY,OAKX;AALD,WAAY,OAAO;IAClB,qCAA0B,CAAA;IAC1B,uDAA4C,CAAA;IAC5C,mEAAwD,CAAA;IACxD,mDAAwC,CAAA;AACzC,CAAC,EALW,OAAO,KAAP,OAAO,QAKlB;AAED;;GAEG;AACH,MAAM,CAAN,IAAY,UAEX;AAFD,WAAY,UAAU;IACrB,2CAA6B,CAAA;AAC9B,CAAC,EAFW,UAAU,KAAV,UAAU,QAErB;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pC,CAAC,EALW,IAAI,KAAJ,IAAI,QAKf;AAED;;GAEG;AACH,MAAM,CAAN,IAAY,KAKX;AALD,WAAY,KAAK;IAChB,oDAA2C,CAAA;IAC3C,oDAA2C,CAAA;IAC3C,4CAAmC,CAAA;IACnC,kDAAyC,CAAA;AAC1C,CAAC,EALW,KAAK,KAAL,KAAK,QAKhB;AAED;;GAEG;AACH,MAAM,CAAN,IAAY,OAKX;AALD,WAAY,OAAO;IAClB,4CAAiC,CAAA;IACjC,4CAAiC,CAAA;IACjC,oCAAyB,CAAA;IACzB,0CAA+B,CAAA;AAChC,CAAC,EALW,OAAO,KAAP,OAAO,QAKlB;AAED;;GAEG;AACH,MAAM,CAAN,IAAY,OAIX;AAJD,WAAY,OAAO;IAClB,gCAAqB,CAAA;IACrB,gCAAqB,CAAA;IACrB,gCAAqB,CAAA;AACtB,CAAC,EAJW,OAAO,KAAP,OAAO,QAIlB;AAED;;GAEG;AACH,MAAM,CAAN,IAAY,SAGX;AAHD,WAAY,SAAS;IACpB,oCAAuB,CAAA;IACvB,oCAAuB,CAAA;AACxB,CAAC,EAHW,SAAS,KAAT,SAAS,QAGpB;AAED;;GAEG;AACH,MAAM,CAAN,IAAY,MAKX;AALD,WAAY,MAAM;IACjB,4CAAkC,CAAA;IAClC,4CAAkC,CAAA;IAClC,kDAAwC,CAAA;IACxC,8CAAoC,CAAA;AACrC,CAAC,EALW,MAAM,KAAN,MAAM,QAKjB","sourcesContent":["/**\n * enum of all events related to the chart on the DOM\n */\nexport enum Chart {\n\tRENDER_FINISHED = 'render-finished',\n\tRESIZE = 'chart-resize',\n\tMOUSEOVER = 'chart-mouseover',\n\t// MOUSEMOVE = \"chart-mousemove\",\n\t// CLICK = \"chart-click\",\n\tMOUSEOUT = 'chart-mouseout',\n}\n\n/**\n * enum of all events related to the chart model\n */\nexport enum Model {\n\tUPDATE = 'model-update',\n}\n\n/**\n * enum of all toolbar events\n */\nexport enum Toolbar {\n\tSHOW_OVERFLOW_MENU = 'show-toolbar-overflow-menu',\n\tHIDE_OVERFLOW_MENU = 'hide-toolbar-overflow-menu',\n}\n\n/**\n * enum of all events related to the zoom-bar\n */\nexport enum ZoomBar {\n\tUPDATE = 'zoom-bar-update',\n\tSELECTION_START = 'zoom-bar-selection-start',\n\tSELECTION_IN_PROGRESS = 'zoom-bar-selection-in-progress',\n\tSELECTION_END = 'zoom-bar-selection-end',\n}\n\n/**\n * enum of all events related to the zoom domain\n */\nexport enum ZoomDomain {\n\tCHANGE = 'zoom-domain-change',\n}\n\n/**\n * enum of all axis-related events\n */\nexport enum Axis {\n\tLABEL_MOUSEOVER = 'axis-label-mouseover',\n\tLABEL_MOUSEMOVE = 'axis-label-mousemove',\n\tLABEL_CLICK = 'axis-label-click',\n\tLABEL_MOUSEOUT = 'axis-label-mouseout',\n}\n\n/**\n * enum of all area graph events\n */\nexport enum Area {\n\tAREA_MOUSEOVER = 'area-mouseover',\n\tAREA_MOUSEMOVE = 'area-mousemove',\n\tAREA_CLICK = 'area-click',\n\tAREA_MOUSEOUT = 'area-mouseout',\n}\n\n/**\n * enum of all pie graph events\n */\nexport enum Pie {\n\tSLICE_MOUSEOVER = 'pie-slice-mouseover',\n\tSLICE_MOUSEMOVE = 'pie-slice-mousemove',\n\tSLICE_CLICK = 'pie-slice-click',\n\tSLICE_MOUSEOUT = 'pie-slice-mouseout',\n}\n\n/**\n * enum of all gauge graph events\n */\nexport enum Gauge {\n\tARC_MOUSEOVER = 'gauge-arc-mouseover',\n\tARC_MOUSEMOVE = 'gauge-arc-mousemove',\n\tARC_CLICK = 'gauge-arc-click',\n\tARC_MOUSEOUT = 'gauge-arc-mouseout',\n}\n\n/**\n * enum of all bar graph events\n */\nexport enum Bar {\n\tBAR_MOUSEOVER = 'bar-mouseover',\n\tBAR_MOUSEMOVE = 'bar-mousemove',\n\tBAR_CLICK = 'bar-click',\n\tBAR_MOUSEOUT = 'bar-mouseout',\n}\n\n/**\n * enum of all scatter graph events\n */\nexport enum Scatter {\n\tSCATTER_MOUSEOVER = 'scatter-mouseover',\n\tSCATTER_MOUSEMOVE = 'scatter-mousemove',\n\tSCATTER_CLICK = 'scatter-click',\n\tSCATTER_MOUSEOUT = 'scatter-mouseout',\n}\n\n/**\n * enum of all line graph events\n */\nexport enum Line {\n\tPOINT_MOUSEOVER = 'scatter-mouseover',\n\tPOINT_MOUSEMOVE = 'scatter-mousemove',\n\tPOINT_CLICK = 'scatter-click',\n\tPOINT_MOUSEOUT = 'scatter-mouseout',\n}\n\n/**\n * enum of all radar graph events\n */\nexport enum Radar {\n\tX_AXIS_MOUSEOVER = 'radar-x-axis-mouseover',\n\tX_AXIS_MOUSEMOVE = 'radar-x-axis-mousemove',\n\tX_AXIS_CLICK = 'radar-x-axis-click',\n\tX_AXIS_MOUSEOUT = 'radar-x-axis-mouseout',\n}\n\n/**\n * enum of all treemap graph events\n */\nexport enum Treemap {\n\tLEAF_MOUSEOVER = 'leaf-mouseover',\n\tLEAF_MOUSEMOVE = 'leaf-mousemove',\n\tLEAF_CLICK = 'leaf-click',\n\tLEAF_MOUSEOUT = 'leaf-mouseout',\n}\n\n/**\n * enum of all tooltip events\n */\nexport enum Tooltip {\n\tSHOW = 'show-tooltip',\n\tMOVE = 'move-tooltip',\n\tHIDE = 'hide-tooltip',\n}\n\n/**\n * enum of all threshold events\n */\nexport enum Threshold {\n\tSHOW = 'show-threshold',\n\tHIDE = 'hide-threshold',\n}\n\n/**\n * enum of all legend related events\n */\nexport enum Legend {\n\tITEM_HOVER = 'legend-item-onhover',\n\tITEM_CLICK = 'legend-item-onclick',\n\tITEM_MOUSEOUT = 'legend-item-onmouseout',\n\tITEMS_UPDATE = 'legend-items-update',\n}\n"]}
1
+ {"version":3,"file":"events.js","sourceRoot":"","sources":["events.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,CAAN,IAAY,KAOX;AAPD,WAAY,KAAK;IAChB,4CAAmC,CAAA;IACnC,gCAAuB,CAAA;IACvB,sCAA6B,CAAA;IAC7B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ACjC,4CAAiC,CAAA;IACjC,oCAAyB,CAAA;IACzB,0CAA+B,CAAA;AAChC,CAAC,EALW,OAAO,KAAP,OAAO,QAKlB;AAED;;GAEG;AACH,MAAM,CAAN,IAAY,OAIX;AAJD,WAAY,OAAO;IAClB,gCAAqB,CAAA;IACrB,gCAAqB,CAAA;IACrB,gCAAqB,CAAA;AACtB,CAAC,EAJW,OAAO,KAAP,OAAO,QAIlB;AAED;;GAEG;AACH,MAAM,CAAN,IAAY,SAGX;AAHD,WAAY,SAAS;IACpB,oCAAuB,CAAA;IACvB,oCAAuB,CAAA;AACxB,CAAC,EAHW,SAAS,KAAT,SAAS,QAGpB;AAED;;GAEG;AACH,MAAM,CAAN,IAAY,MAKX;AALD,WAAY,MAAM;IACjB,4CAAkC,CAAA;IAClC,4CAAkC,CAAA;IAClC,kDAAwC,CAAA;IACxC,8CAAoC,CAAA;AACrC,CAAC,EALW,MAAM,KAAN,MAAM,QAKjB","sourcesContent":["/**\n * enum of all events related to the chart on the DOM\n */\nexport enum Chart {\n\tRENDER_FINISHED = 'render-finished',\n\tRESIZE = 'chart-resize',\n\tMOUSEOVER = 'chart-mouseover',\n\t// MOUSEMOVE = \"chart-mousemove\",\n\t// CLICK = \"chart-click\",\n\tMOUSEOUT = 'chart-mouseout',\n}\n\n/**\n * enum of all events related to the chart model\n */\nexport enum Model {\n\tUPDATE = 'model-update',\n}\n\n/**\n * enum of all toolbar events\n */\nexport enum Toolbar {\n\tSHOW_OVERFLOW_MENU = 'show-toolbar-overflow-menu',\n\tHIDE_OVERFLOW_MENU = 'hide-toolbar-overflow-menu',\n}\n\n/**\n * enum of all events related to the zoom-bar\n */\nexport enum ZoomBar {\n\tUPDATE = 'zoom-bar-update',\n\tSELECTION_START = 'zoom-bar-selection-start',\n\tSELECTION_IN_PROGRESS = 'zoom-bar-selection-in-progress',\n\tSELECTION_END = 'zoom-bar-selection-end',\n}\n\n/**\n * enum of all events related to the zoom domain\n */\nexport enum ZoomDomain {\n\tCHANGE = 'zoom-domain-change',\n}\n\n/**\n * enum of all axis-related events\n */\nexport enum Axis {\n\tLABEL_MOUSEOVER = 'axis-label-mouseover',\n\tLABEL_MOUSEMOVE = 'axis-label-mousemove',\n\tLABEL_CLICK = 'axis-label-click',\n\tLABEL_MOUSEOUT = 'axis-label-mouseout',\n}\n\n/**\n * enum of all area graph events\n */\nexport enum Area {\n\tAREA_MOUSEOVER = 'area-mouseover',\n\tAREA_MOUSEMOVE = 'area-mousemove',\n\tAREA_CLICK = 'area-click',\n\tAREA_MOUSEOUT = 'area-mouseout',\n}\n\n/**\n * enum of all pie graph events\n */\nexport enum Pie {\n\tSLICE_MOUSEOVER = 'pie-slice-mouseover',\n\tSLICE_MOUSEMOVE = 'pie-slice-mousemove',\n\tSLICE_CLICK = 'pie-slice-click',\n\tSLICE_MOUSEOUT = 'pie-slice-mouseout',\n}\n\n/**\n * enum of all gauge graph events\n */\nexport enum Gauge {\n\tARC_MOUSEOVER = 'gauge-arc-mouseover',\n\tARC_MOUSEMOVE = 'gauge-arc-mousemove',\n\tARC_CLICK = 'gauge-arc-click',\n\tARC_MOUSEOUT = 'gauge-arc-mouseout',\n}\n\n/**\n * enum of all bar graph events\n */\nexport enum Bar {\n\tBAR_MOUSEOVER = 'bar-mouseover',\n\tBAR_MOUSEMOVE = 'bar-mousemove',\n\tBAR_CLICK = 'bar-click',\n\tBAR_MOUSEOUT = 'bar-mouseout',\n}\n\n/**\n * enum of all boxplot graph events\n */\nexport enum Boxplot {\n\tBOX_MOUSEOVER = 'box-mouseover',\n\tBOX_MOUSEMOVE = 'box-mousemove',\n\tBOX_CLICK = 'box-click',\n\tBOX_MOUSEOUT = 'box-mouseout',\n\tOUTLIER_MOUSEOVER = 'outlier-mouseover',\n\tOUTLIER_MOUSEMOVE = 'outlier-mousemove',\n\tOUTLIER_CLICK = 'outlier-click',\n\tOUTLIER_MOUSEOUT = 'outlier-mouseout',\n}\n\n/**\n * enum of all scatter graph events\n */\nexport enum Scatter {\n\tSCATTER_MOUSEOVER = 'scatter-mouseover',\n\tSCATTER_MOUSEMOVE = 'scatter-mousemove',\n\tSCATTER_CLICK = 'scatter-click',\n\tSCATTER_MOUSEOUT = 'scatter-mouseout',\n}\n\n/**\n * enum of all line graph events\n */\nexport enum Line {\n\tPOINT_MOUSEOVER = 'scatter-mouseover',\n\tPOINT_MOUSEMOVE = 'scatter-mousemove',\n\tPOINT_CLICK = 'scatter-click',\n\tPOINT_MOUSEOUT = 'scatter-mouseout',\n}\n\n/**\n * enum of all radar graph events\n */\nexport enum Radar {\n\tX_AXIS_MOUSEOVER = 'radar-x-axis-mouseover',\n\tX_AXIS_MOUSEMOVE = 'radar-x-axis-mousemove',\n\tX_AXIS_CLICK = 'radar-x-axis-click',\n\tX_AXIS_MOUSEOUT = 'radar-x-axis-mouseout',\n}\n\n/**\n * enum of all treemap graph events\n */\nexport enum Treemap {\n\tLEAF_MOUSEOVER = 'leaf-mouseover',\n\tLEAF_MOUSEMOVE = 'leaf-mousemove',\n\tLEAF_CLICK = 'leaf-click',\n\tLEAF_MOUSEOUT = 'leaf-mouseout',\n}\n\n/**\n * enum of all tooltip events\n */\nexport enum Tooltip {\n\tSHOW = 'show-tooltip',\n\tMOVE = 'move-tooltip',\n\tHIDE = 'hide-tooltip',\n}\n\n/**\n * enum of all threshold events\n */\nexport enum Threshold {\n\tSHOW = 'show-threshold',\n\tHIDE = 'hide-threshold',\n}\n\n/**\n * enum of all legend related events\n */\nexport enum Legend {\n\tITEM_HOVER = 'legend-item-onhover',\n\tITEM_CLICK = 'legend-item-onclick',\n\tITEM_MOUSEOUT = 'legend-item-onmouseout',\n\tITEMS_UPDATE = 'legend-items-update',\n}\n"]}
@@ -0,0 +1,12 @@
1
+ import { ChartModelCartesian } from './model-cartesian-charts';
2
+ /** The charting model layer which includes mainly the chart data and options,
3
+ * as well as some misc. information to be shared among components */
4
+ export declare class BoxplotChartModel extends ChartModelCartesian {
5
+ constructor(services: any);
6
+ getBoxQuartiles(d: any): {
7
+ q_25: number;
8
+ q_50: number;
9
+ q_75: number;
10
+ };
11
+ getBoxplotData(): any[];
12
+ }
@@ -0,0 +1,99 @@
1
+ var __extends = (this && this.__extends) || (function () {
2
+ var extendStatics = function (d, b) {
3
+ extendStatics = Object.setPrototypeOf ||
4
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
+ return extendStatics(d, b);
7
+ };
8
+ return function (d, b) {
9
+ extendStatics(d, b);
10
+ function __() { this.constructor = d; }
11
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12
+ };
13
+ })();
14
+ // Internal Imports
15
+ import { ChartModelCartesian } from './model-cartesian-charts';
16
+ // D3 Imports
17
+ import { ascending, min, max, quantile } from 'd3-array';
18
+ /** The charting model layer which includes mainly the chart data and options,
19
+ * as well as some misc. information to be shared among components */
20
+ var BoxplotChartModel = /** @class */ (function (_super) {
21
+ __extends(BoxplotChartModel, _super);
22
+ function BoxplotChartModel(services) {
23
+ return _super.call(this, services) || this;
24
+ }
25
+ BoxplotChartModel.prototype.getBoxQuartiles = function (d) {
26
+ return {
27
+ q_25: quantile(d, 0.25),
28
+ q_50: quantile(d, 0.5),
29
+ q_75: quantile(d, 0.75),
30
+ };
31
+ };
32
+ BoxplotChartModel.prototype.getBoxplotData = function () {
33
+ var options = this.getOptions();
34
+ var groupMapsTo = options.data.groupMapsTo;
35
+ var groupedData = this.getGroupedData();
36
+ // Prepare the data for the box plots
37
+ var boxplotData = [];
38
+ var _loop_1 = function (group, data) {
39
+ var _a;
40
+ var rangeIdentifier = this_1.services.cartesianScales.getRangeIdentifier();
41
+ var values = data.map(function (d) { return d[rangeIdentifier]; }).sort(ascending);
42
+ var record = (_a = {},
43
+ _a[groupMapsTo] = group,
44
+ _a.counts = values,
45
+ _a.quartiles = this_1.getBoxQuartiles(values),
46
+ _a.outliers = null,
47
+ _a.whiskers = null,
48
+ _a);
49
+ var q1 = record.quartiles.q_25;
50
+ var q3 = record.quartiles.q_75;
51
+ var iqr = (q3 - q1) * 1.5;
52
+ var irq1 = q1 - iqr;
53
+ var irq3 = q3 + iqr;
54
+ var outliers = [];
55
+ var normalValues = [];
56
+ for (var _i = 0, values_1 = values; _i < values_1.length; _i++) {
57
+ var value = values_1[_i];
58
+ if (value < irq1) {
59
+ outliers.push(value);
60
+ }
61
+ else if (value > irq3) {
62
+ outliers.push(value);
63
+ }
64
+ else {
65
+ normalValues.push(value);
66
+ }
67
+ }
68
+ record.outliers = outliers;
69
+ var minNormalValue = min(normalValues);
70
+ var maxNormalValue = max(normalValues);
71
+ record.whiskers = {
72
+ min: minNormalValue
73
+ ? minNormalValue
74
+ : min([
75
+ record.quartiles.q_25,
76
+ record.quartiles.q_50,
77
+ record.quartiles.q_75,
78
+ ]),
79
+ max: maxNormalValue
80
+ ? maxNormalValue
81
+ : max([
82
+ record.quartiles.q_25,
83
+ record.quartiles.q_50,
84
+ record.quartiles.q_75,
85
+ ]),
86
+ };
87
+ boxplotData.push(record);
88
+ };
89
+ var this_1 = this;
90
+ for (var _i = 0, groupedData_1 = groupedData; _i < groupedData_1.length; _i++) {
91
+ var _a = groupedData_1[_i], group = _a.name, data = _a.data;
92
+ _loop_1(group, data);
93
+ }
94
+ return boxplotData;
95
+ };
96
+ return BoxplotChartModel;
97
+ }(ChartModelCartesian));
98
+ export { BoxplotChartModel };
99
+ //# sourceMappingURL=../src/model-boxplot.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"model-boxplot.js","sourceRoot":"","sources":["model-boxplot.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,mBAAmB;AACnB,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAE/D,aAAa;AACb,OAAO,EAAE,SAAS,EAAE,GAAG,EAAE,GAAG,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEzD;qEACqE;AACrE;IAAuC,qCAAmB;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AAC;IACpB,CAAC;IACF,wBAAC;AAAD,CAAC,AA/ED,CAAuC,mBAAmB,GA+EzD","sourcesContent":["// Internal Imports\nimport { ChartModelCartesian } from './model-cartesian-charts';\n\n// D3 Imports\nimport { ascending, min, max, quantile } from 'd3-array';\n\n/** The charting model layer which includes mainly the chart data and options,\n * as well as some misc. information to be shared among components */\nexport class BoxplotChartModel extends ChartModelCartesian {\n\tconstructor(services: any) {\n\t\tsuper(services);\n\t}\n\n\tgetBoxQuartiles(d) {\n\t\treturn {\n\t\t\tq_25: quantile(d, 0.25),\n\t\t\tq_50: quantile(d, 0.5),\n\t\t\tq_75: quantile(d, 0.75),\n\t\t};\n\t}\n\n\tgetBoxplotData() {\n\t\tconst options = this.getOptions();\n\t\tconst { groupMapsTo } = options.data;\n\n\t\tconst groupedData = this.getGroupedData();\n\n\t\t// Prepare the data for the box plots\n\t\tconst boxplotData = [];\n\t\tfor (const { name: group, data } of groupedData) {\n\t\t\tconst rangeIdentifier = this.services.cartesianScales.getRangeIdentifier();\n\t\t\tconst values = data.map((d) => d[rangeIdentifier]).sort(ascending);\n\n\t\t\tconst record = {\n\t\t\t\t[groupMapsTo]: group,\n\t\t\t\tcounts: values,\n\t\t\t\tquartiles: this.getBoxQuartiles(values),\n\t\t\t\toutliers: null,\n\t\t\t\twhiskers: null,\n\t\t\t};\n\n\t\t\tconst q1 = record.quartiles.q_25;\n\t\t\tconst q3 = record.quartiles.q_75;\n\n\t\t\tconst iqr = (q3 - q1) * 1.5;\n\t\t\tconst irq1 = q1 - iqr;\n\t\t\tconst irq3 = q3 + iqr;\n\n\t\t\tconst outliers = [];\n\t\t\tconst normalValues = [];\n\n\t\t\tfor (const value of values) {\n\t\t\t\tif (value < irq1) {\n\t\t\t\t\toutliers.push(value);\n\t\t\t\t} else if (value > irq3) {\n\t\t\t\t\toutliers.push(value);\n\t\t\t\t} else {\n\t\t\t\t\tnormalValues.push(value);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\trecord.outliers = outliers;\n\n\t\t\tconst minNormalValue = min(normalValues);\n\t\t\tconst maxNormalValue = max(normalValues);\n\t\t\trecord.whiskers = {\n\t\t\t\tmin: minNormalValue\n\t\t\t\t\t? minNormalValue\n\t\t\t\t\t: min([\n\t\t\t\t\t\t\trecord.quartiles.q_25,\n\t\t\t\t\t\t\trecord.quartiles.q_50,\n\t\t\t\t\t\t\trecord.quartiles.q_75,\n\t\t\t\t\t ]),\n\t\t\t\tmax: maxNormalValue\n\t\t\t\t\t? maxNormalValue\n\t\t\t\t\t: max([\n\t\t\t\t\t\t\trecord.quartiles.q_25,\n\t\t\t\t\t\t\trecord.quartiles.q_50,\n\t\t\t\t\t\t\trecord.quartiles.q_75,\n\t\t\t\t\t ]),\n\t\t\t};\n\n\t\t\tboxplotData.push(record);\n\t\t}\n\n\t\treturn boxplotData;\n\t}\n}\n"]}
package/model.d.ts CHANGED
@@ -69,7 +69,7 @@ export declare class ChartModel {
69
69
  isUserProvidedColorScaleValid(): any;
70
70
  getColorClassName(configs: {
71
71
  classNameTypes: ColorClassNameTypes[];
72
- dataGroupName: string;
72
+ dataGroupName?: string;
73
73
  originalClassName?: string;
74
74
  }): string;
75
75
  /**
package/model.js CHANGED
@@ -67,9 +67,10 @@ var ChartModel = /** @class */ (function () {
67
67
  }
68
68
  else {
69
69
  var _a = axesOptions[axis].domain, start_1 = _a[0], end_1 = _a[1];
70
- // Filter out data outside domain
70
+ // Filter out data outside domain if that datapoint is using that axis (has mapsTo property)
71
71
  allData = allData.filter(function (datum) {
72
- return datum[mapsTo] >= start_1 && datum[mapsTo] <= end_1;
72
+ return !(mapsTo in datum) ||
73
+ (datum[mapsTo] >= start_1 && datum[mapsTo] <= end_1);
73
74
  });
74
75
  }
75
76
  }