@@ -50,24 +50,17 @@ const HealthChart: React.FC<HealthChartProps> = React.memo(props => {
50
50
// generates an array of plotly data objects to be passed into our plotly chart's data prop
51
51
const generatePlotlyDataObjects = ( chartDataObj : object ) : object [ ] => {
52
52
const arrayOfPlotlyDataObjects : PlotlyData [ ] = [ ] ;
53
- console . log ( 'chartData:::::::: ' , chartData ) ;
54
53
// iterate through the chartData
55
54
for ( const serviceName in chartDataObj ) {
56
- console . log ( 'SERVICENAME: ' , serviceName ) ;
57
55
// define the metrics for this service
58
56
const metrics = chartDataObj [ serviceName ] ;
59
- console . log ( 'METRICS: ' , metrics ) ;
60
57
// loop through the list of metrics for the current service
61
58
for ( const metricName in metrics ) {
62
- console . log ( 'METRICNAME: ' , metricName ) ;
63
59
// define the value and time arrays; allow data to be reassignable in case we need to convert the bytes data into megabytes
64
60
let dataArray = metrics [ metricName ] . value ;
65
- console . log ( 'DATAARRAY: ' , dataArray ) ;
66
61
const timeArray = metrics [ metricName ] . time ;
67
- console . log ( 'TIMEARRAY: ' , timeArray ) ;
68
62
// specifically for `Megabyte` types, convert the original data of bytes into a value of megabytes before graphing
69
63
if ( dataType === 'Memory in Megabytes' || dataType === 'Cache in Megabytes' ) {
70
- console . log ( 'DATATYPE: ' , dataType ) ;
71
64
dataArray = dataArray . map ( value => ( value / 1000000 ) . toFixed ( 2 ) ) ;
72
65
}
73
66
// create the plotly object
@@ -81,7 +74,6 @@ const HealthChart: React.FC<HealthChartProps> = React.memo(props => {
81
74
colors : [ '#fc4039' , '#4b54ea' , '#32b44f' , '#3788fc' , '#9c27b0' , '#febc2c' ] ,
82
75
} ,
83
76
} ;
84
- console . log ( 'PLOTLYDATAOBJECT: ' , plotlyDataObject )
85
77
// push the dataObject into the arrayOfPlotlyDataObjects
86
78
arrayOfPlotlyDataObjects . push ( plotlyDataObject ) ;
87
79
}
0 commit comments