work around missing type information after typescript update
This commit is contained in:
@@ -25,6 +25,8 @@ export class PlotDetailsComponent {
|
|||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
this.hasPercentiles = false;
|
this.hasPercentiles = false;
|
||||||
this.percentilesToPlot.clear();
|
this.percentilesToPlot.clear();
|
||||||
|
|
||||||
|
console.log("plotdetails.stats: " + JSON.stringify(this.stats));
|
||||||
if (this.stats) {
|
if (this.stats) {
|
||||||
for (let i = 0; i < this.stats.dataSeriesStats.length; i++)
|
for (let i = 0; i < this.stats.dataSeriesStats.length; i++)
|
||||||
{
|
{
|
||||||
@@ -55,8 +57,8 @@ export class PlotDetailsComponent {
|
|||||||
toPercent(statsRow: DataSeriesStats, statsCol: DataSeriesStats, key: string){
|
toPercent(statsRow: DataSeriesStats, statsCol: DataSeriesStats, key: string){
|
||||||
const percentile = this.percentilesToPlot.get(key);
|
const percentile = this.percentilesToPlot.get(key);
|
||||||
if (percentile) {
|
if (percentile) {
|
||||||
const rowValue = statsRow.percentiles.get(percentile);
|
const rowValue = (<any>statsRow.percentiles)[percentile];
|
||||||
const columnValue = statsCol.percentiles.get(percentile);
|
const columnValue = (<any>statsCol.percentiles)[percentile];
|
||||||
if (rowValue !== undefined && columnValue !== undefined) {
|
if (rowValue !== undefined && columnValue !== undefined) {
|
||||||
return this.utils.toPercent(rowValue / columnValue);
|
return this.utils.toPercent(rowValue / columnValue);
|
||||||
}
|
}
|
||||||
@@ -67,7 +69,8 @@ export class PlotDetailsComponent {
|
|||||||
percentileStat(key: string, stat: DataSeriesStats): string{
|
percentileStat(key: string, stat: DataSeriesStats): string{
|
||||||
const plotKey = this.percentilesToPlot.get(key);
|
const plotKey = this.percentilesToPlot.get(key);
|
||||||
if (plotKey !== undefined){
|
if (plotKey !== undefined){
|
||||||
const value = stat.percentiles.get(plotKey);
|
console.log("stat.percentiles: ", stat.percentiles);
|
||||||
|
const value = (<any>stat.percentiles)[plotKey];
|
||||||
if (value !== undefined){
|
if (value !== undefined){
|
||||||
return this.utils.format(value, this.valueFormat);
|
return this.utils.format(value, this.valueFormat);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user