Here are a few examples how to use csscharts.php to create CSS only barcharts. Read all about it here.

<?php 
  $values = '12,3,3,10';
  $height = 70;
  $width = 500;
  include('csscharts.php');
?>
<?php 
  $values = '400,20,30,233,312,78,20,67';
  $height = 100;
  $width = 600;
  $bargap = 0;
  include('csscharts.php');
?>
  • 400
  • 20
  • 30
  • 233
  • 312
  • 78
  • 20
  • 67
<?php 
  $values = '12,3,23.3,44.3,9,20';
  $height = 200;
  $width = 402;
  $bargap = 5;
  include('csscharts.php');
?>
  • 12
  • 3
  • 23.3
  • 44.3
  • 9
  • 20
<?php 
  $values = '12,3,23.3,44.3,9,20';
  $height = 200;
  $width = 400;
  $bargap = 0; // undo :)
  include('csscharts.php');
?>
  • 12
  • 3
  • 23.3
  • 44.3
  • 9
  • 20

Create charts dynamically: