SHARE
TWEET

Untitled

a guest Nov 19th, 2019 93 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!DOCTYPE HTML>
  2. <html>
  3. <head>
  4.  
  5.  
  6. </head>
  7. <body>
  8. <div id="chartContainer" style="height: 500px; width: 100%;"></div>
  9.     <script type="text/javascript" src="https://canvasjs.com/assets/script/jquery-1.11.1.min.js"></script>
  10.     <script type="text/javascript" src="https://canvasjs.com/assets/script/jquery.canvasjs.min.js"></script>
  11.  
  12.  
  13.  
  14.     <script>
  15.         var mad;
  16.         $.post("/votare/getres.php", {code:"victorzabest"},function(data)
  17.         {
  18.             mad = JSON.parse(data);
  19.         });
  20.         window.onload = function () {
  21.  
  22.         var options = {
  23.             title: {
  24.                 text : "Votare "
  25.             },
  26.             axisY: {
  27.                 tickThickness: 0,
  28.                 lineThickness: 0,
  29.                 valueFormatString: " ",
  30.                 gridThickness: 0,
  31.  
  32.             },
  33.             axisX: {
  34.                 tickThickness: 0,
  35.                 lineThickness: 0,
  36.                 labelFontSize: 18,
  37.                 labelFontColor: "Peru"             
  38.             },
  39.             data: [{
  40.                 indexLabelFontSize: 26,
  41.                 toolTipContent: "<span style=\"color:#62C9C3\">{indexLabel}:</span> <span style=\"color:#CD853F\"><strong>{y}</strong></span>",
  42.                 indexLabelPlacement: "inside",
  43.                 indexLabelFontColor: "white",
  44.                 indexLabelFontWeight: 600,
  45.                 indexLabelFontFamily: "Verdana",
  46.                
  47.                 type: "column",
  48.                    
  49.                 }
  50.             ]
  51.         };
  52.     $("#chartContainer").CanvasJSChart(options);}
  53.  
  54.  
  55. </script>
  56.  
  57.  
  58. </body>
  59. </html>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top