From 0892e44422e798ea92e23ff6251031aaff55f0f8 Mon Sep 17 00:00:00 2001 From: mlisnic Date: Sat, 7 Sep 2024 17:07:51 -0600 Subject: [PATCH] industry average --- public/stage-3/config-stage-3.json | 20 ++++---------------- src/public/viz-guardrails/DataExplorer.tsx | 2 +- src/public/viz-guardrails/LineChart.tsx | 4 ++-- 3 files changed, 7 insertions(+), 19 deletions(-) diff --git a/public/stage-3/config-stage-3.json b/public/stage-3/config-stage-3.json index 219ff745e..edf94b61d 100644 --- a/public/stage-3/config-stage-3.json +++ b/public/stage-3/config-stage-3.json @@ -53,7 +53,7 @@ "id": "agree", "type": "likert", "location": "belowStimulus", - "prompt": "The visualization supports the idea that stock C yielded the highest returns in the industry in 2023:", + "prompt": "The visualization supports the idea that stock C yielded the highest returns in the entire industry in 2023:", "preset": 5, "leftLabel": "Strongly disagree", "rightLabel": "Strongly agree", @@ -112,7 +112,7 @@ "id": "agree", "type": "likert", "location": "belowStimulus", - "prompt": "The visualization supports the idea that stock E yielded the highest returns in the industry in 2023:", + "prompt": "The visualization supports the idea that stock E yielded the highest returns in the entire industry in 2023:", "preset": 5, "leftLabel": "Strongly disagree", "rightLabel": "Strongly agree", @@ -177,7 +177,7 @@ "id": "agree", "type": "likert", "location": "belowStimulus", - "prompt": "The visualization supports the idea that stock A yielded the highest returns in the industry in 2023:", + "prompt": "The visualization supports the idea that stock A yielded the highest returns in the entire industry in 2023:", "preset": 5, "leftLabel": "Strongly disagree", "rightLabel": "Strongly agree", @@ -492,21 +492,9 @@ "order": "latinSquare", "numSamples": 1, "components": [ - "stock-simple-a-n", - "stock-simple-a-sd", "stock-simple-a-ss", - "stock-simple-a-jd", - "stock-simple-a-js", - "stock-simple-e-n", - "stock-simple-e-sd", "stock-simple-e-ss", - "stock-simple-e-jd", - "stock-simple-e-js", - "stock-simple-c-n", - "stock-simple-c-sd", - "stock-simple-c-ss", - "stock-simple-c-jd", - "stock-simple-c-js" + "stock-simple-c-ss" ] } ] diff --git a/src/public/viz-guardrails/DataExplorer.tsx b/src/public/viz-guardrails/DataExplorer.tsx index cee0a2c03..6d546bf74 100644 --- a/src/public/viz-guardrails/DataExplorer.tsx +++ b/src/public/viz-guardrails/DataExplorer.tsx @@ -165,7 +165,7 @@ export function DataExplorer({ parameters, setAnswer }: StimulusParams {guardrail === 'super_summ' ? ( - Shaded area represents the middle 50% of all values. + Shaded area contains the industry average and shows the middle 50% of all values in the industry. ) : null} {guardrail === 'juxt_summ' ? ( Bar on the left highlights the range of selection among all data. diff --git a/src/public/viz-guardrails/LineChart.tsx b/src/public/viz-guardrails/LineChart.tsx index 10e7ec7c0..e5de006fb 100644 --- a/src/public/viz-guardrails/LineChart.tsx +++ b/src/public/viz-guardrails/LineChart.tsx @@ -189,7 +189,7 @@ export function LineChart({ }; }, [xScale, yScale, guardrail, avgData, dataname]); - const averageLabel = useMemo(() => (dataname === 'clean_stocks' ? 'Industry Index' : 'Average'), [dataname]); + const averageLabel = useMemo(() => (dataname === 'clean_stocks' ? 'Industry Average' : 'Average'), [dataname]); const getPolicyLabel = (country: string) => { if (country === 'Eldoril North') { @@ -336,7 +336,7 @@ export function LineChart({ ))} {labelPos?.map((x) => ( - +