y Labeled data

In this example below you will see how to do a y Labeled data with some HTML / CSS and Javascript

This awesome code was written by KiGniark, you can see more from this user in the personal repository.
You can find the original code on Codepen.io
Copyright KiGniark ©


  • HTML
  • CSS
  • JavaScript
<!DOCTYPE html>
<html lang="en" >

  <meta charset="UTF-8">
  <title>y Labeled  data</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css">

      <link rel="stylesheet" href="css/style.css">



  <script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.0/jquery.min.js'></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/d3/4.2.2/d3.min.js'></script>


    <script  src="js/index.js"></script>



/*Downloaded from https://www.codeseek.co/KiGniark/y-labeled-data-aBaEeg */
.row {
  display: block;
  position: relative;

.label {
  font-size: 11px;
  font-family: Arial;

.value {
  position: absolute;
  background-color: #123123;
  height: 100%;

/*Downloaded from https://www.codeseek.co/KiGniark/y-labeled-data-aBaEeg */
	var datas = [];
	var labels = ['2G','3G','4G'];
			return x;
	var $value =  $('.value');