Skip to content

Commit 904f402

Browse files
committed
drop sector data from cluster rep condition
1 parent 1114adf commit 904f402

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

src/public/viz-guardrails/LineChart.tsx

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -945,13 +945,7 @@ export function LineChart({
945945
if (selection) {
946946
labels = labels.concat(
947947
selection.map((country) => {
948-
const item = items.find((it) => it.name === country);
949-
let label = country;
950-
if (dataname === 'clean_data') {
951-
label = `${country}`;
952-
} else if (guardrail === 'cluster' && item?.sector) {
953-
label = `${country} (${item.sector})`;
954-
}
948+
const label = country;
955949
return {
956950
label,
957951
y: data.filter((val) => val[parameters.cat_var] === country).slice(-1).map((val) => yScale(val[parameters.y_var]))[0],

0 commit comments

Comments
 (0)