cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

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.

Quick-add: + add another resource

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.

Quick-add: + add another resource

Code Indentation

     

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.

            
              <body>

  <nav>
    
    <ul>

      <li><img src="http://www.bighedz.com/370-thickbox_default/donald-trump-life-size-celebrity-face-mask.jpg" alt="Yung Donald"></li>
      <li><i class="fa fa-line-chart" aria-hidden="true"></i> Stats</li>
      <li><i class="fa fa-user-circle-o" aria-hidden="true"></i> Users</li>
      <li><i class="fa fa-comment-o" aria-hidden="true"></i> Messages</li>
      <li><i class="fa fa-cog" aria-hidden="true"></i> Setttings</li>

    </ul>

  </nav>
  
  <main>
    
    <div class="hamburger-nav" >
      
      <ul class="hamburger-nav-items">
      
        <li>Dashboard</li>
        <li>Users</li>
        <li>Messages</li>
        <li>Setttings</li>
      
      </ul>
    
    </div>
 
    <section class="single-chart-section">
    
      <div id="cylindar-bar-chart"></div>
    
    </section>
    
    <section class="bar-chart-section">
    
      <div id="bar-chart-1"></div>
      <div id="bar-chart-2"></div>
      <div id="bar-chart-3"></div>
      <div id="bar-chart-4"></div>
    
    </section>
    
    <section class="single-chart-section">
    
      <div id="area-chart"></div>
      
    </section>
  
  </main>
  
</body>
            
          
!
            
              * {
  box-sizing: border-box;
}

body {
  margin: 0;
  /*FLEX STUFF*/
  display: flex;
  font-family: Space Mono;
}

nav {
  height: 100vh;
  width: 20%;
  margin: 0;
  background-color: #333;
  color: #00baf0;
  border-right: 1px solid #00baf0;
}

nav ul {
  height: 50%;
  width: 100%;
  margin: 0;
  list-style-type: none;
  /*FLEX STUFF*/
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
}

nav ul li:hover {
  align-self: center;
  width: 100%;
  padding: 20px;
  background-color: #00baf0;
  color: #fff;
  text-align: center;
  cursor: pointer;
  transition: .1s ease-in-out;
}

nav img {
  height: 75px;
  width: 75px;
  border-radius: 50%;
  cursor: pointer;
}

nav img:hover {
  cursor: pointer;
  transform: rotate(360deg);
  transition: .5s ease-in-out;
  height: 125px;
  width: 125px;
}

main {
  height: 100vh;
  width: 80%;
  background-color: #fff;
  /*FLEX STUFF*/
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
}

.hamburger-nav {
  display: none;
}

section {
  height: 33%;
  width: 95%;
}

.single-chart-section {
  /*FLEX STUFF*/
  display: flex;
  justify-content: center;
  align-items: center;
}

.single-chart-section div {
  height: 80%;
  width: 95%;
  box-shadow: 5px 5px 5px 0 rgba(46, 74, 117, 0.5);
}

section:nth-of-type(2) {
  /*FLEX STUFF*/
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
}

.bar-chart-section div {
  height: 100%;
  width: 22%;
  box-shadow: 5px 5px 5px 0 rgba(46, 74, 117, 0.5);
}

/*MEDIA RULES*/

@media screen and (max-width: 800px) {
  nav {
    display: none;
  }
  main {
    height: 2000px;
    width: 100%;
  }
  
  .hamburger-nav {
    display: flex;
    align-self: flex-end;
    margin: 0 5% 0 0;
    height: 50px;
    width: 50px;
    background: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/t-503/Hamburger%204.png);
    cursor: pointer;
  }
  
  .hamburger-nav ul {
    display: none;
  }
  
  .hamburger-nav-items.open {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100%;
    margin: 0;
    background-color: #333;
    opacity: .8;
    color: #fff;
    font-size: 24px;
    list-style-type: none;
    text-decoration: underline;
    z-index: 9999;
    /*FLEX STUFF*/
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .hamburger-nav ul li {
    margin-top: 65px;
    padding: 10px;
  }
  
  .hamburger-nav ul li:hover {
    background-color: #00baf0;
  }
  
  section:first-of-type {
    height: 20%;
  }
  
  section:nth-of-type(2) {
    height: 50%;
    /*FLEX STUFF*/
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
  }
  
  .bar-chart-section div {
    height: 20%;
    width: 90%;
  }
  
  section:nth-of-type(3) {
    height: 20%;
  }
} 
            
          
!
            
              /*Hamburger Nav JavaScript*/
var hamburger = document.getElementsByClassName('hamburger-nav')[0];
var items = document.getElementsByClassName('hamburger-nav-items')[0];

