@carbon/charts 0.30.21 → 0.30.25

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 (215) hide show
  1. package/CHANGELOG.md +337 -1035
  2. package/README.md +3 -0
  3. package/axis-chart.js +8 -14
  4. package/axis-chart.js.map +1 -1
  5. package/build/demo/{data/create-codesandbox.d.ts → create-codesandbox.d.ts} +16 -13
  6. package/build/demo/data/bar.d.ts +175 -1
  7. package/build/demo/data/bubble.d.ts +41 -0
  8. package/build/demo/data/donut.d.ts +23 -0
  9. package/build/demo/data/line.d.ts +70 -0
  10. package/build/demo/data/pie.d.ts +13 -0
  11. package/build/demo/data/scatter.d.ts +31 -0
  12. package/build/demo/data/step.d.ts +4 -0
  13. package/build/demo/data/time-series-axis.d.ts +55 -3
  14. package/build/src/components/axes/grid.d.ts +3 -3
  15. package/build/src/components/axes/two-dimensional-axes.d.ts +3 -0
  16. package/build/src/components/essentials/threshold.d.ts +17 -0
  17. package/build/src/components/graphs/bar.d.ts +1 -1
  18. package/build/src/components/graphs/scatter.d.ts +1 -0
  19. package/build/src/components/graphs/skeleton.d.ts +22 -0
  20. package/build/src/components/index.d.ts +2 -0
  21. package/build/src/interfaces/axis-scales.d.ts +22 -11
  22. package/build/src/interfaces/charts.d.ts +5 -0
  23. package/build/src/interfaces/components.d.ts +21 -0
  24. package/build/src/interfaces/enums.d.ts +9 -0
  25. package/build/src/interfaces/events.d.ts +7 -0
  26. package/build/src/model.d.ts +1 -0
  27. package/build/src/services/scales-cartesian.d.ts +9 -1
  28. package/build/stories/tutorials/event-listeners.d.ts +1 -0
  29. package/build/stories/tutorials/index.d.ts +2 -1
  30. package/bundle.js +1 -1
  31. package/chart.js +15 -24
  32. package/chart.js.map +1 -1
  33. package/charts/bar-grouped.js +6 -2
  34. package/charts/bar-grouped.js.map +1 -1
  35. package/charts/bar-simple.js +6 -2
  36. package/charts/bar-simple.js.map +1 -1
  37. package/charts/bar-stacked.js +6 -2
  38. package/charts/bar-stacked.js.map +1 -1
  39. package/charts/bubble.js +6 -2
  40. package/charts/bubble.js.map +1 -1
  41. package/charts/donut.js +6 -2
  42. package/charts/donut.js.map +1 -1
  43. package/charts/line.js +6 -2
  44. package/charts/line.js.map +1 -1
  45. package/charts/pie.js +6 -2
  46. package/charts/pie.js.map +1 -1
  47. package/charts/radar.js +1 -3
  48. package/charts/radar.js.map +1 -1
  49. package/charts/scatter.js +6 -2
  50. package/charts/scatter.js.map +1 -1
  51. package/components/axes/axis.js +93 -43
  52. package/components/axes/axis.js.map +1 -1
  53. package/components/axes/grid.d.ts +3 -3
  54. package/components/axes/grid.js +46 -23
  55. package/components/axes/grid.js.map +1 -1
  56. package/components/axes/ruler.js +7 -5
  57. package/components/axes/ruler.js.map +1 -1
  58. package/components/axes/two-dimensional-axes.d.ts +3 -0
  59. package/components/axes/two-dimensional-axes.js +35 -2
  60. package/components/axes/two-dimensional-axes.js.map +1 -1
  61. package/components/axes/zero-line.js +16 -1
  62. package/components/axes/zero-line.js.map +1 -1
  63. package/components/component.js +2 -4
  64. package/components/component.js.map +1 -1
  65. package/components/essentials/legend.js +46 -23
  66. package/components/essentials/legend.js.map +1 -1
  67. package/components/essentials/threshold.d.ts +17 -0
  68. package/components/essentials/threshold.js +171 -0
  69. package/components/essentials/threshold.js.map +1 -0
  70. package/components/essentials/title.js +6 -4
  71. package/components/essentials/title.js.map +1 -1
  72. package/components/essentials/tooltip-bar.js +39 -20
  73. package/components/essentials/tooltip-bar.js.map +1 -1
  74. package/components/essentials/tooltip-pie.js +4 -3
  75. package/components/essentials/tooltip-pie.js.map +1 -1
  76. package/components/essentials/tooltip-radar.js +6 -3
  77. package/components/essentials/tooltip-radar.js.map +1 -1
  78. package/components/essentials/tooltip-scatter.js +3 -1
  79. package/components/essentials/tooltip-scatter.js.map +1 -1
  80. package/components/essentials/tooltip.js +35 -15
  81. package/components/essentials/tooltip.js.map +1 -1
  82. package/components/graphs/bar-grouped.js +48 -20
  83. package/components/graphs/bar-grouped.js.map +1 -1
  84. package/components/graphs/bar-simple.js +39 -19
  85. package/components/graphs/bar-simple.js.map +1 -1
  86. package/components/graphs/bar-stacked.js +50 -28
  87. package/components/graphs/bar-stacked.js.map +1 -1
  88. package/components/graphs/bar.d.ts +1 -1
  89. package/components/graphs/bar.js +1 -1
  90. package/components/graphs/bar.js.map +1 -1
  91. package/components/graphs/bubble.js +22 -8
  92. package/components/graphs/bubble.js.map +1 -1
  93. package/components/graphs/donut.js +17 -3
  94. package/components/graphs/donut.js.map +1 -1
  95. package/components/graphs/line.js +14 -7
  96. package/components/graphs/line.js.map +1 -1
  97. package/components/graphs/pie.js +80 -44
  98. package/components/graphs/pie.js.map +1 -1
  99. package/components/graphs/radar.js +271 -140
  100. package/components/graphs/radar.js.map +1 -1
  101. package/components/graphs/scatter.d.ts +1 -0
  102. package/components/graphs/scatter.js +80 -19
  103. package/components/graphs/scatter.js.map +1 -1
  104. package/components/graphs/skeleton.d.ts +22 -0
  105. package/components/graphs/skeleton.js +256 -0
  106. package/components/graphs/skeleton.js.map +1 -0
  107. package/components/index.d.ts +2 -0
  108. package/components/index.js +2 -0
  109. package/components/index.js.map +1 -1
  110. package/components/layout/layout.js +38 -26
  111. package/components/layout/layout.js.map +1 -1
  112. package/components/layout/spacer.js +2 -1
  113. package/components/layout/spacer.js.map +1 -1
  114. package/configuration.js +17 -14
  115. package/configuration.js.map +1 -1
  116. package/demo/{data/create-codesandbox.d.ts → create-codesandbox.d.ts} +16 -13
  117. package/demo/{data/create-codesandbox.js → create-codesandbox.js} +24 -21
  118. package/demo/create-codesandbox.js.map +1 -0
  119. package/demo/data/bar.d.ts +175 -1
  120. package/demo/data/bar.js +189 -3
  121. package/demo/data/bar.js.map +1 -1
  122. package/demo/data/bubble.d.ts +41 -0
  123. package/demo/data/bubble.js +48 -3
  124. package/demo/data/bubble.js.map +1 -1
  125. package/demo/data/bundle.js +1 -1
  126. package/demo/data/donut.d.ts +23 -0
  127. package/demo/data/donut.js +25 -0
  128. package/demo/data/donut.js.map +1 -1
  129. package/demo/data/index.js +189 -7
  130. package/demo/data/index.js.map +1 -1
  131. package/demo/data/line.d.ts +70 -0
  132. package/demo/data/line.js +71 -0
  133. package/demo/data/line.js.map +1 -1
  134. package/demo/data/pie.d.ts +13 -0
  135. package/demo/data/pie.js +15 -0
  136. package/demo/data/pie.js.map +1 -1
  137. package/demo/data/radar.js.map +1 -1
  138. package/demo/data/scatter.d.ts +31 -0
  139. package/demo/data/scatter.js +33 -0
  140. package/demo/data/scatter.js.map +1 -1
  141. package/demo/data/step.d.ts +4 -0
  142. package/demo/data/step.js +15 -0
  143. package/demo/data/step.js.map +1 -1
  144. package/demo/data/time-series-axis.d.ts +55 -3
  145. package/demo/data/time-series-axis.js +62 -6
  146. package/demo/data/time-series-axis.js.map +1 -1
  147. package/demo/styles.css +342 -18
  148. package/demo/styles.css.map +1 -1
  149. package/demo/styles.min.css +1 -1
  150. package/demo/styles.min.css.map +1 -1
  151. package/demo/tsconfig.tsbuildinfo +232 -229
  152. package/index.js.map +1 -1
  153. package/interfaces/axis-scales.d.ts +22 -11
  154. package/interfaces/axis-scales.js.map +1 -1
  155. package/interfaces/charts.d.ts +5 -0
  156. package/interfaces/charts.js.map +1 -1
  157. package/interfaces/components.d.ts +21 -0
  158. package/interfaces/components.js.map +1 -1
  159. package/interfaces/enums.d.ts +9 -0
  160. package/interfaces/enums.js +10 -0
  161. package/interfaces/enums.js.map +1 -1
  162. package/interfaces/events.d.ts +7 -0
  163. package/interfaces/events.js +8 -0
  164. package/interfaces/events.js.map +1 -1
  165. package/model.d.ts +1 -0
  166. package/model.js +30 -16
  167. package/model.js.map +1 -1
  168. package/package.json +4 -2
  169. package/polyfills.js +7 -2
  170. package/polyfills.js.map +1 -1
  171. package/services/angle-utils.js +34 -9
  172. package/services/angle-utils.js.map +1 -1
  173. package/services/colors.js.map +1 -1
  174. package/services/curves.js +4 -2
  175. package/services/curves.js.map +1 -1
  176. package/services/essentials/dom-utils.js +4 -3
  177. package/services/essentials/dom-utils.js.map +1 -1
  178. package/services/essentials/transitions.js +3 -4
  179. package/services/essentials/transitions.js.map +1 -1
  180. package/services/scales-cartesian.d.ts +9 -1
  181. package/services/scales-cartesian.js +96 -23
  182. package/services/scales-cartesian.js.map +1 -1
  183. package/services/time-series.js +36 -19
  184. package/services/time-series.js.map +1 -1
  185. package/styles/components/_axis.scss +4 -0
  186. package/styles/components/_layout.scss +0 -1
  187. package/styles/components/_ruler.scss +5 -2
  188. package/styles/components/_skeleton.scss +56 -0
  189. package/styles/components/_threshold.scss +49 -0
  190. package/styles/components/_tooltip.scss +6 -5
  191. package/styles/components/index.scss +2 -0
  192. package/styles/graphs/_bubble.scss +1 -1
  193. package/styles/graphs/_radar.scss +4 -2
  194. package/styles/graphs/_scatter.scss +5 -1
  195. package/styles/mixins.scss +2 -2
  196. package/styles-g10.css +87 -4
  197. package/styles-g10.css.map +1 -1
  198. package/styles-g10.min.css +1 -1
  199. package/styles-g10.min.css.map +1 -1
  200. package/styles-g100.css +87 -4
  201. package/styles-g100.css.map +1 -1
  202. package/styles-g100.min.css +1 -1
  203. package/styles-g100.min.css.map +1 -1
  204. package/styles-g90.css +87 -4
  205. package/styles-g90.css.map +1 -1
  206. package/styles-g90.min.css +1 -1
  207. package/styles-g90.min.css.map +1 -1
  208. package/styles.css +87 -4
  209. package/styles.css.map +1 -1
  210. package/styles.min.css +1 -1
  211. package/styles.min.css.map +1 -1
  212. package/tools.js +25 -7
  213. package/tools.js.map +1 -1
  214. package/tsconfig.tsbuildinfo +169 -106
  215. package/demo/data/create-codesandbox.js.map +0 -1
