From 10665e285b4b6f78b977b8f8fc0549a2bbab84cb Mon Sep 17 00:00:00 2001 From: Georgios Andreadis Date: Thu, 21 Sep 2017 23:07:38 +0200 Subject: Add load color legend --- .../sidebars/simulation/LoadMetricComponent.js | 33 ++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 src/components/sidebars/simulation/LoadMetricComponent.js (limited to 'src/components/sidebars/simulation/LoadMetricComponent.js') diff --git a/src/components/sidebars/simulation/LoadMetricComponent.js b/src/components/sidebars/simulation/LoadMetricComponent.js new file mode 100644 index 00000000..19b9927b --- /dev/null +++ b/src/components/sidebars/simulation/LoadMetricComponent.js @@ -0,0 +1,33 @@ +import React from "react"; +import {SIM_HIGH_COLOR, SIM_LOW_COLOR, SIM_MID_HIGH_COLOR, SIM_MID_LOW_COLOR} from "../../../colors/index"; +import {LOAD_NAME_MAP} from "../../../util/simulation-load"; + +const LoadMetricComponent = ({loadMetric}) => ( +
+
Colors represent {LOAD_NAME_MAP[loadMetric]}
+
+ + + + +
+
+); + +export default LoadMetricComponent; -- cgit v1.2.3