hamburger.onclick = function() {
  items.classList.add('open');
};

window.onclick = function(event) {
  if (event.target == items) {
    items.classList.remove('open');
  }
};
/*Cylindar Bar Chart*/
ZC.LICENSE = ['7b185ca19b4be2cba68fdcd369c663a9'];
var myConfig = {
  backgroundColor: '#fff',
  type: "vbar3d",
  globals: {
    fontColor: '#00BAF0',
    fontFamily: 'Space Mono'
  },
  title: {
    text: "Sales",
  },
  plot: {
    borderWidth: 0,
    backgroundColor: '#fff',
    aspect: 'cylinder',
    barsOverlap: "100%",
    stacked: true,
    stackType: '100%',
    mode: 'normal',
    marker: {
      size: 4
    },
    tooltip: {
      visible: false
    }
  },
  plotarea: {
    backgroundColor: 'transparent',
    margin: "70 0 50 90"
  },
  "3d-aspect": {
    depth: 90,
    true3d: 1
  },
  scaleX: {
    backgroundColor: 'none',
    labels: [2012, 2013, 2014, 2015],
    label: {
      text: 'Years'
    },
    offsetY: -20,
    lineWidth: 0,
    padding: 20,
    margin: 20,
    item: {
      padding: 5,
    },
    guide: {
      visible: false,
    }
  },
  scaleY: {
    maxValue: 100,
    lineWidth: 0,
    values: "0:180:20",
    format: "$%v",
    item: {
      padding: "0 10 0 0",
    },
    guide: {
      visible: false,
    }
  },
  series: [{
    text: "Internal",
    values: [
      70,
      100,
      110,
      141
    ],
    lineColor: "#00BAF0",
    backgroundColor: "#00BAF0",
    lineWidth: 1,
    marker: {
      backgroundColor: '#00BAF0'
    }
  }, {
    text: "External",
    values: [
      30,
      50,
      60,
      75
    ],
    lineColor: "#003849",
    backgroundColor: "#003849",
    lineWidth: 1,
    marker: {
      backgroundColor: '#003849'
    }
  }, {
    text: "Outbound",
    values: [20,
      30,
      40,
      39
    ],
    lineColor: "#7CA82B",
    backgroundColor: "#7CA82B",
    lineWidth: 1,
    marker: {
      backgroundColor: '#7CA82B'
    }
  }]
};

zingchart.render({
  id: 'cylindar-bar-chart',
  data: myConfig,
  height: '100%',
  width: '100%'
});
/*Spark Bar Charts*/
var myConfig = {
  type: 'hbar',
  globals: {
    fontFamily: 'Space Mono',
    color: '#00baf0',
    fontSize: 14
  },
  title: {
    text: 'Users'
  },
  mediaRules: [{
    minWidth: '225px',
    title: {
      fontSize: 24
    }
  }],
  plot: {
    aspect: 'spline'
  },
  series: [{
    values: [35, 42, 67, 89, 49, 25],
    backgroundColor: '#00BAF0',
  }]
};

zingchart.render({
  id: 'bar-chart-1',
  data: myConfig,
  height: '100%',
  width: '100%',
  theme: 'spark'
});

zingchart.render({
  id: 'bar-chart-2',
  data: myConfig,
  height: '100%',
  width: '100%',
  theme: 'spark'
});

zingchart.render({
  id: 'bar-chart-3',
  data: myConfig,
  height: '100%',
  width: '100%',
  theme: 'spark'
});

zingchart.render({
  id: 'bar-chart-4',
  data: myConfig,
  height: '100%',
  width: '100%',
  theme: 'spark'
});
/*Area Chart*/
var myConfig = {
  type: 'area',
  title: {
    text: 'Website Traffic'
  },
  globals: {
    fontFamily: 'Space Mono',
    fontColor: '#00BAF0'
  },
  plot: {
    aspect: 'spline'
  },
  tooltip: {
    visible: false,
  },
  scaleX: {
    lineColor: 'transparent',
    tick: {
      visible: false
    },
    guide: {
      visible: false
    },
    item: {
      color: 'transparent'
    }
  },
  scaleY: {
    lineColor: 'transparent',
    step: 10,
    tick: {
      visible: false
    },
    guide: {
      visible: false
    },
    item: {
      color: 'transparent'
    }
  },
  series: [{
    values: [12, 24, 48, 36, 56],
    lineColor: "#00BAF0",
    lineWidth: 1,
    backgroundColor: "#00BAF0",
    marker: {
      visible: false,
    }
  }]
};

zingchart.render({
  id: 'area-chart',
  data: myConfig,
  height: '100%',
  width: '100%'
});
            
          
!
999px
Loading ..................

Console