Skip to content

Commit a7c119c

Browse files
authored
Merge pull request #9 from oslabs-beta/jeff
Jeff
2 parents 84d5ff5 + 4515169 commit a7c119c

File tree

8 files changed

+34
-367
lines changed

8 files changed

+34
-367
lines changed

__tests__/charts/LatencyChart.test.tsx

Lines changed: 0 additions & 71 deletions
This file was deleted.

__tests__/charts/MemoryChart.test.tsx

Lines changed: 0 additions & 66 deletions
This file was deleted.

__tests__/charts/ProcessChart.test.tsx

Lines changed: 0 additions & 75 deletions
This file was deleted.

__tests__/charts/SpeedChart.test.tsx

Lines changed: 0 additions & 71 deletions
This file was deleted.

__tests__/charts/TemperatureChart.test.tsx

Lines changed: 0 additions & 71 deletions
This file was deleted.

app/charts/HealthChart.tsx

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)