Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @extends('layouts.app')
- @section('content')
- <div class="page-content row">
- <div class="page-content-wrapper m-t">
- <div class="sbox " style="border-top: none">
- <div class="sbox-title"> <b>Sample Dashboard <small> Just change any content here with real data </small></b></div>
- <div class="sbox-content">
- <div class="row">
- <div class="col-lg-4">
- <div class="spanel">
- <div class="panel-heading"> Radar type chart </div>
- <div class="panel-body">
- <div>
- <canvas id="radarChart"></canvas>
- </div>
- </div>
- </div>
- </div>
- <div class="col-lg-4">
- <div class="spanel">
- <div class="panel-heading"> Doughnut bar chart </div>
- <div class="panel-body">
- <div>
- <canvas id="doughnutChart" height="140"></canvas>
- </div>
- </div>
- </div>
- </div>
- <div class="col-lg-4">
- <div class="spanel">
- <div class="panel-heading"> Polar type chart </div>
- <div class="panel-body">
- <div>
- <canvas id="polarOptions" height="140"></canvas>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="sbox " style="border-top: none">
- <div class="sbox-title"> <b>Sample Dashboard <small> Just change any content here with real data </small></b></div>
- <div class="sbox-content">
- <div class="row">
- <div class="col-lg-6">
- <div class="spanel">
- <div class="panel-heading"> Line type chart </div>
- <div class="panel-body">
- <div>
- <canvas id="lineOptions" height="140"></canvas>
- </div>
- </div>
- </div>
- </div>
- <div class="col-lg-6">
- <div class="spanel">
- <div class="panel-heading"> Bar type chart </div>
- <div class="panel-body">
- <div>
- <canvas id="barOptions" height="140"></canvas>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="row">
- <div class="col-lg-6">
- <div class="spanel">
- <div class="panel-heading">Single Bar type chart</div>
- <div class="panel-body">
- <div>
- <canvas id="singleBarOptions" height="140"></canvas>
- </div>
- </div>
- </div>
- </div>
- <div class="col-lg-6">
- <div class="spanel">
- <div class="panel-heading"> Line type chart without curve </div>
- <div class="panel-body">
- <div>
- <canvas id="sharpLineOptions" height="140"></canvas>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="row sbox-title" >
- <div class=" col-sm-3">
- <div class="panel-body test_1">
- sdsfdsf
- </div>
- </div>
- <div class=" col-sm-3">
- <div class="panel-body test_1">
- sdsfdsf
- </div>
- </div>
- <div class=" col-sm-3">
- <div class="panel-body test_1">
- sdsfdsf
- </div>
- </div>
- <div class=" col-sm-3">
- <div class="panel-body test_1">
- sdsfdsf
- </div>
- </div>
- </div>
- <div class="row sbox-title" >
- <div class=" col-sm-6 test_1 ">dsfsdf
- <div id="chart"></div>
- </div>
- </div>
- </div>
- </div>
- <script src="https://code.highcharts.com/highcharts.js"></script>
- <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.8.0/Chart.min.js"></script>
- <script type="text/javascript" src="{{ asset('sximo5/js/plugins/chartjs/Chart.min.js') }}"></script>
- <script>
- $(function () {
- /**
- * Options for Line chart
- */
- var lineData = {
- labels: ["status 1", "February", "March", "April", "May", "June", "July"],
- datasets: [
- {
- label: "Example dataset",
- fillColor: "rgba(220,220,220,0.5)",
- strokeColor: "rgba(220,220,220,1)",
- pointColor: "rgba(220,220,220,1)",
- pointStrokeColor: "#fff",
- pointHighlightFill: "#fff",
- pointHighlightStroke: "rgba(220,220,220,1)",
- data: [22, 44, 67, 43, 76, 45, 12]
- },
- {
- label: "Example dataset",
- fillColor: "rgba(98,203,49,0.5)",
- strokeColor: "rgba(98,203,49,0.7)",
- pointColor: "rgba(98,203,49,1)",
- pointStrokeColor: "#fff",
- pointHighlightFill: "#fff",
- pointHighlightStroke: "rgba(26,179,148,1)",
- data: [16, 32, 18, 26, 42, 33, 44]
- }
- ]
- };
- var lineOptions = {
- scaleShowGridLines : true,
- scaleGridLineColor : "rgba(0,0,0,.05)",
- scaleGridLineWidth : 1,
- bezierCurve : true,
- bezierCurveTension : 0.4,
- pointDot : true,
- pointDotRadius : 4,
- pointDotStrokeWidth : 1,
- pointHitDetectionRadius : 20,
- datasetStroke : true,
- datasetStrokeWidth : 1,
- datasetFill : true,
- responsive: true
- };
- var ctx = document.getElementById("lineOptions").getContext("2d");
- var myNewChart = new Chart(ctx).Line(lineData, lineOptions);
- /**
- * Options for Sharp Line chart
- */
- var sharpLineData = {
- labels: ["January", "February", "March", "April", "May", "June", "July"],
- datasets: [
- {
- label: "Example dataset",
- fillColor: "rgba(98,203,49,0.5)",
- strokeColor: "rgba(98,203,49,0.7)",
- pointColor: "rgba(98,203,49,1)",
- pointStrokeColor: "#fff",
- pointHighlightFill: "#fff",
- pointHighlightStroke: "rgba(98,203,49,1)",
- data: [33, 48, 40, 19, 54, 27, 54]
- }
- ]
- };
- var sharpLineOptions = {
- scaleShowGridLines : true,
- scaleGridLineColor : "rgba(0,0,0,.05)",
- scaleGridLineWidth : 1,
- bezierCurve : false,
- pointDot : true,
- pointDotRadius : 4,
- pointDotStrokeWidth : 1,
- pointHitDetectionRadius : 20,
- datasetStroke : true,
- datasetStrokeWidth : 1,
- datasetFill : true,
- responsive: true
- };
- var ctx = document.getElementById("sharpLineOptions").getContext("2d");
- var myNewChart = new Chart(ctx).Line(sharpLineData, sharpLineOptions);
- /**
- * Options for Bar chart
- */
- var barOptions = {
- scaleBeginAtZero : true,
- scaleShowGridLines : true,
- scaleGridLineColor : "rgba(0,0,0,.05)",
- scaleGridLineWidth : 1,
- barShowStroke : true,
- barStrokeWidth : 1,
- barValueSpacing : 5,
- barDatasetSpacing : 1,
- responsive:true
- };
- /**
- * Data for Bar chart
- */
- var barData = {
- labels: ["January", "February", "March", "April", "May", "June", "July"],
- datasets: [
- {
- label: "My First dataset",
- fillColor: "rgba(220,220,220,0.5)",
- strokeColor: "rgba(220,220,220,0.8)",
- highlightFill: "rgba(220,220,220,0.75)",
- highlightStroke: "rgba(220,220,220,1)",
- data: [65, 59, 80, 81, 56, 55, 40]
- },
- {
- label: "My Second dataset",
- fillColor: "rgba(98,203,49,0.5)",
- strokeColor: "rgba(98,203,49,0.8)",
- highlightFill: "rgba(98,203,49,0.75)",
- highlightStroke: "rgba(98,203,49,1)",
- data: [28, 48, 40, 19, 86, 27, 90]
- }
- ]
- };
- var ctx = document.getElementById("barOptions").getContext("2d");
- var myNewChart = new Chart(ctx).Bar(barData, barOptions);
- /**
- * Options for Bar chart
- */
- var singleBarOptions = {
- scaleBeginAtZero : true,
- scaleShowGridLines : true,
- scaleGridLineColor : "rgba(0,0,0,.05)",
- scaleGridLineWidth : 1,
- barShowStroke : true,
- barStrokeWidth : 1,
- barValueSpacing : 5,
- barDatasetSpacing : 1,
- responsive:true
- };
- /**
- * Data for Bar chart
- */
- var singleBarData = {
- labels: ["January", "February", "March", "April", "May", "June", "July"],
- datasets: [
- {
- label: "My Second dataset",
- fillColor: "rgba(98,203,49,0.5)",
- strokeColor: "rgba(98,203,49,0.8)",
- highlightFill: "rgba(98,203,49,0.75)",
- highlightStroke: "rgba(98,203,49,1)",
- data: [10, 20, 30, 40, 30, 50, 60]
- }
- ]
- };
- var ctx = document.getElementById("singleBarOptions").getContext("2d");
- var myNewChart = new Chart(ctx).Bar(singleBarData, singleBarOptions);
- var polarData = [
- {
- value: 120,
- color:"#62cb31",
- highlight: "#57b32c",
- label: "Homer"
- },
- {
- value: 140,
- color: "#80dd55",
- highlight: "#57b32c",
- label: "Inspinia"
- },
- {
- value: 100,
- color: "#a3e186",
- highlight: "#57b32c",
- label: "Luna"
- }
- ];
- var polarOptions = {
- scaleShowLabelBackdrop: true,
- scaleBackdropColor: "rgba(255,255,255,0.75)",
- scaleBeginAtZero: true,
- scaleBackdropPaddingY: 1,
- scaleBackdropPaddingX: 1,
- scaleShowLine: true,
- segmentShowStroke: true,
- segmentStrokeColor: "#fff",
- segmentStrokeWidth: 2,
- animationSteps: 100,
- animationEasing: "easeOutBounce",
- animateRotate: true,
- animateScale: false,
- responsive: true,
- options: {
- legendCallback: function(chart) {
- // Return the HTML string here.
- }
- }
- };
- var ctx = document.getElementById("polarOptions").getContext("2d");
- var myNewChart = new Chart(ctx).PolarArea(polarData, polarOptions);
- var doughnutData = [
- {
- value: 20,
- color:"#62cb31",
- highlight: "#57b32c",
- label: "App"
- },
- {
- value: 120,
- color: "#91dc6e",
- highlight: "#57b32c",
- label: "Software"
- },
- {
- value: 100,
- color: "#a3e186",
- highlight: "#57b32c",
- label: "Laptop"
- }
- ];
- var doughnutOptions = {
- segmentShowStroke: true,
- segmentStrokeColor: "#fff",
- segmentStrokeWidth: 2,
- percentageInnerCutout: 45, // This is 0 for Pie charts
- animationSteps: 100,
- animationEasing: "easeOutBounce",
- animateRotate: true,
- animateScale: false,
- responsive: true,
- };
- var ctx = document.getElementById("doughnutChart").getContext("2d");
- var myNewChart = new Chart(ctx).Doughnut(doughnutData, doughnutOptions);
- var radarData = {
- labels: ["Eating", "Drinking", "Sleeping", "Designing", "Coding", "Cycling", "Running"],
- datasets: [
- {
- label: "My First dataset",
- fillColor: "rgba(98,203,49,0.2)",
- strokeColor: "rgba(98,203,49,1)",
- pointColor: "rgba(98,203,49,1)",
- pointStrokeColor: "#fff",
- pointHighlightFill: "#fff",
- pointHighlightStroke: "#62cb31",
- data: [65, 59, 66, 45, 56, 55, 40]
- },
- {
- label: "My Second dataset",
- fillColor: "rgba(98,203,49,0.4)",
- strokeColor: "rgba(98,203,49,1)",
- pointColor: "rgba(98,203,49,1)",
- pointStrokeColor: "#fff",
- pointHighlightFill: "#fff",
- pointHighlightStroke: "#62cb31",
- data: [28, 12, 40, 19, 63, 27, 87]
- }
- ]
- };
- var radarOptions = {
- scaleShowLine : true,
- angleShowLineOut : true,
- scaleShowLabels : false,
- scaleBeginAtZero : true,
- angleLineColor : "rgba(0,0,0,.1)",
- angleLineWidth : 1,
- pointLabelFontFamily : "'Arial'",
- pointLabelFontStyle : "normal",
- pointLabelFontSize : 10,
- pointLabelFontColor : "#666",
- pointDot : true,
- pointDotRadius : 2,
- pointDotStrokeWidth : 1,
- pointHitDetectionRadius : 20,
- datasetStroke : true,
- datasetStrokeWidth : 1,
- datasetFill : true,
- };
- var ctx = document.getElementById("radarChart").getContext("2d");
- var myNewChart = new Chart(ctx).Radar(radarData, radarOptions);
- });
- // widi
- Highcharts.chart('chart', {
- chart: {
- type: 'column'
- },
- title: {
- text: 'Paket Umroh'
- },
- subtitle: {
- text: 'jamaah'
- },
- xAxis: {
- categories: [
- 'Jan',
- 'Feb',
- 'Mar',
- 'Apr',
- 'May',
- 'Jun',
- 'Jul',
- 'Aug',
- 'Sep',
- 'Oct',
- 'Nov',
- 'Dec'
- ],
- crosshair: true
- },
- yAxis: {
- min: 0,
- title: {
- text: 'Jamaah (pax)'
- }
- },
- tooltip: {
- headerFormat: '<span style="font-size:10px">{point.key}</span><table>',
- pointFormat: '<tr><td style="color:{series.color};padding:0">{series.name}: </td>' +
- '<td style="padding:0"><b>{point.y:.1f} jamaah</b></td></tr>',
- footerFormat: '</table>',
- shared: true,
- useHTML: true
- },
- plotOptions: {
- column: {
- pointPadding: 0.2,
- borderWidth: 0
- }
- },
- series: [{
- name: 'Tokyo',
- data: [49.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4]
- }, {
- name: 'New York',
- data: [83.6, 78.8, 98.5, 93.4, 106.0, 84.5, 105.0, 104.3, 91.2, 83.5, 106.6, 92.3]
- }, {
- name: 'London',
- data: [48.9, 38.8, 39.3, 41.4, 47.0, 48.3, 59.0, 59.6, 52.4, 65.2, 59.3, 51.2]
- }, {
- name: 'Berlin',
- data: [42.4, 33.2, 34.5, 39.7, 52.6, 75.5, 57.4, 60.4, 47.6, 39.1, 46.8, 51.1]
- }]
- });
- </script>
- @stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement