Skip to content

Commit

Permalink
Change xValues to bigint array
Browse files Browse the repository at this point in the history
Adapt to the change in the XYSeries model.

Signed-off-by: Patrick Tasse <patrick.tasse@ericsson.com>
  • Loading branch information
PatrickTasse committed Jan 12, 2022
1 parent 0dae0ba commit 145ff59
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -746,7 +746,7 @@ export class XYOutputComponent extends AbstractTreeOutputComponent<AbstractOutpu

private buildScatterData(seriesObj: XYSeries[]) {
const dataSetArray = new Array<any>();
let xValues: number[] = [];
let xValues: bigint[] = [];
let yValues: number[] = [];
let pairs: xyPair[] = [];
const offset = this.getChartOffset();
Expand All @@ -757,7 +757,7 @@ export class XYOutputComponent extends AbstractTreeOutputComponent<AbstractOutpu
yValues = series.yValues;

xValues.forEach((value, index) => {
const adjusted = Number(BigInt(value.toString()) - offset);
const adjusted = Number(value - offset);
pairs.push(new xyPair(adjusted, yValues[index]));
});

Expand All @@ -784,7 +784,7 @@ export class XYOutputComponent extends AbstractTreeOutputComponent<AbstractOutpu

private buildXYData(seriesObj: XYSeries[]) {
const dataSetArray = new Array<any>();
let xValues: number[] = [];
let xValues: bigint[] = [];
seriesObj.forEach(series => {
const color = this.getSeriesColor(series.seriesName);
xValues = series.xValues;
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -12208,7 +12208,7 @@ jsesc@~0.5.0:
resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-0.5.0.tgz#e7dee66e35d6fc16f710fe91d5cf69f70f08911d"
integrity sha1-597mbjXW/Bb3EP6R1c9p9w8IkR0=

json-bigint@sidorares/json-bigint#2c0a5f896d7888e68e5f4ae3c7ea5cd42fd54473:
"json-bigint@github:sidorares/json-bigint#2c0a5f896d7888e68e5f4ae3c7ea5cd42fd54473":
version "1.0.0"
resolved "https://codeload.github.com/sidorares/json-bigint/tar.gz/2c0a5f896d7888e68e5f4ae3c7ea5cd42fd54473"
dependencies:
Expand Down Expand Up @@ -18034,9 +18034,9 @@ tslib@^2.2.0, tslib@^2.3.1:
integrity sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw==

tsp-typescript-client@next:
version "0.4.0-next.4d094b0.0"
resolved "https://registry.yarnpkg.com/tsp-typescript-client/-/tsp-typescript-client-0.4.0-next.4d094b0.0.tgz#9300a69505ccb9353ec014f1ee11608b932a2a6e"
integrity sha512-pUTB72wNr07UGkT8m5h7HY1yPrxYcYFhKViMhdZLa+haFMdygdjRsjyGER2BUcjuC07j6OfK1EoV3uenLUmPYw==
version "0.4.0-next.f487b14.0"
resolved "https://registry.yarnpkg.com/tsp-typescript-client/-/tsp-typescript-client-0.4.0-next.f487b14.0.tgz#b8dbe9ad0c9e07a2c42acc76df6ebd128cc09b9e"
integrity sha512-Ez+mFyBVxLPOzqzsN/Q6oNv4vJOP1chwRX+F4YO5+v8FhHPO981/KT2PD4fNi+ZcElYrijIh+ZUJ7U1P+iWr0Q==
dependencies:
json-bigint sidorares/json-bigint#2c0a5f896d7888e68e5f4ae3c7ea5cd42fd54473
node-fetch "^2.5.0"
Expand Down

0 comments on commit 145ff59

Please sign in to comment.