Skip to content

Commit

Permalink
changed name quantiles line chart
Browse files Browse the repository at this point in the history
  • Loading branch information
RoxanaTorre committed May 29, 2024
1 parent 5501c91 commit ebb7bca
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import { csv } from 'd3-fetch';
import { useEffect, useState } from 'react';
import { DebtGdp, CategoryData, ChartSourceType } from './Types';
import { RegionLineChart } from './RegionLineChart';
import { QuantilesLineChart } from './QuantilesLineChart';
import './style.css';

function App() {
Expand All @@ -27,7 +27,7 @@ function App() {
return (
<div className='undp-container'>
{debtToGdpData && categoriesData ? (
<RegionLineChart
<QuantilesLineChart
data={debtToGdpData}
categories={categoriesData}
chartSource={sourcesData.filter(d => d.graph === 'Debt to GDP')[0]}
Expand Down
4 changes: 2 additions & 2 deletions src/AppExternalDebtQuantiles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import { csv } from 'd3-fetch';
import { useEffect, useState } from 'react';
import { CategoryData, ChartSourceType } from './Types';
import { RegionLineChartNoOptions } from './RegionLineChart/index1';
import { QuantilesLineChartNoOptions } from './QuantilesLineChart/index1';
import './style.css';

function AppNetInterestQuantiles() {
Expand All @@ -29,7 +29,7 @@ function AppNetInterestQuantiles() {
return (
<div className='undp-container'>
{externalDebtQuantiles && categoriesData1 ? (
<RegionLineChartNoOptions
<QuantilesLineChartNoOptions
data={externalDebtQuantiles}
categories={categoriesData1}
title='Public and publicly guaranteed total external debt service as a
Expand Down
4 changes: 2 additions & 2 deletions src/AppNetInterestQuantiles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import { csv } from 'd3-fetch';
import { useEffect, useState } from 'react';
import { CategoryData, ChartSourceType } from './Types';
import { RegionLineChartNoOptions } from './RegionLineChart/index1';
import { QuantilesLineChartNoOptions } from './QuantilesLineChart/index1';
import './style.css';

function AppNetInterestQuantiles() {
Expand All @@ -29,7 +29,7 @@ function AppNetInterestQuantiles() {
return (
<div className='undp-container'>
{debtNetInterest && categoriesData1 ? (
<RegionLineChartNoOptions
<QuantilesLineChartNoOptions
data={debtNetInterest}
categories={categoriesData1}
title='General government net interest payments as percentage of revenue'
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ interface Props {

const totalExternalOptions = ['total', 'external'];

export function RegionLineChart(props: Props) {
export function QuantilesLineChart(props: Props) {
const { data, categories, chartSource } = props;
const [totalExternalSelection, setTotalExternalSelection] = useState('total');
const [categorySelection, setCategorySelection] = useState('All developing');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ interface Props {
option: string;
}

export function RegionLineChartNoOptions(props: Props) {
export function QuantilesLineChartNoOptions(props: Props) {
const { data, categories, title, yAxisName, id, chartSource, option } = props;
const [categorySelection, setCategorySelection] = useState('All developing');
return (
Expand Down

0 comments on commit ebb7bca

Please sign in to comment.