@patternfly-java/charts 0.0.8 → 0.0.9

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/dist/demo.html CHANGED
@@ -61,7 +61,7 @@ h2 {
61
61
 
62
62
  <section class="card">
63
63
  <h2 class="pf-v5-c-title pf-m-lg">Bullet</h2>
64
- <pfj-chart-bullet width="600" height="150" aria-title="Bullet Chart" primary-segmented-measure-data="[{&quot;name&quot;:&quot;Measure&quot;,&quot;y&quot;:100},{&quot;name&quot;:&quot;Measure&quot;,&quot;y&quot;:60}]" primary-dot-measure-data="[{&quot;name&quot;:&quot;Measure&quot;,&quot;y&quot;:75}]" comparative-warning-measure-data="[{&quot;name&quot;:&quot;Warning&quot;,&quot;y&quot;:88}]" comparative-error-measure-data="[{&quot;name&quot;:&quot;Error&quot;,&quot;y&quot;:95}]" qualitative-range-data="[{&quot;name&quot;:&quot;Range&quot;,&quot;y&quot;:50},{&quot;name&quot;:&quot;Range&quot;,&quot;y&quot;:75},{&quot;name&quot;:&quot;Range&quot;,&quot;y&quot;:100}]"></pfj-chart-bullet>
64
+ <pfj-chart-bullet id="bullet-chart-0" width="600" height="120" aria-title="Bullet Chart" comparative-warning-measure-data="[{&quot;name&quot;:&quot;Warning&quot;,&quot;y&quot;:88}]" primary-segmented-measure-data="[{&quot;name&quot;:&quot;Measure&quot;,&quot;y&quot;:23},{&quot;name&quot;:&quot;Measure&quot;,&quot;y&quot;:60}]" max-domain="{&quot;y&quot;:132}" qualitative-range-data="[{&quot;name&quot;:&quot;Range&quot;,&quot;y&quot;:50},{&quot;name&quot;:&quot;Range&quot;,&quot;y&quot;:75},{&quot;name&quot;:&quot;Range&quot;,&quot;y&quot;:100}]" padding="{&quot;top&quot;: 0, &quot;right&quot;: 20, &quot;bottom&quot;: 10, &quot;left&quot;: 80}" title="Threads"></pfj-chart-bullet>
65
65
  </section>
66
66
 
67
67
  <script>// modules are defined as an array
@@ -816,6 +816,10 @@ var _chartsJs = require("./src/charts.js");
816
816
  utc.title = `${current}%`;
817
817
  utc.subTitle = `${current} of 100 GBps`;
818
818
  }, 1000);
819
+ await customElements.whenDefined('pfj-chart-bullet');
820
+ const bc = document.getElementById('bullet-chart-0');
821
+ if (bc?.updateComplete) await bc.updateComplete;
822
+ bc.labels = ({ datum })=>`${datum.name}: ${datum.y}`;
819
823
  })();
820
824
 
