Anonymous Anonymous - 4 months ago
514 0

No description

Javascript

bar.php

<?php
session_start();
 
?>

        <script src="https://code.highcharts.com/highcharts.js"></script>
<script src="https://code.highcharts.com/modules/exporting.js"></script> 

<script>
                       var x = <? echo json_encode($_SESSION["skinCond"]); ?>
 Highcharts.chart('container', {
    chart: {
        type: 'column'
    },
    title: {
        text: 'Skin Severity Level '
    },
    subtitle: {
        text: ''
    },
    xAxis: {
        categories: [
            ''
        ],
        crosshair: true
    },
    yAxis: {
        min: 0,
        title: {
            text: 'Level of Skin Condition'
        }
    },
    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} mm</b></td></tr>',
        footerFormat: '</table>',
        shared: true,
        useHTML: true
    },
    plotOptions: {
        column: {
            pointPadding: 0.1,
            borderWidth: 0
				}
				},
		series: [{
		name: 'Mild',
		data: [10]
		}, {
		name:'moderate',
		data: [17]
		}, {
		name:'Severe',
		data: [24]	}, 
		{
		name:'Very Severe',
		data: [29]

    }]
});
					</script>