File "plot04.php"

Full Path: /home/analogde/www/Massage_online2018/CHESS_2022/plot04.php
File size: 4.11 KB
MIME-type: text/html
Charset: utf-8

<!doctype html>
<html>
<head>
    <!--
	<script src="https://cdn.fusioncharts.com/fusioncharts/latest/fusioncharts.js"></script>
	-->
	<script src="Charts_2022/js/fusioncharts.js"></script>
	
</head>
<body>
    <div id="container"></div>

	
    <script>

	/*
	FusionCharts.ready(function () {
            // chart instance
            var chart = new FusionCharts({
                type: "column2d",
                renderAt: "chart-container", // container where chart will render
                width: "600",
                height: "400",
				
				dataFormat: 'xmlurl',
				dataSource: 'data.xml'
				
                //dataFormat: "json",
                /*dataSource: {
                    // chart configuration
                    chart: {
                        caption: "Countries With Most Oil Reserves [2017-18]",
                        subcaption: "In MMbbl = One Million barrels"
                    },
                    // chart data
                    data: [
                        { label: "Venezuela", value: "290000" },
                        { label: "Saudi", value: "260000" },
                        { label: "Canada", value: "180000" },
                        { label: "Iran", value: "140000" },
                        { label: "Russia", value: "115000" },
                        { label: "UAE", value: "100000" },
                        { label: "US", value: "30000" },
                        { label: "China", value: "30000" }
                    ]
                }*/
 
	/*}).render();
        });*/
		
		// https://www.fusioncharts.com/dev/fusiontime/getting-started/create-your-first-chart-in-fusiontime
		
//const URL_DATA = 'values02.json';
//const URL_SCHEMA = 'infos02.json';

//https://jsfiddle.net/fusioncharts/1btrzeqa/

// http://ebi.kemenag.go.id/nr/lib/chart/Contents/JavaScript/JS_Example.html

const URL_DATA = 'https://s3.eu-central-1.amazonaws.com/fusion.store/ft/data/join-missing-data-data.json';

const URL_SCHEMA = 'https://s3.eu-central-1.amazonaws.com/fusion.store/ft/schema/join-missing-data-schema.json';
//const URL_DATA = 'values02.json';
//const URL_SCHEMA = 'infos02.json';


const jsonify = res => res.json();
const dataFetch = fetch(URL_DATA).then(jsonify);
const schemaFetch = fetch(URL_SCHEMA).then(jsonify);

Promise.all([dataFetch, schemaFetch]).then(([data, schema]) => {
  var fusionTable = new FusionCharts.DataStore().createDataTable(data, schema);

  new FusionCharts({
    type: 'timeseries',
    renderAt: 'container',
    width: "90%",
    height: 650,
    dataSource: {
        data: fusionTable,
        chart: {
        exportEnabled: 1
        },
        caption: {
          text: 'Online Sales of a SuperStore in India & the US'
        },
        yAxis: [{
            "plot": {
                "value": "ELO",
				"connectnulldata": "true"
                
            }
        }],
        "series": "Country"
    }
}).render();

});

/*

Promise.all([
  loadData(
    "https://s3.eu-central-1.amazonaws.com/fusion.store/ft/data/join-missing-data-data.json"
  ),
  loadData(
    "https://s3.eu-central-1.amazonaws.com/fusion.store/ft/schema/join-missing-data-schema.json"
  )
]).then(function(res) {
  const data = res[0];
  const schema = res[1];

  const dataStore = new FusionCharts.DataStore();
  const dataSource = {
    chart: {},
    caption: {
      text: "Pollution Report of Yatcha Street"
    },
    subcaption: {
      text: "An industrial town"
    },
    yaxis: [
      {
        plot: [
          {
            value: "Pollution",
            connectnulldata: true
          }
        ],
        title: "Pollution Concentration (in ppm)",
        min: "130"
      }
    ]
  };
  dataSource.data = dataStore.createDataTable(data, schema);

  new FusionCharts({
    type: "timeseries",
    renderAt: "chart-container",
    width: "100%",
    height: "500",
    dataSource: dataSource
  }).render();
});


*/


		
	
	
    </script>
	
	
	

<?php

	echo "<br><br>";
	echo " TEST patoche blabla ";
	echo "<br><br>";

?>	
	
</body>



</html>