Skip to content

Bug: normalize comparison chart progression range across currencies #110

@pascalwhoop

Description

@pascalwhoop

Summary

Adding a high-nominal currency country like Sweden stretches the comparison chart gross range far beyond the intended baseline.

Reproduction

  1. Open the calculator comparison view.
  2. Compare countries with synced salaries in mixed currencies, e.g. US, CH, GR, PT, IT, then add Sweden.
  3. Open the progression chart.

Actual

The chart upper bound jumps to values derived from the highest local-currency gross amount (for example SEK), which then gets reused for every country. This makes the net salary chart run into multi-million gross ranges that do not reflect the shared baseline.

Expected

The progression chart range should be normalized to a shared baseline currency, and each country should be evaluated at its own local-currency gross equivalent for each x-axis point.

Notes

Current implementation appears to derive / from raw form values and sends the same numeric progression points to all countries, even when those countries use different currencies.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions