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.


THe post that goes with this pen: 
<div class="container">
  <br />
  <div class="row">
    <div class="col-md-1"></div>
    <div class="col-md-10">
<!--       Chart.js Canvas Tag -->
      <canvas id="barChart"></canvas>
    <div class="col-md-1"></div>


  background-color: #444;

  background-color: grey;
  border-radius: 6px;



                var canvas = document.getElementById("barChart");
var ctx = canvas.getContext('2d');

// Global Options: = 'black'; = 16;

var data = {
    labels: ["She returns it ", "She keeps it"],
      datasets: [
            fill: true,
            backgroundColor: [
            data: [5, 95],
// Notice the borderColor 
            borderColor:	['black', 'black'],
            borderWidth: [2,2]

// Notice the rotation from the documentation.

var options = {
        title: {
                  display: true,
                  text: 'What happens when you lend your favorite t-shirt to a girl ?',
                  position: 'top'
        rotation: -0.7 * Math.PI

// Chart declaration:
var myBarChart = new Chart(ctx, {
    type: 'pie',
    data: data,
    options: options

// Fun Fact: I've lost exactly 3 of my favorite T-shirts and 2 hoodies this way :|