@@ -50,24 +50,17 @@ const HealthChart: React.FC<HealthChartProps> = React.memo(props => {
5050 // generates an array of plotly data objects to be passed into our plotly chart's data prop
5151 const generatePlotlyDataObjects = ( chartDataObj : object ) : object [ ] => {
5252 const arrayOfPlotlyDataObjects : PlotlyData [ ] = [ ] ;
53- console . log ( 'chartData:::::::: ' , chartData ) ;
5453 // iterate through the chartData
5554 for ( const serviceName in chartDataObj ) {
56- console . log ( 'SERVICENAME: ' , serviceName ) ;
5755 // define the metrics for this service
5856 const metrics = chartDataObj [ serviceName ] ;
59- console . log ( 'METRICS: ' , metrics ) ;
6057 // loop through the list of metrics for the current service
6158 for ( const metricName in metrics ) {
62- console . log ( 'METRICNAME: ' , metricName ) ;
6359 // define the value and time arrays; allow data to be reassignable in case we need to convert the bytes data into megabytes
6460 let dataArray = metrics [ metricName ] . value ;
65- console . log ( 'DATAARRAY: ' , dataArray ) ;
6661 const timeArray = metrics [ metricName ] . time ;
67- console . log ( 'TIMEARRAY: ' , timeArray ) ;
6862 // specifically for `Megabyte` types, convert the original data of bytes into a value of megabytes before graphing
6963 if ( dataType === 'Memory in Megabytes' || dataType === 'Cache in Megabytes' ) {
70- console . log ( 'DATATYPE: ' , dataType ) ;
7164 dataArray = dataArray . map ( value => ( value / 1000000 ) . toFixed ( 2 ) ) ;
7265 }
7366 // create the plotly object
@@ -81,7 +74,6 @@ const HealthChart: React.FC<HealthChartProps> = React.memo(props => {
8174 colors : [ '#fc4039' , '#4b54ea' , '#32b44f' , '#3788fc' , '#9c27b0' , '#febc2c' ] ,
8275 } ,
8376 } ;
84- console . log ( 'PLOTLYDATAOBJECT: ' , plotlyDataObject )
8577 // push the dataObject into the arrayOfPlotlyDataObjects
8678 arrayOfPlotlyDataObjects . push ( plotlyDataObject ) ;
8779 }
0 commit comments