11import React , { useState } from 'react' ;
22import Modal from './Modal.jsx' ;
33import pieChart from '../assets/pieChart.png'
4- import RequestTypesChart from '../charts/request-type-chart.jsx' ;
5- import ResponseCodesChart from '../charts/response-code-chart.jsx' ;
6- import RouteTrace from '../charts/route-trace.jsx' ;
7- import SpeedChart from '../charts/speed-chart.jsx' ;
8- import ProcessesChart from '../charts/processes-chart.jsx' ;
9- import TemperatureChart from '../charts/temperature-chart.jsx'
10- import LatencyChart from '../charts/latency-chart.jsx' ;
11- import MemoryChart from '../charts/memory-chart.jsx' ;
4+ import memoryChart from '../assets/memoryChart.png'
5+ import tempChart from '../assets/tempChart.png'
6+ import speedChart from '../assets/speedChart.png'
7+ import latencyChart from '../assets/latencyChart.png'
8+ import processingChart from '../assets/processingChart.png'
129
1310// Renders charts created with health and communication data for a selected database.
1411const ServiceDetails = ( props ) => {
@@ -30,13 +27,13 @@ const ServiceDetails = (props) => {
3027
3128 const buttonProperties = [
3229 { id : 'request' , alt : 'Request Data' , src : pieChart } ,
33- { id : 'response' , alt : 'Response Data' , src : 'https://st2.depositphotos.com/3894705/9581/i/950/depositphotos_95816620-stock-photo-round-button-shows-speedometer.jpg' } ,
34- { id : 'routes' , alt : 'Route Trace' , src : 'https://st2.depositphotos.com/3894705/9581/i/950/depositphotos_95816620-stock-photo-round-button-shows-speedometer.jpg' } ,
35- { id : 'speed' , alt : 'Speed Data' , src : 'https://st2.depositphotos.com/3894705/9581/i/950/depositphotos_95816620-stock-photo-round-button-shows-speedometer.jpg' } ,
36- { id : 'processes' , alt : 'Processes Data' , src : 'https://st2.depositphotos.com/3894705/9581/i/950/depositphotos_95816620-stock-photo-round-button-shows-speedometer.jpg' } ,
37- { id : 'latency' , alt : 'Latency Data' , src : 'https://st2.depositphotos.com/3894705/9581/i/950/depositphotos_95816620-stock-photo-round-button-shows-speedometer.jpg' } ,
38- { id : 'temperature' , alt : 'Temperature Data' , src : 'https://st2.depositphotos.com/3894705/9581/i/950/depositphotos_95816620-stock-photo-round-button-shows-speedometer.jpg' } ,
39- { id : 'memory' , alt : 'Memory Data' , src : 'https://st2.depositphotos.com/3894705/9581/i/950/depositphotos_95816620-stock-photo-round-button-shows-speedometer.jpg' } ,
30+ { id : 'response' , alt : 'Response Data' , src : pieChart } ,
31+ // { id: 'routes', alt: 'Route Trace', src: 'https://st2.depositphotos.com/3894705/9581/i/950/depositphotos_95816620-stock-photo-round-button-shows-speedometer.jpg' },
32+ { id : 'speed' , alt : 'Speed Data' , src : speedChart } ,
33+ { id : 'processes' , alt : 'Processes Data' , src : processingChart } ,
34+ { id : 'latency' , alt : 'Latency Data' , src : latencyChart } ,
35+ { id : 'temperature' , alt : 'Temperature Data' , src : tempChart } ,
36+ { id : 'memory' , alt : 'Memory Data' , src : memoryChart } ,
4037 ] ;
4138
4239 // Create the Health Info buttons and their associated properties. Each time a button is clicked,
0 commit comments