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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ add another resource


Babel includes JSX processing.

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


Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.


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.


                <table class="tg">
    <th id="tg-head" colspan="2">
COVID19 Vaccination - How far are we from the halfway mark?
    <td id="td-0-0">World</td>
    <td id="td-0-1"></td>
    <td id="td-1-0">Europe</td>
    <td id="td-1-1"></td>
    <td id="td-2-0">North America</td>
    <td id="td-2-1"></td>
    <td id="td-3-0">South America</td>
    <td id="td-3-1"></td>
    <td id="td-4-0">Asia</td>
    <td id="td-4-1"></td>
    <td id="td-5-0">Oceania</td>
    <td id="td-5-1"></td>
    <td id="td-6-0">Africa</td>
    <td id="td-6-1"></td>


                html, body, .tg {
  width: 100%;

.tg, thead {
  height: 10%;
  color: #7c868e;


anychart.onDocumentReady(function () {
  // Create and return simple linear gauge
  function drawGauge(value, settings, name, tableRow) {
    // Create gauge with settings
    const gauge = anychart.gauges.linear();[value, settings.value]);
    // enable a11y - accessibility settings
    // you can learn more in documentation article -
    // format the description text for a screen reader
      return `${name} gauge chart. The first value is ${value} and the second one is ${settings.value}`;

    // Set scale for gauge
    const scale = anychart.scales.linear();
    scale.minimum(0).maximum(settings.maximum).ticks({ interval: 2 });

    // Set axis for gauge
    const axis = gauge.axis(0);

    // Create and set bar point
    const barSeries =;

    // Create and set label with actual data
    const labelBar = barSeries.labels();

    // Create and set LED point
    const ledPointer = gauge.led(1);
      .dimmer(function () {
      return '#eee';
    ledPointer.colorScale().colors(['#63b39b', '#63b39b']);


  // Create gauges
  drawGauge(13.68, { maximum: 50, value: 27.13 }, 'world', 0);
  drawGauge(36.98, { maximum: 50, value: 47.28 }, 'europe', 1);
  drawGauge(36.77, { maximum: 50, value: 46.53 }, 'north america', 2);
  drawGauge(22.8, { maximum: 50, value: 40.54 }, 'south america', 3);
  drawGauge(10.14, { maximum: 50, value: 27.16 }, 'asia', 4);
  drawGauge(9.75, { maximum: 50, value: 22.12 }, 'oceania', 5);
  drawGauge(1.56, { maximum: 50, value: 3.04 }, 'africa', 6);