Skip to content

Commit

Permalink
Review fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
barbara-chaves committed Oct 5, 2023
1 parent d7230fb commit 6e09a32
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 163 deletions.
11 changes: 10 additions & 1 deletion app/javascript/components/tpi/charts/ascor-bubble/Chart.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@ import SingleCell from './SingleCell';

import { SCORE_RANGES } from './constants';

const SCALE = 1.25;

// radius of bubbles
const COMPANIES_MARKET_CAP_GROUPS = {
large: 10 * SCALE,
medium: 5 * SCALE,
small: 3 * SCALE
};

const SINGLE_CELL_SVG_WIDTH = 120;
const SINGLE_CELL_SVG_HEIGHT = 100;

Expand Down Expand Up @@ -157,7 +166,7 @@ const createRow = (dataRow, area, pillars, disabled_bubbles_areas) => {
const countriesBubbles = disabled_bubbles_areas.includes(area)
? []
: el.map((result) => ({
value: 10,
value: COMPANIES_MARKET_CAP_GROUPS[result.market_cap_group],
tooltipContent: {
header: result.country_name,
value: result.result
Expand Down

This file was deleted.

3 changes: 1 addition & 2 deletions app/javascript/components/tpi/charts/ascor-bubble/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import Chart from './Chart';
import CompaniesAccordion from './CompaniesAccordion';

export {Chart, CompaniesAccordion};
export { Chart };

0 comments on commit 6e09a32

Please sign in to comment.