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'

			<canvas id="funnelChart" style="width: 400px; height: 500px; display: block;"></canvas>

<div style="margin-top:30px; font-size:12px; font-family:Verdana"><a href="">&copy;MindFusion LLC. All rights reserved.</a></div>




                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 LabelKinds = m.MindFusion.Charting.LabelKinds;
    var xFunnelStart = 0, yFunnelStart = 0;
    // create the chart
    var funnelhartEl = document.getElementById('funnelChart');
    funnelhartEl.width = funnelhartEl.offsetParent.clientWidth;
    funnelhartEl.height = funnelhartEl.offsetParent.clientHeight;
    var funnelChart = new Controls.FunnelChart(funnelhartEl);
    // create sample data
    var values = new Collections.List([70, 60, 50, 30, 20, 15, 10, 4]);
    var labels = new Collections.List(["Unqualified prospects", "Leads", "Initial communication",
        "Customer evaluation", "Negotiation", "Purchase order received", "Delivery", "Payment"]);
    var legendLabels = new Collections.List(["70K, 100%", "60K, 85.7%", "50K, 71.4%",
        "30K, 42.9%", "20K, 28.6%", "15K, 21.4%", "10K, 14.3%", "4K, 5.7%"]);
    funnelChart.series = new Charting.BarSeries(values, labels, null, legendLabels);
    var brushes = new Collections.List([
        new Drawing.Brush("#669acc"),
        new Drawing.Brush("#616a7f"),
        new Drawing.Brush("#e0e9e9"),
        new Drawing.Brush("#003466"),
        new Drawing.Brush("#c0c0c0"),
        new Drawing.Brush("#ce0000"),
        new Drawing.Brush("#9caac6"),
        new Drawing.Brush("#000063")
    var strokes = new Collections.List([
        new Drawing.Brush("#FFFFFF")
    var seriesBrushes = new Collections.List();
    var seriesStrokes = new Collections.List();
    var thicknesses = new Collections.List([
    var seriesThicknesses = new Collections.List();
    funnelChart.plot.seriesStyle = new Charting.PerElementSeriesStyle(seriesBrushes, seriesStrokes, seriesThicknesses);
    funnelChart.theme.dataLabelsFontSize = 12;
    funnelChart.theme.highlightStroke = new Drawing.Brush("#ce0000");
	funnelChart.legendRenderer.showSeriesElements = true;
	funnelChart.legendRenderer.elementLabelKind = LabelKinds.XAxisLabel;
    funnelChart.legendRenderer.background = new Drawing.Brush("#e0e9e9");
    funnelChart.legendRenderer.borderStroke = new Drawing.Brush("#c0c0c0");
    funnelChart.legendRenderer.titleFontSize = 14.0;
    funnelChart.legendVerticalAlignment = Charting.Components.LayoutAlignment.Far;