Skip to content

Commit

Permalink
refactoring: changing scale of bubbles at chart
Browse files Browse the repository at this point in the history
  • Loading branch information
martintomas committed Nov 5, 2024
1 parent 76e3aef commit 2e932aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/javascript/components/tpi/charts/ascor-bubble/Chart.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import ChartMobile from './chart-mobile';

const DESKTOP_MIN_WIDTH = 992;

const SCALE = 1;
const SCALE = 0.5;

// radius of bubbles
const COMPANIES_MARKET_CAP_GROUPS = {
Expand Down
2 changes: 1 addition & 1 deletion app/views/tpi/ascor/_emissions_chart.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
default_emissions_boundary_filter: 'Production - excluding LULUCF',
countries: ASCOR::Country.published.all.sort_by(&:name).map { |c| { id: c.id, iso: c.iso, name: c.name } },
default_countries: ASCOR::Country.published.where(iso: ASCOR::Country::DEFAULT_COUNTRIES).map(&:id),
emissions_data_url: emissions_chart_data_tpi_ascor_index_path
emissions_data_url: emissions_chart_data_tpi_ascor_index_path(emissions_assessment_date: @emissions_assessment_date)
}) %>
<%= react_component('InfoModal', {
title: "Country emission pathways",
Expand Down

0 comments on commit 2e932aa

Please sign in to comment.