eurostat-map
    Preparing search index...

    Function map

    • Main factory function to create maps

      Parameters

      • type: "choropleth" | "ch"

        The type of map to create

      • Optionalconfig: ChoroplethConfig

        Configuration object

      Returns ChoroplethMap

      A map object with builder pattern methods

      import eurostatmap from 'eurostatmap';

      const map = eurostatmap.map('choropleth', {
      title: 'Population Density',
      stat: { eurostatDatasetCode: 'demo_r_d3dens' }
      });
      map.build();
    • Main factory function to create maps

      Parameters

      • type: "ps" | "proportionalSymbol" | "proportionalSymbols"

        The type of map to create

      • Optionalconfig: ProportionalSymbolConfig

        Configuration object

      Returns ProportionalSymbolMap

      A map object with builder pattern methods

      import eurostatmap from 'eurostatmap';

      const map = eurostatmap.map('choropleth', {
      title: 'Population Density',
      stat: { eurostatDatasetCode: 'demo_r_d3dens' }
      });
      map.build();
    • Main factory function to create maps

      Parameters

      • type: "categorical" | "ct"

        The type of map to create

      • Optionalconfig: CategoricalMapConfig

        Configuration object

      Returns CategoricalMap

      A map object with builder pattern methods

      import eurostatmap from 'eurostatmap';

      const map = eurostatmap.map('choropleth', {
      title: 'Population Density',
      stat: { eurostatDatasetCode: 'demo_r_d3dens' }
      });
      map.build();
    • Main factory function to create maps

      Parameters

      Returns BivariateChoroplethMap

      A map object with builder pattern methods

      import eurostatmap from 'eurostatmap';

      const map = eurostatmap.map('choropleth', {
      title: 'Population Density',
      stat: { eurostatDatasetCode: 'demo_r_d3dens' }
      });
      map.build();
    • Main factory function to create maps

      Parameters

      • type: "trivariateChoropleth" | "ternary" | "chtri"

        The type of map to create

      • Optionalconfig: TrivariateChoroplethConfig

        Configuration object

      Returns TrivariateChoroplethMap

      A map object with builder pattern methods

      import eurostatmap from 'eurostatmap';

      const map = eurostatmap.map('choropleth', {
      title: 'Population Density',
      stat: { eurostatDatasetCode: 'demo_r_d3dens' }
      });
      map.build();
    • Main factory function to create maps

      Parameters

      • type: "alpha" | "valueByAlpha"

        The type of map to create

      • Optionalconfig: ValueByAlphaConfig

        Configuration object

      Returns ValueByAlphaMap

      A map object with builder pattern methods

      import eurostatmap from 'eurostatmap';

      const map = eurostatmap.map('choropleth', {
      title: 'Population Density',
      stat: { eurostatDatasetCode: 'demo_r_d3dens' }
      });
      map.build();
    • Main factory function to create maps

      Parameters

      • type: "coxcomb" | "polar"

        The type of map to create

      • Optionalconfig: CoxcombMapConfig

        Configuration object

      Returns CoxcombMap

      A map object with builder pattern methods

      import eurostatmap from 'eurostatmap';

      const map = eurostatmap.map('choropleth', {
      title: 'Population Density',
      stat: { eurostatDatasetCode: 'demo_r_d3dens' }
      });
      map.build();
    • Main factory function to create maps

      Parameters

      • type: "bar" | "barComposition"

        The type of map to create

      • Optionalconfig: BarMapConfig

        Configuration object

      Returns BarMap

      A map object with builder pattern methods

      import eurostatmap from 'eurostatmap';

      const map = eurostatmap.map('choropleth', {
      title: 'Population Density',
      stat: { eurostatDatasetCode: 'demo_r_d3dens' }
      });
      map.build();
    • Main factory function to create maps

      Parameters

      • type: "stripeComposition" | "scomp" | "stripe"

        The type of map to create

      • Optionalconfig: StripeMapConfig

        Configuration object

      Returns StripeMap

      A map object with builder pattern methods

      import eurostatmap from 'eurostatmap';

      const map = eurostatmap.map('choropleth', {
      title: 'Population Density',
      stat: { eurostatDatasetCode: 'demo_r_d3dens' }
      });
      map.build();
    • Main factory function to create maps

      Parameters

      • type: "waffle"

        The type of map to create

      • Optionalconfig: WaffleMapConfig

        Configuration object

      Returns WaffleMap

      A map object with builder pattern methods

      import eurostatmap from 'eurostatmap';

      const map = eurostatmap.map('choropleth', {
      title: 'Population Density',
      stat: { eurostatDatasetCode: 'demo_r_d3dens' }
      });
      map.build();
    • Main factory function to create maps

      Parameters

      • type: "mushroom"

        The type of map to create

      • Optionalconfig: MushroomMapConfig

        Configuration object

      Returns MushroomMap

      A map object with builder pattern methods

      import eurostatmap from 'eurostatmap';

      const map = eurostatmap.map('choropleth', {
      title: 'Population Density',
      stat: { eurostatDatasetCode: 'demo_r_d3dens' }
      });
      map.build();
    • Main factory function to create maps

      Parameters

      • type: "pieChart" | "pie"

        The type of map to create

      • Optionalconfig: PieMapConfig

        Configuration object

      Returns PieMap

      A map object with builder pattern methods

      import eurostatmap from 'eurostatmap';

      const map = eurostatmap.map('choropleth', {
      title: 'Population Density',
      stat: { eurostatDatasetCode: 'demo_r_d3dens' }
      });
      map.build();
    • Main factory function to create maps

      Parameters

      • type: "sparkline" | "spark" | "sparklines"

        The type of map to create

      • Optionalconfig: SparkMapConfig

        Configuration object

      Returns SparkMap

      A map object with builder pattern methods

      import eurostatmap from 'eurostatmap';

      const map = eurostatmap.map('choropleth', {
      title: 'Population Density',
      stat: { eurostatDatasetCode: 'demo_r_d3dens' }
      });
      map.build();
    • Main factory function to create maps

      Parameters

      • type: "flow" | "flowmap"

        The type of map to create

      • Optionalconfig: FlowMapConfig

        Configuration object

      Returns FlowMap

      A map object with builder pattern methods

      import eurostatmap from 'eurostatmap';

      const map = eurostatmap.map('choropleth', {
      title: 'Population Density',
      stat: { eurostatDatasetCode: 'demo_r_d3dens' }
      });
      map.build();
    • Main factory function to create maps

      Parameters

      • type: MapType

        The type of map to create

      • Optionalconfig: MapConfig

        Configuration object

      Returns MapInstance

      A map object with builder pattern methods

      import eurostatmap from 'eurostatmap';

      const map = eurostatmap.map('choropleth', {
      title: 'Population Density',
      stat: { eurostatDatasetCode: 'demo_r_d3dens' }
      });
      map.build();