<?php include("includes/head.php");?>

<link rel="stylesheet" href="scripts/amcharts4/charts.css" />
<script src="scripts/amcharts4/core.js"></script>
<script src="scripts/amcharts4/charts.js"></script>
<script src="scripts/amcharts4/themes/animated.js"></script>
<script src="scripts/amcharts4/plugins/forceDirected.js"></script>
<!--<script src="index.js"></script>-->
   
<body>
<!--[if lt IE 8]>
        <p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
        <![endif]-->
<!-- Header top area start-->
<?php include("includes/header.php");?>
<!-- Header top area end-->
<!-- Menu area start-->
<?php include("includes/navigation.php");?>
<!-- Menu area end-->
<!-- Data table area Start-->
<div class="admin-dashone-data-table-area mg-b-40" style="min-height:500px;">
  <div class="container">
    <div class="row">
      <div class="col-lg-12">
        <div class="row">
          <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12" style="width:110% !important;">
            <div class="tab-content view-mail-ov-mg-t-30">
              <div class="tab-pane fade in zoomInDown shadow-reset active">
                <div class="sparkline8-list shadow-reset">
                  <div class="sparkline8-hd">
                    <div class="main-sparkline8-hd">
                      <h1>Stakeholders</h1>
                      <div class="sparkline8-outline-icon"> <a href="dashboard.php">
                        <button class="btn btn-sm btn-danger login-submit-cs" type="button">Back to Dashboard</button>
                        </a>&nbsp; </div>
                    </div>
                  </div>
                  <div class="sparkline8-graph" style="height:1030px !important; margin-bottom:208px;">
                    <div class="container bootstrap snippet">
                      <div class="row">
                        <div id="chartdiv"></div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>
</div>
<!-- Data table area End-->
<!-- Modal -->
<div class="modal fade" id="myModal" role="dialog">
  <div class="modal-dialog modal-lg">
    <!-- Modal content-->
    <div class="modal-content">
      <!--<div class="modal-header">
                <button type="button" class="close" data-dismiss="modal">&times;</button>
                <h4 class="modal-title"></h4>
            </div>-->
      <div class="modal-body"> </div>
      <div class="modal-footer">
        <!--<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>-->
      </div>
    </div>
  </div>
</div>
<!-- Footer Start-->
<?php include("includes/footer.php");?>
<!-- Footer End-->

<script>
    am4core.useTheme(am4themes_animated);

var chart = am4core.create("chartdiv", am4plugins_forceDirected.ForceDirectedTree);
var networkSeries = chart.series.push(new am4plugins_forceDirected.ForceDirectedSeries())

chart.data = [
  {
    name: "Rehab Initiaive",
	x: am4core.percent(50),
    y: am4core.percent(70),
    fixed: true,	
    children: [
      {
        name: "Govt Regulators",
		color: "#eea638",
        children: [
		  { name: "SECP",title:"Securities and Exchange Comission of Pakistan", value: 5 },
          { name: "FBR", title:"FBR", value: 30 },
		  { name: "Ias",title:"Ias", value: 30 },
		  { name: "PC",title:"PC", value: 30 },
		  { name: "PCP",title:"PCP", value: 30 },
		  { name: "EAD",title:"EAD", value: 30 },
		  { name: "PPRA",title:"PPRA", value: 30 }
		]
      },
	  {
        name: "GSSDPO",
		color: "#eea638",
        children: [
		  { name: "MoH",title:"", value: 30 },
          { name: "NCSW",title:"", value: 30 },
		  { name: "MOHR",title:"", value: 30 },
		  { name: "PMNHP",title:"", value: 30 },
		  { name: "SLICP",title:"", value: 30 },
		  { name: "NCWDP",title:"", value: 30 },
		  { name: "National Disability Trust",title:"", value: 30 },
          { name: "NADRA",title:"", value: 30 },
		  { name: "BISP",title:"", value: 30 },
		  { name: "PPAF",title:"", value: 30 },
		  { name: "PBM",title:"", value: 30 },
		  { name: "PRCS",title:"", value: 30 },
		  { name: "AFIRM",title:"", value: 30 }
		]
      },
	  {
        name: "ICRC GVA",
		color: "#eea638",
        children: [
		  { name: "MoveAbility",title:"", value: 30 },
          { name: "ICRC PRP GVA",title:"", value: 30 },
		  { name: "ICRC FAD-AFI",title:"", value: 30 },
		  { name: "ICRC LOG GVA",title:"", value: 30 },
		  { name: "ICRC GVA Innovation",title:"", value: 30 }
		]
      },
	  {
        name: "ICRC PAK",
		color: "#eea638",
        children: [
		  { name: "ICRC Adm PAK",title:"", value: 30 },
          { name: "ICRC Adm PAK",title:"", value: 30 },
		  { name: "ICRC PRP PAK",title:"", value: 30 },
		  { name: "ICRC PAK",title:"", value: 30 },
		  { name: "ICRC LOG PAK",title:"", value: 30 }
		]
      },
	  {
        name: "PRP Partners",
		color: "#eea638",
        children: [
		  { name: "MPRC",title:"", value: 30 },
          { name: "Indus Hospital",title:"", value: 30 },
		  { name: "PIPOS",title:"", value: 30 },
		  { name: "PCP",title:"", value: 30 },
		  { name: "AKI",title:"", value: 30 },
          { name: "DUHS",title:"", value: 30 }
		]
      },
	  {
        name: "Donors & INGOs",
		color: "#eea638",
        children: [
		  { name: "DFID",title:"", value: 30 },
          { name: "UN",title:"", value: 30 },
		  { name: "GIZ",title:"", value: 30 },
		  { name: "KWF",title:"", value: 30 },
		  { name: "PNS",title:"", value: 30 },
		  { name: "HIP",title:"", value: 30 },
          { name: "IRP",title:"", value: 30 }
		]
      },
	  {
        name: "Local NGOs",
		color: "#eea638",
        children: [
		  { name: "Sungi",title:"", value: 30 },
          { name: "PDCA",title:"", value: 30 }
		]
      },
	  {
        name: "Corporate Sector",
		color: "#eea638",
        children: [
		  { name: "Telenor",title:"", value: 30 },
		  { name: "Zong",title:"", value: 30 },
		  { name: "Ufone",title:"", value: 30 },
          { name: "Bahria Town",title:"", value: 30 }
		]
      },
	  {
        name: "Suppliers",
		color: "#eea638",
        children: [
		  { name: "CR Equipments",title:"", value: 30 },
          { name: "Ottobock",title:"", value: 30 },
		  { name: "PROTEOR",title:"", value: 30 },
		  { name: "REGAL",title:"", value: 30 },
		  { name: "IB-ER",title:"", value: 30 },
		  { name: "Beijing P&O Technique Center",title:"", value: 30 },
		  { name: "JINGBO",title:"", value: 30 },
		  { name: "Fujian",title:"", value: 30 },
		  { name: "Endofoam",title:"", value: 30 }
		]
      },
	  {
        name: "IA+ARS",
		color: "#eea638",
        children: [
		]
      },
	  {
        name: "ICRC PAK DEL - ALPHC",
		color: "#eea638",
        children: [
		]
      },
	  {
        name: "ICRC GVA - P,L,F-A",
		color: "#eea638",
        children: [
		]
      },
	  {
        name: "ICRC GVA OSI",
		color: "#eea638",
        children: [
		]
      },
	  {
        name: "Rehab Acadamic Inst:",
		color: "#eea638",
        children: [
		]
      },
	  {
        name: "PNS (RC societies)",
		color: "#eea638",
        children: [
		]
      },
	  {
        name: "DPO",
		color: "#eea638",
        children: [
		]
      }
    ]
  }
];

