Skip to content

Commit

Permalink
Remove comment and unused index from map
Browse files Browse the repository at this point in the history
  • Loading branch information
emilom committed Apr 30, 2021
1 parent e78fea0 commit 3ea4e10
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
2 changes: 1 addition & 1 deletion src/components/visualisations/BarChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const BarChart: React.FC<BarChartProps> = ({ title, yLabel, data, isPreview = fa
return (
<Plot
useResizeHandler
data={data.map((el, index) => ({
data={data.map((el) => ({
type: 'bar',
x: el.map((d) => d.x),
y: el.map((d) => d.y),
Expand Down
8 changes: 0 additions & 8 deletions src/utils/visualisationMapping.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,6 @@ const taxAssesmentToCartesuanList = (rawData: TaxAssesment): BarChartData => {
return result;
};

/**
* { x: el.year, y: el.averageBankDeposits },
{ x: el.year, y: el.averageDebt },
*/

/**
* Default export
*/
export default {
// SSB
[`${DataSourceID.SSB_POPULATION}-${VisualisationType.LINE}`]: populationInNorwayToCartesian,
Expand Down

0 comments on commit 3ea4e10

Please sign in to comment.