diff --git a/src/AllCountries/HorizontalScale.tsx b/src/AllCountries/HorizontalScale.tsx index dbcfe8c..bb5d8ae 100644 --- a/src/AllCountries/HorizontalScale.tsx +++ b/src/AllCountries/HorizontalScale.tsx @@ -7,15 +7,13 @@ interface Props { countryDsa: CountryCategoryType[]; categories: string[]; id: string; - year: number; title: string; svgHeight: number; chartSource: ChartSourceType; } export function HorizontalScale(props: Props) { - const { countryDsa, categories, id, year, title, svgHeight, chartSource } = - props; + const { countryDsa, categories, id, title, svgHeight, chartSource } = props; const containerRef = useRef(null); const [svgWidth, setSvgWidth] = useState(400); const margin = { top: 20, right: 40, bottom: 20, left: 0 }; @@ -34,9 +32,6 @@ export function HorizontalScale(props: Props) { return (
{title}
-

- Year: {year} -

{value !== '' && categories.length > 0 ? ( <> (null); const [svgWidth, setSvgWidth] = useState(400); @@ -61,10 +60,7 @@ export function LinearDotsComparison(props: Props) { }, [svgWidth]); return (
-
{title}
-

- Year: {year} -

+
{title}
{countryData !== undefined && data.length > 0 ? ( <> d.graph === 'Credit Ratings')[0].year - } svgHeight={100} selectedCountryCode={selectedCountry.value} chartSource={ @@ -159,9 +156,6 @@ export function AllCountries(props: Props) { categories={dsaCategories} title='DSA debt distress rating' id='countryDsaRatingScale' - year={ - countriesSources.filter(d => d.graph === 'DSA Ratings')[0].year - } svgHeight={100} chartSource={ countriesSources.filter(d => d.graph === 'DSA Ratings')[0] @@ -262,8 +256,9 @@ export function AllCountries(props: Props) { 2023 in in million (M) or billion (B) USD. The graph on the left depicts government net interest payments (as a percentage of revenue), and the graph on the right total external debt servicing - on external PPG debt (as a percentage of revenue or exports). Both - graphs cover the period 2000-2025. + on external public and publicly guaranteed (PPG) debt (as a + percentage of revenue or exports). Both graphs cover the period + 2000-2025.