Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource


Babel is required to process package imports. If you need a different preprocessor remove all packages first.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource


Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.


                <script src=""></script>
<script src=""></script>
<script src=""></script>
<script src=""></script>
<div id="chartdiv"></div>


                body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";

#chartdiv {
  width: 100%;
  height: 350px;



 * ---------------------------------------
 * This demo was created using amCharts 4.
 * For more information visit:
 * Documentation is available at:
 * ---------------------------------------

/* Create map instance */
var chart = am4core.create("chartdiv", am4maps.MapChart);

/* Set map definition */
chart.geodata = am4geodata_worldLow;

/* Set projection */
chart.projection = new am4maps.projections.Mercator();

/* Northern Europe */
var series1 = chart.series.push(new am4maps.MapPolygonSeries()); = "Northern Europe";
series1.useGeodata = true;
series1.include = ["FI", "DK", "SE", "NO", "LT", "LV", "EE", "IS"];
series1.mapPolygons.template.tooltipText = "{name}";
series1.mapPolygons.template.fill = am4core.color("#96BDC6");
series1.fill = am4core.color("#96BDC6");

/* Central Europe */
var series2 = chart.series.push(new am4maps.MapPolygonSeries()); = "Central Europe";
series2.useGeodata = true;
series2.include = ["AT", "CZ", "DE", "HU", "LI", "PL", "SK", "SI", "CH"];
series2.mapPolygons.template.tooltipText = "{name}";
series2.mapPolygons.template.fill = am4core.color("#81968F");
series2.fill = am4core.color("#81968F");

/* Eastern Europe */
var series3 = chart.series.push(new am4maps.MapPolygonSeries()); = "Eastern Europe";
series3.useGeodata = true;
series3.include = ["MD", "BY", "UA"];
series3.mapPolygons.template.tooltipText = "{name}";
series3.mapPolygons.template.fill = am4core.color("#CFB9A5");
series3.fill = am4core.color("#CFB9A5");

/* Southeast Europe */
var series4 = chart.series.push(new am4maps.MapPolygonSeries()); = "Southeast Europe";
series4.useGeodata = true;
series4.include = ["AL", "BA", "BG", "HR", "GR", "XK", "MK", "ME", "RO", "RS"];
series4.mapPolygons.template.tooltipText = "{name}";
series4.mapPolygons.template.fill = am4core.color("#E8CCBF");
series4.fill = am4core.color("#E8CCBF");

/* Western Europe */
var series5 = chart.series.push(new am4maps.MapPolygonSeries()); = "Western Europe";
series5.useGeodata = true;
series5.include = ["BE", "FR", "IE", "IT", "LU", "MC", "NL", "GB", "ES", "PT", "AD"];
series5.mapPolygons.template.tooltipText = "{name}";
series5.mapPolygons.template.fill = am4core.color("#99C78F");
series5.fill = am4core.color("#99C78F");

chart.legend = new am4maps.Legend();
chart.legend.position = "right";
chart.legend.align = "right";