package/README.md CHANGED
@@ -18,14 +18,17 @@ yarn add @carbon/charts d3
18
18
  ```
19
19
 
20
20
  ## Step-by-step instructions
21
+
21
22
  [Read on carbondesignsystem.com](https://www.carbondesignsystem.com/data-visualization/getting-started/vanilla)
22
23
 
23
24
  ## Codesandbox examples
25
+
24
26
  [Sample use cases can be seen here](https://carbon-design-system.github.io/carbon-charts).
25
27
 
26
28
  **When opening the link above**, click on the **Edit on Codesandbox** button for each demo to see an isolated project showing you how to reproduce the demo.
27
29
 
28
30
  ## Charting data & options
31
+
29
32
  Although we will definitely introduce new models in the future as we start shipping new components such as maps, Data and options follow the same model in all charts, with minor exceptions and differences in specific components.
30
33
 
31
34
  For instance in the case of a donut chart you're able to pass in an additional field called `center` in your options configuring the donut center.
package/axis-chart.js CHANGED
@@ -36,9 +36,7 @@ var AxisChart = /** @class */ (function (_super) {
36
36
  AxisChart.prototype.getAxisChartComponents = function (graphFrameComponents) {
37
37
  var titleComponent = {
38
38
  id: "title",
39
- components: [
40
- new Title(this.model, this.services)
41
- ],
39
+ components: [new Title(this.model, this.services)],
42
40
  growth: {
43
41
  x: LayoutGrowth.PREFERRED,
44
42
  y: LayoutGrowth.FIXED
@@ -46,9 +44,7 @@ var AxisChart = /** @class */ (function (_super) {
46
44
  };
47
45
  var legendComponent = {
48
46
  id: "legend",
49
- components: [
50
- new Legend(this.model, this.services)
51
- ],
47
+ components: [new Legend(this.model, this.services)],
52
48
  growth: {
53
49
  x: LayoutGrowth.PREFERRED,
54
50
  y: LayoutGrowth.FIXED
@@ -70,13 +66,15 @@ var AxisChart = /** @class */ (function (_super) {
70
66
  if (legendPosition === LegendPositions.LEFT) {
71
67
  fullFrameComponentDirection = LayoutDirection.ROW;
72
68
  if (!this.model.getOptions().legend.orientation) {
73
- this.model.getOptions().legend.orientation = LegendOrientations.VERTICAL;
69
+ this.model.getOptions().legend.orientation =
70
+ LegendOrientations.VERTICAL;
74
71
  }
75
72
  }
76
73
  else if (legendPosition === LegendPositions.RIGHT) {
77
74
  fullFrameComponentDirection = LayoutDirection.ROW_REVERSE;
78
75
  if (!this.model.getOptions().legend.orientation) {
79
- this.model.getOptions().legend.orientation = LegendOrientations.VERTICAL;
76
+ this.model.getOptions().legend.orientation =
77
+ LegendOrientations.VERTICAL;
80
78
  }
81
79
  }
82
80
  else if (legendPosition === LegendPositions.BOTTOM) {
@@ -85,9 +83,7 @@ var AxisChart = /** @class */ (function (_super) {
85
83
  }
86
84
  var legendSpacerComponent = {
87
85
  id: "spacer",
88
- components: [
89
- new Spacer(this.model, this.services)
90
- ],
86
+ components: [new Spacer(this.model, this.services)],
91
87
  growth: {
92
88
  x: LayoutGrowth.PREFERRED,
93
89
  y: LayoutGrowth.FIXED
@@ -114,9 +110,7 @@ var AxisChart = /** @class */ (function (_super) {
114
110
  topLevelLayoutComponents.push(titleComponent);
115
111
  var titleSpacerComponent = {
116
112
  id: "spacer",
117
- components: [
118
- new Spacer(this.model, this.services)
119
- ],
113
+ components: [new Spacer(this.model, this.services)],
120
114
  growth: {
121
115
  x: LayoutGrowth.PREFERRED,
122
116
  y: LayoutGrowth.FIXED
package/axis-chart.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"axis-chart.js","sourceRoot":"","sources":["axis-chart.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EACN,eAAe,EACf,YAAY,EACZ,kBAAkB,EAClB,eAAe,EAGf,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACN,eAAe,EACf,MAAM,EACN,KAAK,EAGL,MAAM,EACN,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,OAAO,EAAE,eAAe,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAE3D;IAA+B,6BAAK;IAMnC,mBAAY,MAAe,EAAE,YAA2C;QAAxE,YACC,kBAAM,MAAM,EAAE,YAAY,CAAC,SAC3B;QAPD,cAAQ,GAAQ,MAAM,CAAC,MAAM,CAAC,KAAI,CAAC,QAAQ,EAAE;YAC5C,eAAe,EAAE,eAAe;YAChC,MAAM,EAAE,MAAM;SACd,CAAC,CAAC;;IAIH,CAAC;IAES,0CAAsB,GAAhC,UAAiC,oBAA2B;QAC3D,IAAM,cAAc,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,EAAE;YAClC,wBAAwB,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;YAE9C,IAAM,oBAAoB,GAAG;gBAC5B,EAAE,EAAE,QAAQ;gBACZ,UAAU,EAAE;oBACX,IAAI,MAAM,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC;iBACrC;gBACD,MAAM,EAAE;oBACP,CAAC,EAAE,YAAY,CAAC,SAAS;oBACzB,CAAC,EAAE,YAAY,CAAC,KAAK;iBACrB;aACD,CAAC;YAEF,wBAAwB,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC;SACpD;QACD,wBAAwB,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC;QAElD,OAAO;YACN,IAAI,eAAe,CAClB,IAAI,CAAC,KAAK,EACV,IAAI,CAAC,QAAQ,EACb,wBAAwB,EACxB;gBACC,SAAS,EAAE,eAAe,CAAC,MAAM;aACjC,CACD;SACD,CAAC;IACH,CAAC;IACF,gBAAC;AAAD,CAAC,AAjID,CAA+B,KAAK,GAiInC","sourcesContent":["import { Chart } from \"./chart\";\nimport {\n\tLayoutDirection,\n\tLayoutGrowth,\n\tLegendOrientations,\n\tLegendPositions,\n\tChartConfig,\n\tAxisChartOptions\n} from \"./interfaces/index\";\nimport {\n\tLayoutComponent,\n\tLegend,\n\tTitle,\n\tTooltip,\n\tTooltipBar,\n\tSpacer\n} from \"./components/index\";\nimport { Tools } from \"./tools\";\n\nimport { CartesianScales, Curves } from \"./services/index\";\n\nexport class AxisChart extends Chart {\n\tservices: any = Object.assign(this.services, {\n\t\tcartesianScales: CartesianScales,\n\t\tcurves: Curves\n\t});\n\n\tconstructor(holder: Element, chartConfigs: ChartConfig<AxisChartOptions>) {\n\t\tsuper(holder, chartConfigs);\n\t}\n\n\tprotected getAxisChartComponents(graphFrameComponents: any[]) {\n\t\tconst titleComponent = {\n\t\t\tid: \"title\",\n\t\t\tcomponents: [\n\t\t\t\tnew Title(this.model, this.services)\n\t\t\t],\n\t\t\tgrowth: {\n\t\t\t\tx: LayoutGrowth.PREFERRED,\n\t\t\t\ty: LayoutGrowth.FIXED\n\t\t\t}\n\t\t};\n\n\t\tconst legendComponent = {\n\t\t\tid: \"legend\",\n\t\t\tcomponents: [\n\t\t\t\tnew Legend(this.model, this.services)\n\t\t\t],\n\t\t\tgrowth: {\n\t\t\t\tx: LayoutGrowth.PREFERRED,\n\t\t\t\ty: LayoutGrowth.FIXED\n\t\t\t}\n\t\t};\n\n\t\tconst graphFrameComponent = {\n\t\t\tid: \"graph-frame\",\n\t\t\tcomponents: graphFrameComponents,\n\t\t\tgrowth: {\n\t\t\t\tx: LayoutGrowth.STRETCH,\n\t\t\t\ty: LayoutGrowth.FIXED\n\t\t\t}\n\t\t};\n\n\t\tconst isLegendEnabled = this.model.getOptions().legend.enabled !== false;\n\n\t\t// Decide the position of the legend in reference to the chart\n\t\tlet fullFrameComponentDirection = LayoutDirection.COLUMN;\n\t\tif (isLegendEnabled) {\n\t\t\tconst legendPosition = Tools.getProperty(this.model.getOptions(), \"legend\", \"position\");\n\t\t\tif (legendPosition === LegendPositions.LEFT) {\n\t\t\t\tfullFrameComponentDirection = LayoutDirection.ROW;\n\n\t\t\t\tif (!this.model.getOptions().legend.orientation) {\n\t\t\t\t\tthis.model.getOptions().legend.orientation = LegendOrientations.VERTICAL;\n\t\t\t\t}\n\t\t\t} else if (legendPosition === LegendPositions.RIGHT) {\n\t\t\t\tfullFrameComponentDirection = LayoutDirection.ROW_REVERSE;\n\n\t\t\t\tif (!this.model.getOptions().legend.orientation) {\n\t\t\t\t\tthis.model.getOptions().legend.orientation = LegendOrientations.VERTICAL;\n\t\t\t\t}\n\t\t\t} else if (legendPosition === LegendPositions.BOTTOM) {\n\t\t\t\tfullFrameComponentDirection = LayoutDirection.COLUMN_REVERSE;\n\t\t\t}\n\t\t}\n\n\t\tconst legendSpacerComponent = {\n\t\t\tid: \"spacer\",\n\t\t\tcomponents: [\n\t\t\t\tnew Spacer(this.model, this.services)\n\t\t\t],\n\t\t\tgrowth: {\n\t\t\t\tx: LayoutGrowth.PREFERRED,\n\t\t\t\ty: LayoutGrowth.FIXED\n\t\t\t}\n\t\t};\n\n\t\tconst fullFrameComponent = {\n\t\t\tid: \"full-frame\",\n\t\t\tcomponents: [\n\t\t\t\tnew LayoutComponent(\n\t\t\t\t\tthis.model,\n\t\t\t\t\tthis.services,\n\t\t\t\t\t[\n\t\t\t\t\t\t...(isLegendEnabled ? [ legendComponent ] : [ ]),\n\t\t\t\t\t\tlegendSpacerComponent,\n\t\t\t\t\t\tgraphFrameComponent\n\t\t\t\t\t],\n\t\t\t\t\t{\n\t\t\t\t\t\tdirection: fullFrameComponentDirection\n\t\t\t\t\t}\n\t\t\t\t)\n\t\t\t],\n\t\t\tgrowth: {\n\t\t\t\tx: LayoutGrowth.STRETCH,\n\t\t\t\ty: LayoutGrowth.FIXED\n\t\t\t}\n\t\t};\n\n\t\t// Add chart title if it exists\n\t\tconst topLevelLayoutComponents = [];\n\t\tif (this.model.getOptions().title) {\n\t\t\ttopLevelLayoutComponents.push(titleComponent);\n\n\t\t\tconst titleSpacerComponent = {\n\t\t\t\tid: \"spacer\",\n\t\t\t\tcomponents: [\n\t\t\t\t\tnew Spacer(this.model, this.services)\n\t\t\t\t],\n\t\t\t\tgrowth: {\n\t\t\t\t\tx: LayoutGrowth.PREFERRED,\n\t\t\t\t\ty: LayoutGrowth.FIXED\n\t\t\t\t}\n\t\t\t};\n\n\t\t\ttopLevelLayoutComponents.push(titleSpacerComponent);\n\t\t}\n\t\ttopLevelLayoutComponents.push(fullFrameComponent);\n\n\t\treturn [\n\t\t\tnew LayoutComponent(\n\t\t\t\tthis.model,\n\t\t\t\tthis.services,\n\t\t\t\ttopLevelLayoutComponents,\n\t\t\t\t{\n\t\t\t\t\tdirection: LayoutDirection.COLUMN\n\t\t\t\t}\n\t\t\t)\n\t\t];\n\t}\n}\n"]}
1
+ {"version":3,"file":"axis-chart.js","sourceRoot":"","sources":["axis-chart.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,eAAe,CAAC,MAAM;aACjC,CACD;SACD,CAAC;IACH,CAAC;IACF,gBAAC;AAAD,CAAC,AAhID,CAA+B,KAAK,GAgInC","sourcesContent":["import { Chart } from \"./chart\";\nimport {\n\tLayoutDirection,\n\tLayoutGrowth,\n\tLegendOrientations,\n\tLegendPositions,\n\tChartConfig,\n\tAxisChartOptions\n} from \"./interfaces/index\";\nimport {\n\tLayoutComponent,\n\tLegend,\n\tTitle,\n\tTooltip,\n\tTooltipBar,\n\tSpacer\n} from \"./components/index\";\nimport { Tools } from \"./tools\";\n\nimport { CartesianScales, Curves } from \"./services/index\";\n\nexport class AxisChart extends Chart {\n\tservices: any = Object.assign(this.services, {\n\t\tcartesianScales: CartesianScales,\n\t\tcurves: Curves\n\t});\n\n\tconstructor(holder: Element, chartConfigs: ChartConfig<AxisChartOptions>) {\n\t\tsuper(holder, chartConfigs);\n\t}\n\n\tprotected getAxisChartComponents(graphFrameComponents: any[]) {\n\t\tconst titleComponent = {\n\t\t\tid: \"title\",\n\t\t\tcomponents: [new Title(this.model, this.services)],\n\t\t\tgrowth: {\n\t\t\t\tx: LayoutGrowth.PREFERRED,\n\t\t\t\ty: LayoutGrowth.FIXED\n\t\t\t}\n\t\t};\n\n\t\tconst legendComponent = {\n\t\t\tid: \"legend\",\n\t\t\tcomponents: [new Legend(this.model, this.services)],\n\t\t\tgrowth: {\n\t\t\t\tx: LayoutGrowth.PREFERRED,\n\t\t\t\ty: LayoutGrowth.FIXED\n\t\t\t}\n\t\t};\n\n\t\tconst graphFrameComponent = {\n\t\t\tid: \"graph-frame\",\n\t\t\tcomponents: graphFrameComponents,\n\t\t\tgrowth: {\n\t\t\t\tx: LayoutGrowth.STRETCH,\n\t\t\t\ty: LayoutGrowth.FIXED\n\t\t\t}\n\t\t};\n\n\t\tconst isLegendEnabled =\n\t\t\tthis.model.getOptions().legend.enabled !== false;\n\n\t\t// Decide the position of the legend in reference to the chart\n\t\tlet fullFrameComponentDirection = LayoutDirection.COLUMN;\n\t\tif (isLegendEnabled) {\n\t\t\tconst legendPosition = Tools.getProperty(\n\t\t\t\tthis.model.getOptions(),\n\t\t\t\t\"legend\",\n\t\t\t\t\"position\"\n\t\t\t);\n\t\t\tif (legendPosition === LegendPositions.LEFT) {\n\t\t\t\tfullFrameComponentDirection = LayoutDirection.ROW;\n\n\t\t\t\tif (!this.model.getOptions().legend.orientation) {\n\t\t\t\t\tthis.model.getOptions().legend.orientation =\n\t\t\t\t\t\tLegendOrientations.VERTICAL;\n\t\t\t\t}\n\t\t\t} else if (legendPosition === LegendPositions.RIGHT) {\n\t\t\t\tfullFrameComponentDirection = LayoutDirection.ROW_REVERSE;\n\n\t\t\t\tif (!this.model.getOptions().legend.orientation) {\n\t\t\t\t\tthis.model.getOptions().legend.orientation =\n\t\t\t\t\t\tLegendOrientations.VERTICAL;\n\t\t\t\t}\n\t\t\t} else if (legendPosition === LegendPositions.BOTTOM) {\n\t\t\t\tfullFrameComponentDirection = LayoutDirection.COLUMN_REVERSE;\n\t\t\t}\n\t\t}\n\n\t\tconst legendSpacerComponent = {\n\t\t\tid: \"spacer\",\n\t\t\tcomponents: [new Spacer(this.model, this.services)],\n\t\t\tgrowth: {\n\t\t\t\tx: LayoutGrowth.PREFERRED,\n\t\t\t\ty: LayoutGrowth.FIXED\n\t\t\t}\n\t\t};\n\n\t\tconst fullFrameComponent = {\n\t\t\tid: \"full-frame\",\n\t\t\tcomponents: [\n\t\t\t\tnew LayoutComponent(\n\t\t\t\t\tthis.model,\n\t\t\t\t\tthis.services,\n\t\t\t\t\t[\n\t\t\t\t\t\t...(isLegendEnabled ? [legendComponent] : []),\n\t\t\t\t\t\tlegendSpacerComponent,\n\t\t\t\t\t\tgraphFrameComponent\n\t\t\t\t\t],\n\t\t\t\t\t{\n\t\t\t\t\t\tdirection: fullFrameComponentDirection\n\t\t\t\t\t}\n\t\t\t\t)\n\t\t\t],\n\t\t\tgrowth: {\n\t\t\t\tx: LayoutGrowth.STRETCH,\n\t\t\t\ty: LayoutGrowth.FIXED\n\t\t\t}\n\t\t};\n\n\t\t// Add chart title if it exists\n\t\tconst topLevelLayoutComponents = [];\n\t\tif (this.model.getOptions().title) {\n\t\t\ttopLevelLayoutComponents.push(titleComponent);\n\n\t\t\tconst titleSpacerComponent = {\n\t\t\t\tid: \"spacer\",\n\t\t\t\tcomponents: [new Spacer(this.model, this.services)],\n\t\t\t\tgrowth: {\n\t\t\t\t\tx: LayoutGrowth.PREFERRED,\n\t\t\t\t\ty: LayoutGrowth.FIXED\n\t\t\t\t}\n\t\t\t};\n\n\t\t\ttopLevelLayoutComponents.push(titleSpacerComponent);\n\t\t}\n\t\ttopLevelLayoutComponents.push(fullFrameComponent);\n\n\t\treturn [\n\t\t\tnew LayoutComponent(\n\t\t\t\tthis.model,\n\t\t\t\tthis.services,\n\t\t\t\ttopLevelLayoutComponents,\n\t\t\t\t{\n\t\t\t\t\tdirection: LayoutDirection.COLUMN\n\t\t\t\t}\n\t\t\t)\n\t\t];\n\t}\n}\n"]}
@@ -12,15 +12,15 @@ export declare const createVanillaChartApp: {
12
12
  "index.html": string;
13
13
  "src/index.js": string;
14
14
  "package.json": {
15
- "scripts": {
16
- "start": string;
17
- "build": string;
15
+ scripts: {
16
+ start: string;
17
+ build: string;
18
18
  };
19
- "dependencies": {
19
+ dependencies: {
20
20
  "@carbon/charts": any;
21
- "d3": string;
21
+ d3: string;
22
22
  };
23
- "devDependencies": {
23
+ devDependencies: {
24
24
  "parcel-bundler": string;
25
25
  };
26
26
  };
@@ -36,6 +36,7 @@ export declare const createReactChartApp: {
36
36
  (demo: any): {
37
37
  "src/index.html": string;
38
38
  "src/index.js": string;
39
+ "src/ibm-plex-font.css": string;
39
40
  "package.json": {
40
41
  dependencies: {
41
42
  "@carbon/charts": any;
@@ -60,6 +61,7 @@ export declare const createAngularChartApp: {
60
61
  "src/main.ts": string;
61
62
  "src/app/app.component.html": string;
62
63
  "src/app/app.component.ts": string;
64
+ "src/app/ibm-plex-font.css": string;
63
65
  "src/app/app.module.ts": string;
64
66
  ".angular-cli.json": string;
65
67
  "package.json": string;
@@ -74,6 +76,7 @@ export declare const createAngularChartApp: {
74
76
  export declare const createVueChartApp: {
75
77
  (demo: any): {
76
78
  "src/components/chart.vue": string;
79
+ "src/ibm-plex-font.css": string;
77
80
  "src/App.vue": string;
78
81
  "src/main.js": string;
79
82
  "package.json": string;
@@ -90,16 +93,16 @@ export declare const createSvelteChartApp: {
90
93
  "App.svelte": string;
91
94
  "index.js": string;
92
95
  "package.json": {
93
- "scripts": {
94
- "build": string;
95
- "autobuild": string;
96
- "dev": string;
97
- "start": string;
96
+ scripts: {
97
+ build: string;
98
+ autobuild: string;
99
+ dev: string;
100
+ start: string;
98
101
  "start:dev": string;
99
102
  };
100
- "devDependencies": {
103
+ devDependencies: {
101
104
  "npm-run-all": string;
102
- "rollup": string;
105
+ rollup: string;
103
106
  "rollup-plugin-commonjs": string;
104
107
  "rollup-plugin-node-resolve": string;
105
108
  "rollup-plugin-svelte": string;
@@ -94,7 +94,7 @@ export declare const simpleBarTimeSeriesOptions: {
94
94
  };
95
95
  };
96
96
  timeScale: {
97
- "localeObject": Locale;
97
+ localeObject: Locale;
98
98
  };
99
99
  };
100
100
  export declare const simpleHorizontalBarTimeSeriesOptions: {
@@ -182,3 +182,177 @@ export declare const stackedHorizontalBarTimeSeriesData: {
182
182
  date: Date;
183
183
  value: number;
184
184
  }[];
185
+ export declare const simpleBarEmptyStateData: any[];
186
+ export declare const simpleBarEmptyStateOptions: {
187
+ title: string;
188
+ axes: {
189
+ left: {
190
+ primary: boolean;
191
+ };
192
+ bottom: {
193
+ scaleType: string;
194
+ secondary: boolean;
195
+ };
196
+ };
197
+ };
198
+ export declare const simpleBarSkeletonData: any[];
199
+ export declare const simpleBarSkeletonOptions: {
200
+ title: string;
201
+ axes: {
202
+ left: {
203
+ primary: boolean;
204
+ };
205
+ bottom: {
206
+ scaleType: string;
207
+ secondary: boolean;
208
+ };
209
+ };
210
+ data: {
211
+ loading: boolean;
212
+ };
213
+ };
214
+ export declare const groupedBarEmptyStateData: any[];
215
+ export declare const groupedBarEmptyStateOptions: {
216
+ title: string;
217
+ axes: {
218
+ left: {
219
+ primary: boolean;
220
+ };
221
+ bottom: {
222
+ scaleType: string;
223
+ secondary: boolean;
224
+ };
225
+ };
226
+ };
227
+ export declare const groupedBarSkeletonData: any[];
228
+ export declare const groupedBarSkeletonOptions: {
229
+ title: string;
230
+ axes: {
231
+ left: {
232
+ primary: boolean;
233
+ };
234
+ bottom: {
235
+ scaleType: string;
236
+ secondary: boolean;
237
+ };
238
+ };
239
+ data: {
240
+ loading: boolean;
241
+ };
242
+ };
243
+ export declare const stackedBarEmptyStateData: any[];
244
+ export declare const stackedBarEmptyStateOptions: {
245
+ title: string;
246
+ axes: {
247
+ left: {
248
+ primary: boolean;
249
+ };
250
+ bottom: {
251
+ scaleType: string;
252
+ secondary: boolean;
253
+ };
254
+ };
255
+ };
256
+ export declare const stackedBarSkeletonData: any[];
257
+ export declare const stackedBarSkeletonOptions: {
258
+ title: string;
259
+ axes: {
260
+ left: {
261
+ primary: boolean;
262
+ };
263
+ bottom: {
264
+ scaleType: string;
265
+ secondary: boolean;
266
+ };
267
+ };
268
+ data: {
269
+ loading: boolean;
270
+ };
271
+ };
272
+ export declare const simpleHorizontalBarEmptyStateData: any[];
273
+ export declare const simpleHorizontalBarEmptyStateOptions: {
274
+ title: string;
275
+ axes: {
276
+ left: {
277
+ primary: boolean;
278
+ scaleType: string;
279
+ };
280
+ bottom: {
281
+ secondary: boolean;
282
+ };
283
+ };
284
+ };
285
+ export declare const simpleHorizontalBarSkeletonData: any[];
286
+ export declare const simpleHorizontalBarSkeletonOptions: {
287
+ title: string;
288
+ axes: {
289
+ left: {
290
+ primary: boolean;
291
+ scaleType: string;
292
+ };
293
+ bottom: {
294
+ secondary: boolean;
295
+ };
296
+ };
297
+ data: {
298
+ loading: boolean;
299
+ };
300
+ };
301
+ export declare const groupedHorizontalBarEmptyStateData: any[];
302
+ export declare const groupedHorizontalBarEmptyStateOptions: {
303
+ title: string;
304
+ axes: {
305
+ left: {
306
+ primary: boolean;
307
+ scaleType: string;
308
+ };
309
+ bottom: {
310
+ secondary: boolean;
311
+ };
312
+ };
313
+ };
314
+ export declare const groupedHorizontalBarSkeletonData: any[];
315
+ export declare const groupedHorizontalBarSkeletonOptions: {
316
+ title: string;
317
+ axes: {
318
+ left: {
319
+ primary: boolean;
320
+ scaleType: string;
321
+ };
322
+ bottom: {
323
+ secondary: boolean;
324
+ };
325
+ };
326
+ data: {
327
+ loading: boolean;
328
+ };
329
+ };
330
+ export declare const stackedHorizontalBarEmptyStateData: any[];
331
+ export declare const stackedHorizontalBarEmptyStateOptions: {
332
+ title: string;
333
+ axes: {
334
+ left: {
335
+ primary: boolean;
336
+ scaleType: string;
337
+ };
338
+ bottom: {
339
+ secondary: boolean;
340
+ };
341
+ };
342
+ };
343
+ export declare const stackedHorizontalBarSkeletonData: any[];
344
+ export declare const stackedHorizontalBarSkeletonOptions: {
345
+ title: string;
346
+ axes: {
347
+ left: {
348
+ primary: boolean;
349
+ scaleType: string;
350
+ };
351
+ bottom: {
352
+ secondary: boolean;
353
+ };
354
+ };
355
+ data: {
356
+ loading: boolean;
357
+ };
358
+ };
@@ -67,3 +67,44 @@ export declare const bubbleTimeSeriesOptions: {
67
67
  radiusMapsTo: string;
68
68
  };
69
69
  };
70
+ export declare const bubbleEmptyStateData: any[];
71
+ export declare const bubbleEmptyStateOptions: {
72
+ title: string;
73
+ axes: {
74
+ bottom: {
75
+ title: string;
76
+ mapsTo: string;
77
+ includeZero: boolean;
78
+ };
79
+ left: {
80
+ title: string;
81
+ mapsTo: string;
82
+ includeZero: boolean;
83
+ };
84
+ };
85
+ bubble: {
86
+ radiusMapsTo: string;
87
+ };
88
+ };
89
+ export declare const bubbleSkeletonData: any[];
90
+ export declare const bubbleSkeletonOptions: {
91
+ title: string;
92
+ axes: {
93
+ bottom: {
94
+ title: string;
95
+ mapsTo: string;
96
+ includeZero: boolean;
97
+ };
98
+ left: {
99
+ title: string;
100
+ mapsTo: string;
101
+ includeZero: boolean;
102
+ };
103
+ };
104
+ bubble: {
105
+ radiusMapsTo: string;
106
+ };
107
+ data: {
108
+ loading: boolean;
109
+ };
110
+ };
@@ -11,3 +11,26 @@ export declare const donutOptions: {
11
11
  };
12
12
  };
13
13
  };
14
+ export declare const donutEmptyStateData: any[];
15
+ export declare const donutEmptyStateOptions: {
16
+ title: string;
17
+ resizable: boolean;
18
+ donut: {
19
+ center: {
20
+ label: string;
21
+ };
22
+ };
23
+ };
24
+ export declare const donutSkeletonData: any[];
25
+ export declare const donutSkeletonOptions: {
26
+ title: string;
27
+ resizable: boolean;
28
+ donut: {
29
+ center: {
30
+ label: string;
31
+ };
32
+ };
33
+ data: {
34
+ loading: boolean;
35
+ };
36
+ };
@@ -23,6 +23,9 @@ export declare const lineOptions: {
23
23
  scaleType: string;
24
24
  };
25
25
  };
26
+ chartTypes: {
27
+ line: string[];
28
+ };
26
29
  };
27
30
  export declare const lineTimeSeriesData: {
28
31
  group: string;
@@ -45,6 +48,36 @@ export declare const lineTimeSeriesOptions: {
45
48
  };
46
49
  curve: string;
47
50
  };
51
+ export declare const lineTimeSeriesWithThresholdsOptions: {
52
+ title: string;
53
+ axes: {
54
+ bottom: {
55
+ title: string;
56
+ mapsTo: string;
57
+ scaleType: string;
58
+ thresholds: {
59
+ value: Date;
60
+ label: string;
61
+ valueFormatter: (date: Date) => string;
62
+ }[];
63
+ };
64
+ left: {
65
+ mapsTo: string;
66
+ title: string;
67
+ scaleType: string;
68
+ thresholds: ({
69
+ value: number;
70
+ label: string;
71
+ fillColor: string;
72
+ } | {
73
+ value: number;
74
+ fillColor: string;
75
+ label?: undefined;
76
+ })[];
77
+ };
78
+ };
79
+ curve: string;
80
+ };
48
81
  export declare const lineTimeSeriesDenseData: {
49
82
  group: string;
50
83
  date: Date;
@@ -115,3 +148,40 @@ export declare const lineTimeSeriesHorizontalOptions: {
115
148
  };
116
149
  curve: string;
117
150
  };
151
+ export declare const lineEmptyStateData: any[];
152
+ export declare const lineEmptyStateOptions: {
153
+ title: string;
154
+ axes: {
155
+ bottom: {
156
+ title: string;
157
+ mapsTo: string;
158
+ scaleType: string;
159
+ };
160
+ left: {
161
+ mapsTo: string;
162
+ title: string;
163
+ scaleType: string;
164
+ };
165
+ };
166
+ curve: string;
167
+ };
168
+ export declare const lineSkeletonData: any[];
169
+ export declare const lineSkeletonOptions: {
170
+ title: string;
171
+ axes: {
172
+ bottom: {
173
+ title: string;
174
+ mapsTo: string;
175
+ scaleType: string;
176
+ };
177
+ left: {
178
+ mapsTo: string;
179
+ title: string;
180
+ scaleType: string;
181
+ };
182
+ };
183
+ curve: string;
184
+ data: {
185
+ loading: boolean;
186
+ };
187
+ };
@@ -6,3 +6,16 @@ export declare const pieOptions: {
6
6
  title: string;
7
7
  resizable: boolean;
8
8
  };
9
+ export declare const pieEmptyStateData: any[];
10
+ export declare const pieEmptyStateOptions: {
11
+ title: string;
12
+ resizable: boolean;
13
+ };
14
+ export declare const pieSkeletonData: any[];
15
+ export declare const pieSkeletonOptions: {
16
+ title: string;
17
+ resizable: boolean;
18
+ data: {
19
+ loading: boolean;
20
+ };
21
+ };
@@ -54,3 +54,34 @@ export declare const scatterTimeSeriesOptions: {
54
54
  };
55
55
  };
56
56
  };
57
+ export declare const scatterEmptyStateData: any[];
58
+ export declare const scatterEmptyStateOptions: {
59
+ title: string;
60
+ axes: {
61
+ bottom: {
62
+ title: string;
63
+ scaleType: string;
64
+ mapsTo: string;
65
+ };
66
+ left: {
67
+ mapsTo: string;
68
+ };
69
+ };
70
+ };
71
+ export declare const scatterSkeletonData: any[];
72
+ export declare const scatterSkeletonOptions: {
73
+ title: string;
74
+ axes: {
75
+ bottom: {
76
+ title: string;
77
+ scaleType: string;
78
+ mapsTo: string;
79
+ };
80
+ left: {
81
+ mapsTo: string;
82
+ };
83
+ };
84
+ data: {
85
+ loading: boolean;
86
+ };
87
+ };
@@ -16,3 +16,7 @@ export declare const stepTimeSeriesData: {
16
16
  date: Date;
17
17
  value: number;
18
18
  }[];
19
+ export declare const stepEmptyStateData: any[];
20
+ export declare const stepEmptyStateOptions: any;
21
+ export declare const stepSkeletonData: any[];
22
+ export declare const stepSkeletonOptions: any;
@@ -261,8 +261,60 @@ export declare const lineTimeSeriesNoExtendedDomainOptions: {
261
261
  timeScale: {
262
262
  addSpaceOnEdges: number;
263
263
  };
264
- points: {
265
- radius: number;
264
+ };
265
+ export declare const lineTimeSeriesDataTwoIdenticalLabels: {
266
+ labels: string[];
267
+ datasets: {
268
+ label: string;
269
+ data: {
270
+ date: Date;
271
+ value: number;
272
+ }[];
273
+ }[];
274
+ };
275
+ export declare const lineTimeSeriesTwoIdenticalLabelsOptions: {
276
+ title: string;
277
+ axes: {
278
+ left: {};
279
+ bottom: {
280
+ scaleType: string;
281
+ };
282
+ };
283
+ timeScale: {
284
+ addSpaceOnEdges: number;
285
+ };
286
+ };
287
+ export declare const lineTimeSeriesTwoIdenticalLabels2Options: {
288
+ title: string;
289
+ axes: {
290
+ left: {};
291
+ bottom: {
292
+ scaleType: string;
293
+ };
294
+ };
295
+ timeScale: {
296
+ addSpaceOnEdges: number;
297
+ };
298
+ };
299
+ export declare const lineTimeSeriesDataAllLabelsInPrimaryFormat: {
300
+ labels: string[];
301
+ datasets: {
302
+ label: string;
303
+ data: {
304
+ date: Date;
305
+ value: number;
306
+ }[];
307
+ }[];
308
+ };
309
+ export declare const lineTimeSeriesAllLabelsInPrimaryFormatOptions: {
310
+ title: string;
311
+ axes: {
312
+ left: {};
313
+ bottom: {
314
+ scaleType: string;
315
+ };
316
+ };
317
+ timeScale: {
318
+ addSpaceOnEdges: number;
266
319
  };
267
- filled: boolean;
268
320
  };
@@ -2,9 +2,9 @@ import { Component } from "../component";
2
2
  export declare class Grid extends Component {
3
3
  type: string;
4
4
  backdrop: any;
5
- render(): void;
6
- drawXGrid(): void;
7
- drawYGrid(): void;
5
+ render(animate?: boolean): void;
6
+ drawXGrid(animate: boolean): void;
7
+ drawYGrid(animate: boolean): void;
8
8
  /**
9
9
  * Returns the threshold for the gridline tooltips based on the mouse location.
10
10
  * Calculated based on the mouse position between the two closest gridlines or edges of chart.
@@ -1,7 +1,9 @@
1
1
  import { Component } from "../component";
2
+ import { Threshold } from "../essentials/threshold";
2
3
  export declare class TwoDimensionalAxes extends Component {
3
4
  type: string;
4
5
  children: any;
6
+ thresholds: Threshold[];
5
7
  margins: {
6
8
  top: number;
7
9
  right: number;
@@ -9,4 +11,5 @@ export declare class TwoDimensionalAxes extends Component {
9
11
  left: number;
10
12
  };
11
13
  render(animate?: boolean): void;
14
+ addAxisThresholds(animate: any, axisPosition: any): void;
12
15
  }