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.


                <script type="text/javascript" src=""></script>
<script type="text/javascript"> 
  baseUrl: "",
  paths: {
  'MindFusion.Common': './MindFusion.Common',
    'MindFusion.Gauges': './MindFusion.Gauges'

<div style="position: absolute; width: 700px; top: 0px; bottom: 0px;">
   <canvas id="areaChart" style="width: 100%; height: 100%; display: block;"></canvas>

<script type="text/javascript"> 
  baseUrl: "",
  paths: {
  'MindFusion.Common': './MindFusion.Common',
    'MindFusion.Gauges': './MindFusion.Gauges'

<a style="position: absolute; bottom: 0px; font-size:12px; font-family:Verdana" href="">&copy;MindFusion LLC. All rights reserved.</a>




                require(['MindFusion.Charting'], function(m){
    "use strict";
    var Charting = m.MindFusion.Charting;
    var Controls = m.MindFusion.Charting.Controls;
    var Collections = m.MindFusion.Charting.Collections;
    var Drawing = m.MindFusion.Charting.Drawing;
    var areaChartEl = document.getElementById('areaChart');
    areaChartEl.width = areaChartEl.offsetParent.clientWidth;
    areaChartEl.height = areaChartEl.offsetParent.clientHeight;
    // create the chart
    var areaChart = new Controls.AreaChart(areaChartEl);
    areaChart.areaOpacity = 0.5;
    // create bar brushes
    var secondBrush = new Drawing.LinearGradientBrush("#003466", "#000063");
    var thirdBrush = new Drawing.LinearGradientBrush("#e0e9e9", "#669acc");
    var firstBrush = new Drawing.Brush("#ce0000");
    var labels = new Collections.List([
        "Jan", "Feb", "Mar", "Apr", "May", "Jun",
        "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"
    var angle = 1;
    // create sample data series
    var series = new Collections.ObservableCollection(new Array(new Charting.BarSeries(new Collections.List([2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24]), labels), new Charting.BarSeries(new Collections.List([1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]), labels), new Charting.BarSeries(new Collections.List([2, 8, 13, 15, 13, 8, 2, 8, 13, 15, 13, 8]), labels)));
    series.item(0).title = "2016";
    series.item(1).title = "2015";
    series.item(2).title = "2014";
    areaChart.xAxis.title = "Profit (in mlns)";
    areaChart.yAxis.title = "Turnover (in mlns)";
    areaChart.series = series;
    areaChart.xAxis.interval = 1;
    // assign one brush per series
    areaChart.plot.seriesStyle = new Charting.PerSeriesStyle(new Collections.List([firstBrush, secondBrush, thirdBrush]));
    areaChart.theme.legendBackground = new Drawing.Brush("#e0e9e9");
    areaChart.theme.legendBorderStroke = new Drawing.Brush("#000000");
    areaChart.theme.axisTitleFontSize = 14;
    areaChart.theme.axisTitleFontName = "Verdana";
    areaChart.theme.axisLabelsFontName = "Verdana";
    areaChart.theme.dataLabelsFontName = "Verdana";
    areaChart.legendTitle = "Year";