@bryntum/chart-react-thin 7.2.1 → 7.2.2
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.
- package/lib/BryntumChart.d.ts +2 -1
- package/lib/BryntumChart.js +2 -1
- package/lib/BryntumChart.js.map +1 -1
- package/package.json +1 -1
- package/src/BryntumChart.tsx +12 -5
package/lib/BryntumChart.d.ts
CHANGED
|
@@ -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;
|
package/lib/BryntumChart.js
CHANGED
|
@@ -86,8 +86,8 @@ BryntumChart.propertyConfigNames = [
|
|
|
86
86
|
'axisColor',
|
|
87
87
|
'axisLabelColor',
|
|
88
88
|
'background',
|
|
89
|
-
'backgroundColorField',
|
|
90
89
|
'barDirection',
|
|
90
|
+
'barWidth',
|
|
91
91
|
'bubbleScaleFactor',
|
|
92
92
|
'callOnFunctions',
|
|
93
93
|
'catchEventHandlerExceptions',
|
|
@@ -103,6 +103,7 @@ BryntumChart.propertyConfigNames = [
|
|
|
103
103
|
'disabled',
|
|
104
104
|
'extraData',
|
|
105
105
|
'field',
|
|
106
|
+
'fillColorField',
|
|
106
107
|
'flex',
|
|
107
108
|
'gridColor',
|
|
108
109
|
'height',
|
package/lib/BryntumChart.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BryntumChart.js","sourceRoot":"","sources":["../src/BryntumChart.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAoB,MAAM,OAAO,CAAC;AAEzC,OAAO,EAAE,KAAK,EAA8H,MAAM,qBAAqB,CAAC;AAExK,OAAO,EAAE,YAAY,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"BryntumChart.js","sourceRoot":"","sources":["../src/BryntumChart.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAoB,MAAM,OAAO,CAAC;AAEzC,OAAO,EAAE,KAAK,EAA8H,MAAM,qBAAqB,CAAC;AAExK,OAAO,EAAE,YAAY,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAo3B/F,MAAM,OAAO,YAAa,SAAQ,KAAK,CAAC,SAA4B;IAApE;;QAMI,yBAAoB,GAAG,oBAAoB,CAAC;IA+MhD,CAAC;IA5BG,iBAAiB;QACb,IAAI,CAAC,QAAQ,GAAG,YAAY,CAAC,IAAI,CAAC,CAAC;IACvC,CAAC;IAED,oBAAoB;;QAEhB,MAAA,MAAA,IAAI,CAAC,QAAQ,0CAAE,OAAO,kDAAI,CAAC;IAC/B,CAAC;IASD,qBAAqB,CAAC,SAAsC,EAAE,SAAuB;QACjF,OAAO,qBAAqB,CAAC,IAAI,EAAE,SAAS,EAAE,SAAS,CAAC,CAAC;IAC7D,CAAC;IAED,MAAM;QAEF,MAAM,SAAS,GAAG,yBAAyB,CAAC;QAC5C,OAAO,CACH,6BAAK,SAAS,EAAE,SAAS,EAAE,GAAG,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,OAAO,GAAG,OAAQ,CAAC,GAAQ,CACjF,CAAC;IAEN,CAAC;;AAlNM,0BAAa,GAAG,KAAK,CAAC;AAEtB,yBAAY,GAAG,OAAO,CAAC;AAIvB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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
package/src/BryntumChart.tsx
CHANGED
|
@@ -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
|
|
@@ -956,8 +962,8 @@ export class BryntumChart extends React.Component<BryntumChartProps> {
|
|
|
956
962
|
'axisColor',
|
|
957
963
|
'axisLabelColor',
|
|
958
964
|
'background',
|
|
959
|
-
'backgroundColorField',
|
|
960
965
|
'barDirection',
|
|
966
|
+
'barWidth',
|
|
961
967
|
'bubbleScaleFactor',
|
|
962
968
|
'callOnFunctions',
|
|
963
969
|
'catchEventHandlerExceptions',
|
|
@@ -973,6 +979,7 @@ export class BryntumChart extends React.Component<BryntumChartProps> {
|
|
|
973
979
|
'disabled',
|
|
974
980
|
'extraData',
|
|
975
981
|
'field',
|
|
982
|
+
'fillColorField',
|
|
976
983
|
'flex',
|
|
977
984
|
'gridColor',
|
|
978
985
|
'height',
|