821
825
  },{"./src/charts.js":"kkiZQ"}],"kkiZQ":[function(require,module,exports,__globalThis) {
@@ -833,16 +837,20 @@ var _chartsJs = require("./src/charts.js");
833
837
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
834
838
  * See the License for the specific language governing permissions and
835
839
  * limitations under the License.
836
- */ var parcelHelpers = require("@parcel/transformer-js/src/esmodule-helpers.js");
840
+ */ // Base class for the J2CL JsInterop base class org.patternfly.chart.ChartElement
841
+ var parcelHelpers = require("@parcel/transformer-js/src/esmodule-helpers.js");
837
842
  parcelHelpers.defineInteropFlag(exports);
843
+ parcelHelpers.export(exports, "ChartBulletWebComponent", ()=>(0, _pfjChartBulletJs.ChartBulletWebComponent));
838
844
  parcelHelpers.export(exports, "ChartDonutWebComponent", ()=>(0, _pfjChartDonutJs.ChartDonutWebComponent));
839
845
  parcelHelpers.export(exports, "ChartDonutUtilizationWebComponent", ()=>(0, _pfjChartDonutUtilizationJs.ChartDonutUtilizationWebComponent));
840
846
  parcelHelpers.export(exports, "ChartDonutThresholdWebComponent", ()=>(0, _pfjChartDonutThresholdJs.ChartDonutThresholdWebComponent));
841
- parcelHelpers.export(exports, "ChartBulletWebComponent", ()=>(0, _pfjChartBulletJs.ChartBulletWebComponent));
847
+ var _pfjChartBulletJs = require("./components/pfj-chart-bullet.js");
842
848
  var _pfjChartDonutJs = require("./components/pfj-chart-donut.js");
843
849
  var _pfjChartDonutUtilizationJs = require("./components/pfj-chart-donut-utilization.js");
844
850
  var _pfjChartDonutThresholdJs = require("./components/pfj-chart-donut-threshold.js");
845
- var _pfjChartBulletJs = require("./components/pfj-chart-bullet.js");
851
+ class ChartElement extends HTMLElement {
852
+ }
853
+ window.ChartElement = ChartElement;
846
854
 
847
855
  },{"./components/pfj-chart-donut.js":"bNmg7","./components/pfj-chart-donut-utilization.js":"gSeNk","./components/pfj-chart-donut-threshold.js":"7XBnQ","./components/pfj-chart-bullet.js":"3RKOW","@parcel/transformer-js/src/esmodule-helpers.js":"gkKU3"}],"bNmg7":[function(require,module,exports,__globalThis) {
848
856
  /*
@@ -968,10 +976,10 @@ class ReactWrapperElement extends (0, _lit.LitElement) {
968
976
  this._height = undefined; // number
969
977
  this._labels = undefined; // (data: any) => string
970
978
  this._legendAllowWrap = undefined; // boolean
971
- this._legendData = undefined; // string[]
979
+ this._legendData = undefined; // { name?: string; symbol?: { fill?: string; type?: string; }; }[]
972
980
  this._legendOrientation = undefined; // string
973
981
  this._legendPosition = undefined; // string
974
- this._padding = undefined; // { top?: number, bottom?: number, left?: number, right?: number }
982
+ this._padding = undefined; // { top?: number; bottom?: number; left?: number; right?: number }
975
983
  this._subTitle = undefined; // string
976
984
  this._subTitlePosition = undefined; // string
977
985
  this._themeColor = undefined; // string
@@ -2695,7 +2703,7 @@ module.exports = require("a569817e6ea559f6");
2695
2703
  exports.useTransition = function() {
2696
2704
  return resolveDispatcher().useTransition();
2697
2705
  };
2698
- exports.version = "19.2.1";
2706
+ exports.version = "19.2.3";
2699
2707
  "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
2700
2708
  })();
2701
2709
 
@@ -17817,7 +17825,7 @@ module.exports = require("2b53550ce04dc092");
17817
17825
  };
17818
17826
  (function() {
17819
17827
  var isomorphicReactPackageVersion = React.version;
17820
- if ("19.2.1" !== isomorphicReactPackageVersion) throw Error('Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' + (isomorphicReactPackageVersion + "\n - react-dom: 19.2.1\nLearn more: https://react.dev/warnings/version-mismatch"));
17828
+ if ("19.2.3" !== isomorphicReactPackageVersion) throw Error('Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' + (isomorphicReactPackageVersion + "\n - react-dom: 19.2.3\nLearn more: https://react.dev/warnings/version-mismatch"));
17821
17829
  })();
17822
17830
  "function" === typeof Map && null != Map.prototype && "function" === typeof Map.prototype.forEach && "function" === typeof Set && null != Set.prototype && "function" === typeof Set.prototype.clear && "function" === typeof Set.prototype.forEach || console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://react.dev/link/react-polyfills");
17823
17831
  ReactDOMSharedInternals.findDOMNode = function(componentOrElement) {
@@ -17835,10 +17843,10 @@ module.exports = require("2b53550ce04dc092");
17835
17843
  if (!function() {
17836
17844
  var internals = {
17837
17845
  bundleType: 1,
17838
- version: "19.2.1",
17846
+ version: "19.2.3",
17839
17847
  rendererPackageName: "react-dom",
17840
17848
  currentDispatcherRef: ReactSharedInternals,
17841
- reconcilerVersion: "19.2.1"
17849
+ reconcilerVersion: "19.2.3"
17842
17850
  };
17843
17851
  internals.overrideHookState = overrideHookState;
17844
17852
  internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -17892,7 +17900,7 @@ module.exports = require("2b53550ce04dc092");
17892
17900
  listenToAllSupportedEvents(container);
17893
17901
  return new ReactDOMHydrationRoot(initialChildren);
17894
17902
  };
17895
- exports.version = "19.2.1";
17903
+ exports.version = "19.2.3";
17896
17904
  "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
17897
17905
  })();
17898
17906
 
@@ -18336,7 +18344,7 @@ module.exports = require("b0f0e6b9e8349dac");
18336
18344
  exports.useFormStatus = function() {
18337
18345
  return resolveDispatcher().useHostTransitionStatus();
18338
18346
  };
18339
- exports.version = "19.2.1";
18347
+ exports.version = "19.2.3";
18340
18348
  "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
18341
18349
  })();
18342
18350
 
@@ -61120,23 +61128,39 @@ class ChartBulletWebComponent extends (0, _reactWrapperJs.ReactWrapperElement) {
61120
61128
  constructor(){
61121
61129
  super();
61122
61130
  this._comparativeErrorMeasureData = undefined;
61131
+ this._comparativeErrorMeasureLegendData = undefined;
61123
61132
  this._comparativeWarningMeasureData = undefined;
61133
+ this._comparativeWarningMeasureLegendData = undefined;
61134
+ this._maxDomain = undefined;
61124
61135
  this._primaryDotMeasureData = undefined;
61136
+ this._primaryDotMeasureLegendData = undefined;
61125
61137
  this._primarySegmentedMeasureData = undefined;
61138
+ this._primarySegmentedMeasureLegendData = undefined;
61126
61139
  this._qualitativeRangeData = undefined;
61140
+ this._qualitativeRangeLegendData = undefined;
61127
61141
  }
61128
61142
  getReactComponent() {
61129
61143
  const extraProps = {};
61130
61144
  if (this._comparativeErrorMeasureData && typeof this._comparativeErrorMeasureData !== 'string') extraProps.comparativeErrorMeasureData = this._comparativeErrorMeasureData;
61131
- else if (this.getAttribute('comparative-error-measure-data')) extraProps.thresholds = (0, _reactWrapperJs.parseAttrValue)('comparative-error-measure-data', this.getAttribute('comparative-error-measure-data'));
61145
+ else if (this.getAttribute('comparative-error-measure-data')) extraProps.comparativeErrorMeasureData = (0, _reactWrapperJs.parseAttrValue)('comparative-error-measure-data', this.getAttribute('comparative-error-measure-data'));
61146
+ if (this._comparativeErrorMeasureLegendData && typeof this._comparativeErrorMeasureLegendData !== 'string') extraProps.comparativeErrorMeasureLegendData = this._comparativeErrorMeasureLegendData;
61147
+ else if (this.getAttribute('comparative-error-measure-legend-data')) extraProps.comparativeErrorMeasureLegendData = (0, _reactWrapperJs.parseAttrValue)('comparative-error-measure-legend-data', this.getAttribute('comparative-error-measure-legend-data'));
61132
61148
  if (this._comparativeWarningMeasureData && typeof this._comparativeWarningMeasureData !== 'string') extraProps.comparativeWarningMeasureData = this._comparativeWarningMeasureData;
61133
- else if (this.getAttribute('comparative-warning-measure-data')) extraProps.thresholds = (0, _reactWrapperJs.parseAttrValue)('comparative-warning-measure-data', this.getAttribute('comparative-warning-measure-data'));
61149
+ else if (this.getAttribute('comparative-warning-measure-data')) extraProps.comparativeWarningMeasureData = (0, _reactWrapperJs.parseAttrValue)('comparative-warning-measure-data', this.getAttribute('comparative-warning-measure-data'));
61150
+ if (this._comparativeWarningMeasureLegendData && typeof this._comparativeWarningMeasureLegendData !== 'string') extraProps.comparativeWarningMeasureLegendData = this._comparativeWarningMeasureLegendData;
61151
+ else if (this.getAttribute('comparative-warning-measure-legend-data')) extraProps.comparativeWarningMeasureLegendData = (0, _reactWrapperJs.parseAttrValue)('comparative-warning-measure-legend-data', this.getAttribute('comparative-warning-measure-legend-data'));
61134
61152
  if (this._primaryDotMeasureData && typeof this._primaryDotMeasureData !== 'string') extraProps.primaryDotMeasureData = this._primaryDotMeasureData;
61135
- else if (this.getAttribute('primary-dot-measure-data')) extraProps.thresholds = (0, _reactWrapperJs.parseAttrValue)('primary-dot-measure-data', this.getAttribute('primary-dot-measure-data'));
61153
+ else if (this.getAttribute('primary-dot-measure-data')) extraProps.primaryDotMeasureData = (0, _reactWrapperJs.parseAttrValue)('primary-dot-measure-data', this.getAttribute('primary-dot-measure-data'));
61154
+ if (this._primaryDotMeasureLegendData && typeof this._primaryDotMeasureLegendData !== 'string') extraProps.primaryDotMeasureLegendData = this._primaryDotMeasureLegendData;
61155
+ else if (this.getAttribute('primary-dot-measure-legend-data')) extraProps.primaryDotMeasureLegendData = (0, _reactWrapperJs.parseAttrValue)('primary-dot-measure-legend-data', this.getAttribute('primary-dot-measure-legend-data'));
61136
61156
  if (this._primarySegmentedMeasureData && typeof this._primarySegmentedMeasureData !== 'string') extraProps.primarySegmentedMeasureData = this._primarySegmentedMeasureData;
61137
- else if (this.getAttribute('primary-segmented-measure-data')) extraProps.thresholds = (0, _reactWrapperJs.parseAttrValue)('primary-segmented-measure-data', this.getAttribute('primary-segmented-measure-data'));
61157
+ else if (this.getAttribute('primary-segmented-measure-data')) extraProps.primarySegmentedMeasureData = (0, _reactWrapperJs.parseAttrValue)('primary-segmented-measure-data', this.getAttribute('primary-segmented-measure-data'));
61158
+ if (this._primarySegmentedMeasureLegendData && typeof this._primarySegmentedMeasureLegendData !== 'string') extraProps.primarySegmentedMeasureLegendData = this._primarySegmentedMeasureLegendData;
61159
+ else if (this.getAttribute('primary-segmented-measure-legend-data')) extraProps.primarySegmentedMeasureLegendData = (0, _reactWrapperJs.parseAttrValue)('primary-segmented-measure-legend-data', this.getAttribute('primary-segmented-measure-legend-data'));
61138
61160
  if (this._qualitativeRangeData && typeof this._qualitativeRangeData !== 'string') extraProps.qualitativeRangeData = this._qualitativeRangeData;
61139
- else if (this.getAttribute('qualitative-range-data')) extraProps.thresholds = (0, _reactWrapperJs.parseAttrValue)('qualitative-range-data', this.getAttribute('qualitative-range-data'));
61161
+ else if (this.getAttribute('qualitative-range-data')) extraProps.qualitativeRangeData = (0, _reactWrapperJs.parseAttrValue)('qualitative-range-data', this.getAttribute('qualitative-range-data'));
61162
+ if (this._qualitativeRangeLegendData && typeof this._qualitativeRangeLegendData !== 'string') extraProps.qualitativeRangeLegendData = this._qualitativeRangeLegendData;
61163
+ else if (this.getAttribute('qualitative-range-legend-data')) extraProps.qualitativeRangeLegendData = (0, _reactWrapperJs.parseAttrValue)('qualitative-range-legend-data', this.getAttribute('qualitative-range-legend-data'));
61140
61164
  return [
61141
61165
  (0, _victory.ChartBullet),
61142
61166
  extraProps
@@ -61149,6 +61173,13 @@ class ChartBulletWebComponent extends (0, _reactWrapperJs.ReactWrapperElement) {
61149
61173
  this._comparativeErrorMeasureData = value;
61150
61174
  this._notifyChange();
61151
61175
  }
61176
+ get comparativeErrorMeasureLegendData() {
61177
+ return this._comparativeErrorMeasureLegendData;
61178
+ }
61179
+ set comparativeErrorMeasureLegendData(value) {
61180
+ this._comparativeErrorMeasureLegendData = value;
61181
+ this._notifyChange();
61182
+ }
61152
61183
  get comparativeWarningMeasureData() {
61153
61184
  return this._comparativeWarningMeasureData;
61154
61185
  }
@@ -61156,6 +61187,20 @@ class ChartBulletWebComponent extends (0, _reactWrapperJs.ReactWrapperElement) {
61156
61187
  this._comparativeWarningMeasureData = value;
61157
61188
  this._notifyChange();
61158
61189
  }
61190
+ get comparativeWarningMeasureLegendData() {
61191
+ return this._comparativeWarningMeasureLegendData;
61192
+ }
61193
+ set comparativeWarningMeasureLegendData(value) {
61194
+ this._comparativeWarningMeasureLegendData = value;
61195
+ this._notifyChange();
61196
+ }
61197
+ get maxDomain() {
61198
+ return this._maxDomain;
61199
+ }
61200
+ set maxDomain(value) {
61201
+ this._maxDomain = value;
61202
+ this._notifyChange();
61203
+ }
61159
61204
  get primaryDotMeasureData() {
61160
61205
  return this._primaryDotMeasureData;
61161
61206
  }
@@ -61163,6 +61208,13 @@ class ChartBulletWebComponent extends (0, _reactWrapperJs.ReactWrapperElement) {
61163
61208
  this._primaryDotMeasureData = value;
61164
61209
  this._notifyChange();
61165
61210
  }
61211
+ get primaryDotMeasureLegendData() {
61212
+ return this._primaryDotMeasureLegendData;
61213
+ }
61214
+ set primaryDotMeasureLegendData(value) {
61215
+ this._primaryDotMeasureLegendData = value;
61216
+ this._notifyChange();
61217
+ }
61166
61218
  get primarySegmentedMeasureData() {
61167
61219
  return this._primarySegmentedMeasureData;
61168
61220
  }
@@ -61170,6 +61222,13 @@ class ChartBulletWebComponent extends (0, _reactWrapperJs.ReactWrapperElement) {
61170
61222
  this._primarySegmentedMeasureData = value;
61171
61223
  this._notifyChange();
61172
61224
  }
61225
+ get primarySegmentedMeasureLegendData() {
61226
+ return this._primarySegmentedMeasureLegendData;
61227
+ }
61228
+ set primarySegmentedMeasureLegendData(value) {
61229
+ this._primarySegmentedMeasureLegendData = value;
61230
+ this._notifyChange();
61231
+ }
61173
61232
  get qualitativeRangeData() {
61174
61233
  return this._qualitativeRangeData;
61175
61234
  }
@@ -61177,6 +61236,13 @@ class ChartBulletWebComponent extends (0, _reactWrapperJs.ReactWrapperElement) {
61177
61236
  this._qualitativeRangeData = value;
61178
61237
  this._notifyChange();
61179
61238
  }
61239
+ get qualitativeRangeLegendData() {
61240
+ return this._qualitativeRangeLegendData;
61241
+ }
61242
+ set qualitativeRangeLegendData(value) {
61243
+ this._qualitativeRangeLegendData = value;
61244
+ this._notifyChange();
61245
+ }
61180
61246
  }
61181
61247
  customElements.define('pfj-chart-bullet', ChartBulletWebComponent);
61182
61248
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@patternfly-java/charts",
3
3
  "private": false,
4
- "version": "0.0.8",
4
+ "version": "0.0.9",
5
5
  "description": "Web Components wrapper around PatternFly React Charts",
6
6
  "homepage": "https://patternfly-java.github.io/",
7
7
  "repository": {
package/src/charts.js CHANGED
@@ -14,17 +14,17 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- // Base class for J2CL JsInterop base class
17
+ // Base class for the J2CL JsInterop base class org.patternfly.chart.ChartElement
18
18
  class ChartElement extends HTMLElement {
19
19
  }
20
20
  window.ChartElement = ChartElement;
21
21
 
22
+ import './components/pfj-chart-bullet.js';
22
23
  import './components/pfj-chart-donut.js';
23
24
  import './components/pfj-chart-donut-utilization.js';
24
25
  import './components/pfj-chart-donut-threshold.js';
25
- import './components/pfj-chart-bullet.js';
26
26
 
27
+ export {ChartBulletWebComponent} from './components/pfj-chart-bullet.js';
27
28
  export {ChartDonutWebComponent} from './components/pfj-chart-donut.js';
28
29
  export {ChartDonutUtilizationWebComponent} from './components/pfj-chart-donut-utilization.js';
29
30
  export {ChartDonutThresholdWebComponent} from './components/pfj-chart-donut-threshold.js';
30
- export {ChartBulletWebComponent} from './components/pfj-chart-bullet.js';
@@ -21,10 +21,16 @@ export class ChartBulletWebComponent extends ReactWrapperElement {
21
21
  constructor() {
22
22
  super();
23
23
  this._comparativeErrorMeasureData = undefined;
24
+ this._comparativeErrorMeasureLegendData = undefined;
24
25
  this._comparativeWarningMeasureData = undefined;
26
+ this._comparativeWarningMeasureLegendData = undefined;
27
+ this._maxDomain = undefined;
25
28
  this._primaryDotMeasureData = undefined;
29
+ this._primaryDotMeasureLegendData = undefined;
26
30
  this._primarySegmentedMeasureData = undefined;
31
+ this._primarySegmentedMeasureLegendData = undefined;
27
32
  this._qualitativeRangeData = undefined;
33
+ this._qualitativeRangeLegendData = undefined;
28
34
  }
29
35
 
30
36
  getReactComponent() {
@@ -32,27 +38,52 @@ export class ChartBulletWebComponent extends ReactWrapperElement {
32
38
  if (this._comparativeErrorMeasureData && typeof this._comparativeErrorMeasureData !== 'string') {
33
39
  extraProps.comparativeErrorMeasureData = this._comparativeErrorMeasureData;
34
40
  } else if (this.getAttribute('comparative-error-measure-data')) {
35
- extraProps.thresholds = parseAttrValue('comparative-error-measure-data', this.getAttribute('comparative-error-measure-data'));
41
+ extraProps.comparativeErrorMeasureData = parseAttrValue('comparative-error-measure-data', this.getAttribute('comparative-error-measure-data'));
42
+ }
43
+ if (this._comparativeErrorMeasureLegendData && typeof this._comparativeErrorMeasureLegendData !== 'string') {
44
+ extraProps.comparativeErrorMeasureLegendData = this._comparativeErrorMeasureLegendData;
45
+ } else if (this.getAttribute('comparative-error-measure-legend-data')) {
46
+ extraProps.comparativeErrorMeasureLegendData = parseAttrValue('comparative-error-measure-legend-data', this.getAttribute('comparative-error-measure-legend-data'));
36
47
  }
37
48
  if (this._comparativeWarningMeasureData && typeof this._comparativeWarningMeasureData !== 'string') {
38
49
  extraProps.comparativeWarningMeasureData = this._comparativeWarningMeasureData;
39
50
  } else if (this.getAttribute('comparative-warning-measure-data')) {
40
- extraProps.thresholds = parseAttrValue('comparative-warning-measure-data', this.getAttribute('comparative-warning-measure-data'));
51
+ extraProps.comparativeWarningMeasureData = parseAttrValue('comparative-warning-measure-data', this.getAttribute('comparative-warning-measure-data'));
52
+ }
53
+ if (this._comparativeWarningMeasureLegendData && typeof this._comparativeWarningMeasureLegendData !== 'string') {
54
+ extraProps.comparativeWarningMeasureLegendData = this._comparativeWarningMeasureLegendData;
55
+ } else if (this.getAttribute('comparative-warning-measure-legend-data')) {
56
+ extraProps.comparativeWarningMeasureLegendData = parseAttrValue('comparative-warning-measure-legend-data', this.getAttribute('comparative-warning-measure-legend-data'));
41
57
  }
42
58
  if (this._primaryDotMeasureData && typeof this._primaryDotMeasureData !== 'string') {
43
59
  extraProps.primaryDotMeasureData = this._primaryDotMeasureData;
44
60
  } else if (this.getAttribute('primary-dot-measure-data')) {
45
- extraProps.thresholds = parseAttrValue('primary-dot-measure-data', this.getAttribute('primary-dot-measure-data'));
61
+ extraProps.primaryDotMeasureData = parseAttrValue('primary-dot-measure-data', this.getAttribute('primary-dot-measure-data'));
62
+ }
63
+ if (this._primaryDotMeasureLegendData && typeof this._primaryDotMeasureLegendData !== 'string') {
64
+ extraProps.primaryDotMeasureLegendData = this._primaryDotMeasureLegendData;
65
+ } else if (this.getAttribute('primary-dot-measure-legend-data')) {
66
+ extraProps.primaryDotMeasureLegendData = parseAttrValue('primary-dot-measure-legend-data', this.getAttribute('primary-dot-measure-legend-data'));
46
67
  }
47
68
  if (this._primarySegmentedMeasureData && typeof this._primarySegmentedMeasureData !== 'string') {
48
69
  extraProps.primarySegmentedMeasureData = this._primarySegmentedMeasureData;
49
70
  } else if (this.getAttribute('primary-segmented-measure-data')) {
50
- extraProps.thresholds = parseAttrValue('primary-segmented-measure-data', this.getAttribute('primary-segmented-measure-data'));
71
+ extraProps.primarySegmentedMeasureData = parseAttrValue('primary-segmented-measure-data', this.getAttribute('primary-segmented-measure-data'));
72
+ }
73
+ if (this._primarySegmentedMeasureLegendData && typeof this._primarySegmentedMeasureLegendData !== 'string') {
74
+ extraProps.primarySegmentedMeasureLegendData = this._primarySegmentedMeasureLegendData;
75
+ } else if (this.getAttribute('primary-segmented-measure-legend-data')) {
76
+ extraProps.primarySegmentedMeasureLegendData = parseAttrValue('primary-segmented-measure-legend-data', this.getAttribute('primary-segmented-measure-legend-data'));
51
77
  }
52
78
  if (this._qualitativeRangeData && typeof this._qualitativeRangeData !== 'string') {
53
79
  extraProps.qualitativeRangeData = this._qualitativeRangeData;
54
80
  } else if (this.getAttribute('qualitative-range-data')) {
55
- extraProps.thresholds = parseAttrValue('qualitative-range-data', this.getAttribute('qualitative-range-data'));
81
+ extraProps.qualitativeRangeData = parseAttrValue('qualitative-range-data', this.getAttribute('qualitative-range-data'));
82
+ }
83
+ if (this._qualitativeRangeLegendData && typeof this._qualitativeRangeLegendData !== 'string') {
84
+ extraProps.qualitativeRangeLegendData = this._qualitativeRangeLegendData;
85
+ } else if (this.getAttribute('qualitative-range-legend-data')) {
86
+ extraProps.qualitativeRangeLegendData = parseAttrValue('qualitative-range-legend-data', this.getAttribute('qualitative-range-legend-data'));
56
87
  }
57
88
 
58
89
  return [ChartBullet, extraProps];
@@ -67,6 +98,15 @@ export class ChartBulletWebComponent extends ReactWrapperElement {
67
98
  this._notifyChange();
68
99
  }
69
100
 
101
+ get comparativeErrorMeasureLegendData() {
102
+ return this._comparativeErrorMeasureLegendData;
103
+ }
104
+
105
+ set comparativeErrorMeasureLegendData(value) {
106
+ this._comparativeErrorMeasureLegendData = value;
107
+ this._notifyChange();
108
+ }
109
+
70
110
  get comparativeWarningMeasureData() {
71
111
  return this._comparativeWarningMeasureData;
72
112
  }
@@ -76,6 +116,24 @@ export class ChartBulletWebComponent extends ReactWrapperElement {
76
116
  this._notifyChange();
77
117
  }
78
118
 
119
+ get comparativeWarningMeasureLegendData() {
120
+ return this._comparativeWarningMeasureLegendData;
121
+ }
122
+
123
+ set comparativeWarningMeasureLegendData(value) {
124
+ this._comparativeWarningMeasureLegendData = value;
125
+ this._notifyChange();
126
+ }
127
+
128
+ get maxDomain() {
129
+ return this._maxDomain;
130
+ }
131
+
132
+ set maxDomain(value) {
133
+ this._maxDomain = value;
134
+ this._notifyChange();
135
+ }
136
+
79
137
  get primaryDotMeasureData() {
80
138
  return this._primaryDotMeasureData;
81
139
  }
@@ -85,6 +143,15 @@ export class ChartBulletWebComponent extends ReactWrapperElement {
85
143
  this._notifyChange();
86
144
  }
87
145
 
146
+ get primaryDotMeasureLegendData() {
147
+ return this._primaryDotMeasureLegendData;
148
+ }
149
+
150
+ set primaryDotMeasureLegendData(value) {
151
+ this._primaryDotMeasureLegendData = value;
152
+ this._notifyChange();
153
+ }
154
+
88
155
  get primarySegmentedMeasureData() {
89
156
  return this._primarySegmentedMeasureData;
90
157
  }
@@ -94,6 +161,15 @@ export class ChartBulletWebComponent extends ReactWrapperElement {
94
161
  this._notifyChange();
95
162
  }
96
163
 
164
+ get primarySegmentedMeasureLegendData() {
165
+ return this._primarySegmentedMeasureLegendData;
166
+ }
167
+
168
+ set primarySegmentedMeasureLegendData(value) {
169
+ this._primarySegmentedMeasureLegendData = value;
170
+ this._notifyChange();
171
+ }
172
+
97
173
  get qualitativeRangeData() {
98
174
  return this._qualitativeRangeData;
99
175
  }
@@ -102,6 +178,15 @@ export class ChartBulletWebComponent extends ReactWrapperElement {
102
178
  this._qualitativeRangeData = value;
103
179
  this._notifyChange();
104
180
  }
181
+
182
+ get qualitativeRangeLegendData() {
183
+ return this._qualitativeRangeLegendData;
184
+ }
185
+
186
+ set qualitativeRangeLegendData(value) {
187
+ this._qualitativeRangeLegendData = value;
188
+ this._notifyChange();
189
+ }
105
190
  }
106
191
 
107
192
  customElements.define('pfj-chart-bullet', ChartBulletWebComponent);