Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE HTML>
- <html>
- <head>
- </head>
- <body>
- <div id="chartContainer" style="height: 500px; width: 100%;"></div>
- <script type="text/javascript" src="https://canvasjs.com/assets/script/jquery-1.11.1.min.js"></script>
- <script type="text/javascript" src="https://canvasjs.com/assets/script/jquery.canvasjs.min.js"></script>
- <script>
- var mad;
- $.post("/votare/getres.php", {code:"victorzabest"},function(data)
- {
- mad = JSON.parse(data);
- });
- window.onload = function () {
- var options = {
- title: {
- text : "Votare "
- },
- axisY: {
- tickThickness: 0,
- lineThickness: 0,
- valueFormatString: " ",
- gridThickness: 0,
- },
- axisX: {
- tickThickness: 0,
- lineThickness: 0,
- labelFontSize: 18,
- labelFontColor: "Peru"
- },
- data: [{
- indexLabelFontSize: 26,
- toolTipContent: "<span style=\"color:#62C9C3\">{indexLabel}:</span> <span style=\"color:#CD853F\"><strong>{y}</strong></span>",
- indexLabelPlacement: "inside",
- indexLabelFontColor: "white",
- indexLabelFontWeight: 600,
- indexLabelFontFamily: "Verdana",
- type: "column",
- }
- ]
- };
- $("#chartContainer").CanvasJSChart(options);}
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement