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 type="text/javascript" src=""></script>
     <div id="chart_div" style="width:100%;"></div>


                body {
  padding: 4rem 2rem;
  margin: 0;
  background: dodgerblue;
  text-align: center;

#chart_div svg {
  background: white;
  max-width: 1000px;
  border-radius: .5rem;
  padding: .5rem;
  margin: 0 auto;
  box-shadow: 0 2px 1rem rgba(0,0,0,.2);
  /*Background Color*/
  g:nth-child(2) { 
    rect {fill: transparent;} 
  /* Chart Settings */
  g:nth-child(3) {
    rect:nth-child(odd) {fill: transparent;} /* Rows Odd */
    rect:nth-child(even) {fill: transparent;} /* Rows Even */
    text {
      /* Hotizontal Labels */
      fill: dodgerblue;
      font-family: 'Roboto Mono' !important;
      font-weight: normal !important;
      text-transform: uppercase;
      letter-spacing: -.5px;
    line {
      /* Row Lines */
      stroke: transparent;
      stroke-width: 0;
  /* Arrows */
  g:nth-child(4) {
    path {
      stroke-width: 1;
      stroke: dodgerblue;
  /* Shadow */
  g:nth-child(6) {
    rect {
      fill: dodgerblue;
  /* Bars */
  g:nth-child(7) {
    rect {fill: dodgerblue;}
  /* Percent Complete */
  g:nth-child(8) {
    path {fill: rgba(0,0,0,.2);}
  /* Side Labels */
  g:nth-child(9) {
    text {fill: dodgerblue;}
  /* Tooltips */
  g:nth-child(10) {
    rect {
      stroke: white;
    text {
      fill: rgba(0,0,0,.6);
      font-size: 12.5px !important;
      letter-spacing: -.5px;
      font-family: 'Roboto Mono' !important;
    text:nth-child(2) {
      fill: dodgerblue;


                google.charts.load('current', {'packages':['gantt']});

function daysToMilliseconds(days) {
  return days * 24 * 60 * 60 * 1000;

function drawChart() {

  var otherData = new google.visualization.DataTable();
  otherData.addColumn('string', 'Task ID');
  otherData.addColumn('string', 'Task Name');
  otherData.addColumn('string', 'Resource');
  otherData.addColumn('date', 'Start');
  otherData.addColumn('date', 'End');
  otherData.addColumn('number', 'Duration');
  otherData.addColumn('number', 'Percent Complete');
  otherData.addColumn('string', 'Dependencies');

    ['app', 'Mobile App', 'null', null, null, daysToMilliseconds(12), 20, null],
    ['design', 'Design', 'designer', null, null, daysToMilliseconds(2), 100, null],
    ['dev', 'Development', 'developer', null, null, daysToMilliseconds(6), 6, 'design'],
    ['test', 'Testing', 'tester', null, null, daysToMilliseconds(2), 0, 'dev'],
    ['deploy', 'Deployment', 'developer', null, null, daysToMilliseconds(2), 0, 'test']

  var options = {
    height: 240,
    gantt: {
      criticalPathEnabled: false, // Critical path arrows will be the same as other arrows.
      arrow: {
        angle: 100,
        width: 1,
        color: 'dodgerblue',
        radius: 0
      labelStyle: {
        fontName: 'Roboto Mono',
        fontSize: 12,
        color: 'dodgerblue'
      barCornerRadius: 2,
      backgroundColor: {
        fill: 'transparent',
      innerGridHorizLine: {
        stroke: '#ddd',
        strokeWidth: 0,
      innerGridTrack: {
        fill: 'transparent'
      innerGridDarkTrack: {
        fill: 'transparent'
      percentEnabled:	true, 
      // percentStyle: {
      //   fill:	'black',
      // },
      shadowEnabled: false

  var chart = new google.visualization.Gantt(document.getElementById('chart_div'));

  chart.draw(otherData, options);