@carbon/charts 0.37.1 → 0.38.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"file":"components.js","sourceRoot":"","sources":["components.ts"],"names":[],"mappings":"","sourcesContent":["import {\n\tLayoutGrowth,\n\tLegendPositions,\n\tAlignments,\n\tZoomBarTypes\n} from \"./enums\";\nimport { Component } from \"../components/component\";\nimport { TruncationOptions } from \"./truncation\";\n\n/**\n * customize the overlay contents\n */\nexport interface LayoutComponentChild {\n\tid: string;\n\t/**\n\t * the component that'll be rendered inside layout child\n\t */\n\tcomponents: Component[];\n\t/**\n\t * size of the layout child\n\t */\n\tsize?: number;\n\t/**\n\t * how the layout child will grow or shrink in x & y directions\n\t */\n\tgrowth?: {\n\t\tx: LayoutGrowth;\n\t\ty: LayoutGrowth;\n\t};\n}\n\n/**\n * customize the legend component\n */\nexport interface LegendOptions {\n\tenabled?: boolean;\n\tposition?: LegendPositions;\n\t/**\n\t * the clickability of legend items\n\t */\n\tclickable?: boolean;\n\ttruncation?: TruncationOptions;\n\talignment?: Alignments;\n\torder?: string[];\n}\n\nexport interface TooltipOptions {\n\t/**\n\t * a function to format the tooltip values\n\t */\n\tvalueFormatter?: Function;\n\t/**\n\t * custom function for returning tooltip HTML\n\t * passed an array or object with the data, and then the default tooltip markup\n\t */\n\tcustomHTML?: Function;\n\t/**\n\t * show total of items\n\t */\n\tshowTotal?: boolean;\n\ttruncation?: TruncationOptions;\n}\n\n/**\n * Threshold options\n */\nexport interface ThresholdOptions {\n\t/**\n\t * threshold value\n\t */\n\tvalue: number | Date;\n\t/**\n\t * a function to format the threshold values\n\t */\n\tvalueFormatter?: Function;\n\t/**\n\t * hex threshold line color\n\t */\n\tfillColor: string;\n\t/**\n\t * threshold label\n\t */\n\tlabel: string;\n}\n\nexport interface GridOptions {\n\ty?: {\n\t\tenabled?: boolean;\n\t\tnumberOfTicks?: number;\n\t};\n\tx?: {\n\t\tenabled?: boolean;\n\t\tnumberOfTicks?: number;\n\t};\n}\n\nexport interface BarOptions {\n\twidth?: number;\n\tmaxWidth?: number;\n}\n\nexport interface StackedBarOptions extends BarOptions {\n\tdividerSize?: number;\n}\n\n/**\n * customize the ZoomBars in a chart\n */\nexport interface ZoomBarsOptions {\n\t/**\n\t * currently only the top position is supported\n\t */\n\ttop?: ZoomBarOptions;\n}\n\n/**\n * customize the ZoomBar component\n */\nexport interface ZoomBarOptions {\n\t/**\n\t * is the zoom-bar visible or not\n\t */\n\tenabled?: boolean;\n\t/**\n\t * whether the zoom bar is showing a slider view or a graph view etc.\n\t */\n\ttype?: ZoomBarTypes;\n\t/**\n\t * an two element array which represents the initial zoom domain\n\t */\n\tinitialZoomDomain?: Object[];\n\t/**\n\t * options related to zoom bar data\n\t */\n\tdata?: Object[];\n}\n"]}
1
+ {"version":3,"file":"components.js","sourceRoot":"","sources":["components.ts"],"names":[],"mappings":"","sourcesContent":["import {\n\tLayoutGrowth,\n\tLegendPositions,\n\tAlignments,\n\tZoomBarTypes\n} from \"./enums\";\nimport { Component } from \"../components/component\";\nimport { TruncationOptions } from \"./truncation\";\n\n/**\n * customize the overlay contents\n */\nexport interface LayoutComponentChild {\n\tid: string;\n\t/**\n\t * the component that'll be rendered inside layout child\n\t */\n\tcomponents: Component[];\n\t/**\n\t * size of the layout child\n\t */\n\tsize?: number;\n\t/**\n\t * how the layout child will grow or shrink in x & y directions\n\t */\n\tgrowth?: {\n\t\tx: LayoutGrowth;\n\t\ty: LayoutGrowth;\n\t};\n}\n\n/**\n * customize the legend component\n */\nexport interface LegendOptions {\n\tenabled?: boolean;\n\tposition?: LegendPositions;\n\t/**\n\t * the clickability of legend items\n\t */\n\tclickable?: boolean;\n\ttruncation?: TruncationOptions;\n\talignment?: Alignments;\n\torder?: string[];\n}\n\nexport interface TooltipOptions {\n\t/**\n\t * a function to format the tooltip values\n\t */\n\tvalueFormatter?: Function;\n\t/**\n\t * custom function for returning tooltip HTML\n\t * passed an array or object with the data, and then the default tooltip markup\n\t */\n\tcustomHTML?: Function;\n\t/**\n\t * show total of items\n\t */\n\tshowTotal?: boolean;\n\ttruncation?: TruncationOptions;\n}\n\n/**\n * Threshold options\n */\nexport interface ThresholdOptions {\n\t/**\n\t * threshold value\n\t */\n\tvalue: number | Date;\n\t/**\n\t * a function to format the threshold values\n\t */\n\tvalueFormatter?: Function;\n\t/**\n\t * hex threshold line color\n\t */\n\tfillColor: string;\n\t/**\n\t * threshold label\n\t */\n\tlabel: string;\n}\n\nexport interface GridOptions {\n\ty?: {\n\t\tenabled?: boolean;\n\t\tnumberOfTicks?: number;\n\t};\n\tx?: {\n\t\tenabled?: boolean;\n\t\tnumberOfTicks?: number;\n\t};\n}\n\n/**\n * Ruler options\n */\nexport interface RulerOptions {\n\tenabled?: boolean;\n}\n\n\nexport interface BarOptions {\n\twidth?: number;\n\tmaxWidth?: number;\n}\n\nexport interface StackedBarOptions extends BarOptions {\n\tdividerSize?: number;\n}\n\n/**\n * customize the ZoomBars in a chart\n */\nexport interface ZoomBarsOptions {\n\t/**\n\t * currently only the top position is supported\n\t */\n\ttop?: ZoomBarOptions;\n}\n\n/**\n * customize the ZoomBar component\n */\nexport interface ZoomBarOptions {\n\t/**\n\t * is the zoom-bar visible or not\n\t */\n\tenabled?: boolean;\n\t/**\n\t * whether the zoom bar is showing a slider view or a graph view etc.\n\t */\n\ttype?: ZoomBarTypes;\n\t/**\n\t * an two element array which represents the initial zoom domain\n\t */\n\tinitialZoomDomain?: Object[];\n\t/**\n\t * options related to zoom bar data\n\t */\n\tdata?: Object[];\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@carbon/charts",
3
- "version": "0.37.1",
3
+ "version": "0.38.0",
4
4
  "description": "Carbon charting components",
5
5
  "main": "./bundle.js",
6
6
  "module": "./index.js",
@@ -270,8 +270,8 @@
270
270
  "signature": "0a93cebbd0b8d0b2c723472bc76f30052d8a0055cad89efb223e2770ff6ed158"
271
271
  },
272
272
  "../src/configuration.ts": {
273
- "version": "3af4f59dfb827bb1564bff6a8595874acc51ad8f82b066473098b5f07a198abf",
274
- "signature": "72fe4e6c9bdab5123ca687bc54f83b841ea05e78e0d8ace7c380a42b7a8abbaa"
273
+ "version": "063281bc14f89b5d4545e92414897a12ec8eb5b64379d7e119871dd5a9e293c6",
274
+ "signature": "3befd2e4a7bab137ff68884f03f610e0e07945f8f04dc853d4f8d33b459c2a6c"
275
275
  },
276
276
  "../src/services/colors.ts": {
277
277
  "version": "f5ef6f532cb7c302dd0d161938a8765ce0e194f022b1c0a18521a293115ba033",
@@ -330,12 +330,12 @@
330
330
  "signature": "e13ca1760c1d894f0cbb054be895f12207ff8a8708be12a18944832c02dd7ab2"
331
331
  },
332
332
  "../src/interfaces/components.ts": {
333
- "version": "5c88b38a717c80e4efd61839b36e85e03b1833da171a7d3a6d3e8a777280052a",
334
- "signature": "5018049eddea47654dfe25f93cda917b86ef6ee6362cb082257797f3714e3c88"
333
+ "version": "ba33f272e48c31e666ccd5df1c744ae30178c47b78335c5039773574f5225801",
334
+ "signature": "775b2bb2f3e8df0f6aae743c6a680265e02724ba52c7f69370b7b46bba87dc1f"
335
335
  },
336
336
  "../src/interfaces/axis-scales.ts": {
337
- "version": "131e0e24761cb5d5149c11b8a1f7febfd77bda1d4d647f1bc438fb934308bc76",
338
- "signature": "f90492b0e4e09c070a964ec13dda9ad88e2b7b2b339907b32270273cf08e1077"
337
+ "version": "246f79c23e0e1a5040b6cb6a276e8a6c6dd599826e0e184cc0b14422b239cc85",
338
+ "signature": "c8f6914fe20a169c25a1390b2a1593a01b7947e645da8ccaa867ae88991d7cc7"
339
339
  },
340
340
  "../src/interfaces/charts.ts": {
341
341
  "version": "b716c5443f344bfbd79670aa72972be2adfc939fa4ee9ddad26dbcc8975dee12",
@@ -450,7 +450,7 @@
450
450
  "signature": "a05ec18c3100223e4e2b3dffad44b07bf81cf75c51aa541a08d43be4a0221ecd"
451
451
  },
452
452
  "../src/components/axes/axis.ts": {
453
- "version": "227754af09f4ec8522553ef28cd9103de2861be50113507733335450d2dbb4f1",
453
+ "version": "3bdcfbc6e24022cca8c9c710d0898c05cb8371d8ea9afbba9f5946d5ac17daa6",
454
454
  "signature": "6e920fe25ab6cf2949ad73634ed80b7478b32081671b771f8a3be45f3634e58b"
455
455
  },
456
456
  "../src/components/axes/two-dimensional-axes.ts": {
@@ -470,8 +470,8 @@
470
470
  "signature": "cdb84ad52b5f3256a90382d67a9245aafa80145dbeca1773ba0779a377cabe5d"
471
471
  },
472
472
  "../src/components/axes/ruler.ts": {
473
- "version": "87ca150b702080ec6a2c4e029ed7f07e24ee2fab23c5cafcac333b5a09933483",
474
- "signature": "a28c4f937a7bb15ab0aacc5a42e993793118e3b6a189db95300cbc815a0b412e"
473
+ "version": "5c00fe6bc1ad6f2afdf06aa5e0829759e22fe236a31dd969a314d0a9532040d9",
474
+ "signature": "748e658b4cb3bdef3eab493dc53df4ab2c7838e7ed8d8ba6a91ed98ab2652887"
475
475
  },
476
476
  "../src/components/axes/ruler-stacked-bar.ts": {
477
477
  "version": "92487fb71e55dc91027b8e9475b1cced392aaf39ec424331de39631ac61856a5",