networkSeries.dataFields.value = "value";
networkSeries.dataFields.name = "name";
networkSeries.dataFields.children = "children";
//networkSeries.nodes.template.tooltipText = "{name}:{value}";
//networkSeries.nodes.template.tooltipText = "{title}";
networkSeries.nodes.template.tooltipText = "{name}";
networkSeries.nodes.template.fillOpacity = 1;
networkSeries.nodes.template.label.text = "{name}"
networkSeries.fontSize = 10;
networkSeries.dataFields.fixed = "fixed";
networkSeries.nodes.template.propertyFields.x = "x";
networkSeries.nodes.template.propertyFields.y = "y";

series.minRadius = 15;
series.maxRadius = 40;
series.centerStrength = 0.5;

</script>
    
<!-- Data table area End-->
<script type="text/javascript" src="scripts/raphael/js/jquery_002.js"></script>
<script type="text/javascript" src="scripts/raphael/js/lozad.js"></script>
<script type="text/javascript" src="scripts/raphael/js/modernizr.js"></script>
<script type="text/javascript" src="scripts/raphael/js/PublicPromoRoundel.js"></script>
<script type="text/javascript" src="scripts/raphael/js/CrossBrowserLoader.js"></script>
<script type="text/javascript" src="scripts/raphael/js/Resizer.js"></script>
<script type="text/javascript" src="scripts/raphael/js/LazyLoader.js"></script>
<script type="text/javascript" src="scripts/raphael/js/GlobalNav.js"></script>
<script type="text/javascript" src="scripts/raphael/js/GlobalSearch.js"></script>
<script type="text/javascript" src="scripts/raphael/js/ComponentAccordion.js"></script>
<script type="text/javascript" src="scripts/raphael/js/ComponentAuthorship.js"></script>
<script type="text/javascript" src="scripts/raphael/js/PublicPlpMainpageCookieHandler.js"></script>
<script type="text/javascript" src="scripts/raphael/js/PublicMediaQueryNewsletterPanel.js"></script>
<script type="text/javascript" src="scripts/raphael/js/PublicCarousel.js"></script>
<script type="text/javascript" src="scripts/raphael/js/PublicPrint.js"></script>
<script type="text/javascript" src="scripts/raphael/js/PublicLogoSwitch.js"></script>
<script type="text/javascript" src="scripts/raphael/js/PublicMediaQueries.js"></script>
<script type="text/javascript" src="scripts/raphael/js/PublicMain.js"></script>
<!-- jquery
		============================================ -->
<script src="js/vendor/jquery-1.11.3.min.js"></script>
<!-- bootstrap JS
		============================================ -->
<script src="js/bootstrap.min.js"></script>
<!-- notification JS
		============================================ -->
<script src="js/Lobibox.js"></script>
<script src="js/notification-active.js"></script>
<!-- Tree Viewer JS
		============================================ -->
<script src="js/tree-line/jstree.min.js"></script>
<script src="js/tree-line/jstree.active.js"></script>
</body>
</html>
