Coder Social home page Coder Social logo

choropleth-map.php's Introduction

REQUIREMENTS

PHP Version 5.6 or later
Apache 2 or later
Windows 7 or later /Linux 3 or later
Firefox 52, Chrome 57, IE 8

INSTALLATION

INSTALLER .........

  1. Extract the product archive in web root. e.g. www.dashboarduilder
  2. Open it in browser to run installer. e.g. http://localhost/ dashboarduilder

INTEGRATION

  • For integration in your app, you need to copy the PHP code to your php application.
  1. The folder "inc", “assets” and “css” will be replaced by path where you place 'lib' folder (if changed)
 <script src="assets/js/dashboard.min.js"></script>  <! --  copy this file to assets/js folder -- >
 <link rel="stylesheet" href="css/bootstrap.min.css"> <! --  Bootstrap CSS file, change the path accordingly -- >
  1. Update include path where you place “inc/dashboard_dist.php”. (if changed)

    Include(“inc/dashboard_dist.php"); Refer 'Getting Started' section on https://www.dashboardbuilder.net/documentation for more details.

Refer 'Support' on https://www.dashboardbuilder.net/support for queries and support.

RESULT

PHP CODE

/**
 * DashboardBuilder
 *
 * @author Diginix Technologies www .diginixtech .com
 * Support <support @ dashboardbuider.net> - http: // www. dashboardbuilder .net
 * @copyright (C) 2017 Dashboardbuilder.net
 * @version 1.0.1
 * @license: license.txt
 */

include("inc/dashboard_dist.php");  // copy this file to inc folder


// for chart #1
$data = new dashboardbuilder(); 
$data->type =  "map";
$data->source =  "Database"; 
$data->rdbms =  "sqlite"; 
$data->servername =  "";
$data->username =  "";
$data->password =  "";
$data->dbname =  "data\country.db";
$data->xaxisSQL[0]=  "SELECT CODE FROM  GDP";
$data->xaxisCol[0]=  "CODE";
$data->yaxisSQL[0]=  "SELECT GDP FROM  GDP";
$data->yaxisCol[0]=  "GDP";
$data->textSQL[0]=  "SELECT COUNTRY FROM  GDP";
$data->textCol[0]=  "COUNTRY";
$data->name = "map";
$data->title = "";
$data->orientation = "";
$data->xaxistitle = "";
$data->yaxistitle = "";
$data->showgrid = "";
$data->showline = "";
$data->height = "";
$data->width = "";


$result[0] = $data->result();

?>

<!DOCTYPE html>
<html> 
<head> 
	<script src="assets/js/dashboard.min.js"></script> <!-- copy this file to assets/js folder --> 
	<!--<link rel="stylesheet" href="assets/css/bootstrap.min.css"> Bootstrap CSS file, change the path accordingly --> 

<style>
<!-- adjust the height width as per your need -->;
/*
#col0{
height:350px;
}
#col1{
height:350px;
}
*/
</style>

</head>
<body> 

<div class="container">
<div class="col-lg-12">
<div class="panel panel-default">
<div class="panel-heading"></div>
    <div class="panel-body">
        <?php echo $result[0];?>
    </div>
</div>
</div>
</div>
</body>

LICENSE

Must read and agree LICENSE.txt before use.

choropleth-map.php's People

Contributors

dashboardbuilder avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.