Rader Chart

Developer
Size
3,672 Kb
Views
28,336

How do I make an rader chart?

Rader Chart from http://codepen.io/grayghostvisuals/pen/xmBpL?editors=101. What is a rader chart? How do you make a rader chart? This script and codes were developed by Kazu on 28 October 2022, Friday.

Rader Chart Previews

Rader Chart - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Rader Chart</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="container"> <div class="chart-demo"> <h2 class="title">Rader Chart</h2> <canvas id="radarChart" width="640" height="400"></canvas> </div>
</div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
<script src='https://s3-us-west-2.amazonaws.com/s.cdpn.io/392/Chart.min.js'></script> <script src="js/index.js"></script>
</body>
</html>

Rader Chart - Script Codes CSS Codes

html { background-color: #08252c;
}
.container { width: 1280px; margin: 0 auto; overflow: auto;
}
.title { text-align: center; color: #FFA500;
}
.chart-demo { float: left; width: 640px;
}

Rader Chart - Script Codes JS Codes

/*! * Chart.js * http://chartjs.org * * Copyright 2013 Nick Downie * Released under the MIT license * https://github.com/nnnick/Chart.js/blob/master/LICENSE.md */
// ======================================================
// Radar Chart
// ======================================================
// Radar Chart Options
var radarOptions = {	//Boolean - If we show the scale above the chart data	scaleOverlay : false,	//Boolean - If we want to override with a hard coded scale	scaleOverride : false,	//** Required if scaleOverride is true **	//Number - The number of steps in a hard coded scale	scaleSteps : null,	//Number - The value jump in the hard coded scale	scaleStepWidth : null,	//Number - The centre starting value	scaleStartValue : null,	//Boolean - Whether to show lines for each scale point	scaleShowLine : true,	//String - Colour of the scale line	scaleLineColor : "#999",	//Number - Pixel width of the scale line	scaleLineWidth : 1,	//Boolean - Whether to show labels on the scale	scaleShowLabels : false,	//Interpolated JS string - can access value	scaleLabel : "<%=value%>",	//String - Scale label font declaration for the scale label	scaleFontFamily : "'Arial'",	//Number - Scale label font size in pixels	scaleFontSize : 12,	//String - Scale label font weight style	scaleFontStyle : "normal",	//String - Scale label font colour	scaleFontColor : "#666",	//Boolean - Show a backdrop to the scale label	scaleShowLabelBackdrop : true,	//String - The colour of the label backdrop	scaleBackdropColor : "rgba(255,255,255,0.75)",	//Number - The backdrop padding above & below the label in pixels	scaleBackdropPaddingY : 2,	//Number - The backdrop padding to the side of the label in pixels	scaleBackdropPaddingX : 2,	//Boolean - Whether we show the angle lines out of the radar	angleShowLineOut : true,	//String - Colour of the angle line	angleLineColor : "rgba(255,255,255,0.3)",	//Number - Pixel width of the angle line	angleLineWidth : 1,	//String - Point label font declaration	pointLabelFontFamily : "'Arial'",	//String - Point label font weight	pointLabelFontStyle : "normal",	//Number - Point label font size in pixels	pointLabelFontSize : 12,	//String - Point label font colour	pointLabelFontColor : "#EFEFEF",	//Boolean - Whether to show a dot for each point	pointDot : true,	//Number - Radius of each point dot in pixels	pointDotRadius : 3,	//Number - Pixel width of point dot stroke	pointDotStrokeWidth : 1,	//Boolean - Whether to show a stroke for datasets	datasetStroke : true,	//Number - Pixel width of dataset stroke	datasetStrokeWidth : 1,	//Boolean - Whether to fill the dataset with a colour	datasetFill : true,	//Boolean - Whether to animate the chart	animation : true,	//Number - Number of animation steps	animationSteps : 60,	//String - Animation easing effect	animationEasing : "easeOutQuart",	//Function - Fires when the animation is complete	onAnimationComplete : null
}
// Radar Data
var radarData = {	labels : ["January","February","March","April","May","June","July"],	datasets : [	{	fillColor : "rgba(220,220,220,0.5)",	strokeColor : "rgba(220,220,220,1)",	data : [65,59,90,81,56,55,40]	},	{	fillColor : "rgba(151,187,205,0.5)",	strokeColor : "rgba(151,187,205,1)",	data : [28,48,40,19,96,27,100]	}	]
}
//Get the context of the Radar Chart canvas element we want to select
var ctx = document.getElementById("radarChart").getContext("2d");
// Create the Radar Chart
var myRadarChart = new Chart(ctx).Radar(radarData, radarOptions);
// ======================================================
// Doughnut Chart
// ======================================================
// Doughnut Chart Options
var doughnutOptions = {	//Boolean - Whether we should show a stroke on each segment	segmentShowStroke : true,	//String - The colour of each segment stroke	segmentStrokeColor : "#fff",	//Number - The width of each segment stroke	segmentStrokeWidth : 2,	//The percentage of the chart that we cut out of the middle.	percentageInnerCutout : 50,	//Boolean - Whether we should animate the chart	animation : true,	//Number - Amount of animation steps	animationSteps : 100,	//String - Animation easing effect	animationEasing : "easeOutBounce",	//Boolean - Whether we animate the rotation of the Doughnut	animateRotate : true,	//Boolean - Whether we animate scaling the Doughnut from the centre	animateScale : true,	//Function - Will fire on animation completion.	onAnimationComplete : null
}
// Doughnut Chart Data
var doughnutData = [	{	value: 30,	color:"white"	},	{	value : 50,	color : "#1789D4"	},	{	value : 100,	color : "#CB4B16"	},	{	value : 40,	color : "#1F8261"	},	{	value : 120,	color : "#FFA500"	}
]
//Get the context of the Doughnut Chart canvas element we want to select
var ctx = document.getElementById("doughnutChart").getContext("2d");
// Create the Doughnut Chart
var mydoughnutChart = new Chart(ctx).Doughnut(doughnutData, doughnutOptions);
Rader Chart - Script Codes
Rader Chart - Script Codes
Home Page Home
Developer Kazu
Username carmerano
Uploaded October 28, 2022
Rating 3
Size 3,672 Kb
Views 28,336
Do you need developer help for Rader Chart?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Kazu (carmerano) Script Codes
Create amazing blog posts with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!