File: application/views/statistics/yes.php

Recommend this page to a friend!
  Classes of harold rita  >  PHP Thesis Proposal Hub  >  application/views/statistics/yes.php  >  Download  
File: application/views/statistics/yes.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: PHP Thesis Proposal Hub
Store and publish research thesis documents
Author: By
Last change:
Date: 2 years ago
Size: 1,583 bytes


Class file image Download

$(function () {
    //create a variable so we can pass the value dynamically
    var chartype_y = 'spline';

    //On page load call the function setDynamicChart
    //jQuery part - On Click call the function setDynamicChart(dynval) and pass the chart type
        //get the value from 'a' tag
        var chartype_y = $(this).attr('id');
    //function is created so we pass the value dynamically and be able to refresh the HighCharts on every click
    function setDynamicChart_y(chartype,id){
        var chart=null;

            chart: {
                type: chartype
            title: {
                text: jsUcfirst(chartype)+' Chart of '+$('#courses').val()+" "+$('#year').val()+"-"+$('#year2').val()
            xAxis: {
                categories: <?=$years;?>,
                crosshair: true
            yAxis: {
                min: 0,
                title: {
                    text: 'Counter'
            series: [{
                name: 'Years',
                data: [<?=$counters;?>
    <?php include 'selection.php'; ?>
<div class="col-md-12"><br />
    <a href="javascript:void(0);" class="option_y btn alert-info" id="spline">Line Chart</a>
    <a href="javascript:void(0);" class="option_y btn alert-success" id="bar">Bar Chart</a>
    <a href="javascript:void(0);" class="option_y btn alert-warning" id="column">Column Chart</a>
    <a href="javascript:void(0);" class="print btn alert-danger" id="print"><i class="fa fa-print"></i></a>
    <br />
<div id="container_yes" class="col-md-12 output"></div>

For more information send a message to info at phpclasses dot org.