@bryntum/chart-react-thin 7.2.1 → 7.2.3

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.
@@ -16,8 +16,8 @@ export declare type BryntumChartProps = {
16
16
  axisColor?: string;
17
17
  axisLabelColor?: string;
18
18
  background?: string;
19
- backgroundColorField?: string;
20
19
  barDirection?: 'vertical' | 'horizontal';
20
+ barWidth?: number;
21
21
  border?: boolean;
22
22
  bubbleEvents?: object;
23
23
  bubbleScaleFactor?: number;
@@ -50,6 +50,7 @@ export declare type BryntumChartProps = {
50
50
  elementAttributes?: Record<string, string | null>;
51
51
  extraData?: any;
52
52
  field?: string;
53
+ fillColorField?: string;
53
54
  flex?: number | string;
54
55
  floating?: boolean;
55
56
  gridColor?: string;
@@ -96,7 +97,6 @@ export declare type BryntumChartProps = {
96
97
  immediate?: boolean;
97
98
  };
98
99
  namedItems?: Record<string, ChartContainerItemConfig>;
99
- owner?: Widget | any;
100
100
  pointSize?: number;
101
101
  positioned?: boolean;
102
102
  preventTooltipOnTouch?: boolean;
@@ -60,7 +60,6 @@ BryntumChart.configNames = [
60
60
  'masked',
61
61
  'monitorResize',
62
62
  'namedItems',
63
- 'owner',
64
63
  'positioned',
65
64
  'preventTooltipOnTouch',
66
65
  'relayStoreEvents',
@@ -86,8 +85,8 @@ BryntumChart.propertyConfigNames = [
86
85
  'axisColor',
87
86
  'axisLabelColor',
88
87
  'background',
89
- 'backgroundColorField',
90
88
  'barDirection',
89
+ 'barWidth',
91
90
  'bubbleScaleFactor',
92
91
  'callOnFunctions',
93
92
  'catchEventHandlerExceptions',
@@ -103,6 +102,7 @@ BryntumChart.propertyConfigNames = [
103
102
  'disabled',
104
103
  'extraData',
105
104
  'field',
105
+ 'fillColorField',
106
106
  'flex',
107
107
  'gridColor',
108
108
  'height',
@@ -1 +1 @@
1
- {"version":3,"file":"BryntumChart.js","sourceRoot":"","sources":["../src/BryntumChart.tsx"],"names":[],"mappings":"AAIA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f,QAAQ;IACR,QAAQ;IACR,aAAa;IACb,gBAAgB;IAChB,aAAa;IACb,QAAQ;IACR,KAAK;IACL,WAAW;IACX,kBAAkB;IAClB,sBAAsB;IACtB,UAAU;IACV,KAAK;IACL,WAAW;IACX,sBAAsB;IACtB,UAAU;IACV,iBAAiB;IACjB,cAAc;IACd,mBAAmB;IACnB,cAAc;IACd,YAAY;IACZ,WAAW;IACX,oBAAoB;IACpB,kBAAkB;IAClB,WAAW;IACX,YAAY;IACZ,QAAQ;IACR,SAAS;IACT,YAAY;IACZ,aAAa;IACb,UAAU;IACV,QAAQ;IACR,WAAW;IACX,UAAU;IACV,QAAQ;IACR,WAAW;IACX,MAAM;IACN,KAAK;IACL,YAAY;IACZ,QAAQ;IACR,gBAAgB;IAChB,mBAAmB;IACnB,qBAAqB;IACrB,cAAc;IACd,YAAY;IACZ,YAAY;IACZ,cAAc;IACd,WAAW;IACX,WAAW;IACX,cAAc;IACd,MAAM;IACN,qBAAqB;IACrB,UAAU;IACV,cAAc;IACd,iBAAiB;IACjB,UAAU;IACV,eAAe;IACf,OAAO;IACP,WAAW;IACX,cAAc;IACd,SAAS;IACT,OAAO;IACP,GAAG;IACH,GAAG;CACN,CAAC;AAEK,0BAAa,GAAG;IACnB,YAAY;IACZ,cAAc;IACd,YAAY;IACZ,iBAAiB;IACjB,SAAS;IACT,QAAQ;IACR,QAAQ;CACX,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bryntum/chart-react-thin",
3
- "version": "7.2.1",
3
+ "version": "7.2.3",
4
4
  "description": "React wrappers for Bryntum Chart JavaScript component",
5
5
  "keywords": [
6
6
  "bryntum",
@@ -77,14 +77,15 @@ export type BryntumChartProps = {
77
77
  * The chart background color, or `null` for transparent.
78
78
  */
79
79
  background? : string
80
- /**
81
- * (Optional) The name of a field in the chart data to use as the background color for each data point.
82
- */
83
- backgroundColorField? : string
84
80
  /**
85
81
  * Layout direction for the bar chart type.
86
82
  */
87
83
  barDirection? : 'vertical'|'horizontal'
84
+ /**
85
+ * (Optional) For `'bar'` charts, the amount of the available bar area each bar in this series should occupy,
86
+ * from 0 to 1. Default: 0.9.
87
+ */
88
+ barWidth? : number
88
89
  /**
89
90
  * Set `true` to add a border to this container's element.
90
91
  */
@@ -251,6 +252,11 @@ export type BryntumChartProps = {
251
252
  * The name of the record field containing the data for this series.
252
253
  */
253
254
  field? : string
255
+ /**
256
+ * (Optional) The name of a field in the chart data to use as the background color for each data element
257
+ * (e.g. bar).
258
+ */
259
+ fillColorField? : string
254
260
  /**
255
261
  * When this widget is a child of a [Container](https://bryntum.com/products/chart/docs/api/Core/widget/Container), it will by default be participating in a
256
262
  * flexbox layout. This config allows you to set this widget's
@@ -499,14 +505,6 @@ export type BryntumChartProps = {
499
505
  * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-namedItems)
500
506
  */
501
507
  namedItems? : Record<string, ChartContainerItemConfig>
502
- /**
503
- * The owning Widget of this Widget. If this Widget is directly contained (that is, it is one of the
504
- * [items](https://bryntum.com/products/chart/docs/api/Core/widget/Container#property-items) of a Container), this config will be ignored. In this case
505
- * the owner is <strong>always</strong> the encapsulating Container.
506
- * ...
507
- * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-owner)
508
- */
509
- owner? : Widget|any
510
508
  /**
511
509
  * Radius of data points, in pixels.
512
510
  */
@@ -929,7 +927,6 @@ export class BryntumChart extends React.Component<BryntumChartProps> {
929
927
  'masked',
930
928
  'monitorResize',
931
929
  'namedItems',
932
- 'owner',
933
930
  'positioned',
934
931
  'preventTooltipOnTouch',
935
932
  'relayStoreEvents',
@@ -956,8 +953,8 @@ export class BryntumChart extends React.Component<BryntumChartProps> {
956
953
  'axisColor',
957
954
  'axisLabelColor',
958
955
  'background',
959
- 'backgroundColorField',
960
956
  'barDirection',
957
+ 'barWidth',
961
958
  'bubbleScaleFactor',
962
959
  'callOnFunctions',
963
960
  'catchEventHandlerExceptions',
@@ -973,6 +970,7 @@ export class BryntumChart extends React.Component<BryntumChartProps> {
973
970
  'disabled',
974
971
  'extraData',
975
972
  'field',
973
+ 'fillColorField',
976
974
  'flex',
977
975
  'gridColor',
978
976
  'height',