From 4796eb0801669919990485c84fa40d88f9e20ab4 Mon Sep 17 00:00:00 2001 From: JOE XMG <thunyathep.s@outlook.com> Date: Mon, 4 Mar 2024 11:03:04 +0100 Subject: [PATCH] update fellbach --- public/fellbach/chart_demo/index.html | 82 +++++ public/fellbach/chart_demo/rainfall.csv | 367 +++++++++++++++++++ public/fellbach/{ => vcs_process}/png2tif.sh | 0 3 files changed, 449 insertions(+) create mode 100644 public/fellbach/chart_demo/index.html create mode 100644 public/fellbach/chart_demo/rainfall.csv rename public/fellbach/{ => vcs_process}/png2tif.sh (100%) diff --git a/public/fellbach/chart_demo/index.html b/public/fellbach/chart_demo/index.html new file mode 100644 index 0000000..f21c737 --- /dev/null +++ b/public/fellbach/chart_demo/index.html @@ -0,0 +1,82 @@ +<!DOCTYPE html> +<html lang="en"> + +<head> + <meta charset="UTF-8"> + <meta name="viewport" content="width=device-width, initial-scale=1.0"> + <title>Rainfall Chart</title> + <!-- Importing eCharts and PapaParse libraries --> + <script src="https://cdn.jsdelivr.net/npm/echarts/dist/echarts.min.js"></script> + <script src="https://cdn.jsdelivr.net/npm/papaparse@5.3.0/papaparse.min.js"></script> + <style> + /* Styling the chart container */ + #chart-container { + width: 800px; + height: 600px; + } + </style> +</head> + +<body> + <!-- Div to hold the chart --> + <h1> Rainfall in 1960 </h1> + <div id="chart-container"></div> + + <script> + // Function to draw chart + function drawChart(data) { + const chartContainer = document.getElementById('chart-container'); + const chart = echarts.init(chartContainer); + + const option = { + tooltip: { + position: 'top' + }, + visualMap: { + min: 0, + max: 10, + calculable: true, + orient: 'horizontal', + left: 'center', + top: 'top' + }, + calendar: { + top: 50, + range: '1960', + cellSize: ['auto', 20] + }, + series: [{ + type: 'heatmap', + coordinateSystem: 'calendar', + data: data + }], + // legend: { + // bottom: 10, + // orient: 'horizontal' + // }, + }; + + chart.setOption(option); + } + + // Function to handle file loading + function loadFile() { + // Assuming "rainfall.csv" is in the same directory + Papa.parse('rainfall.csv', { + download: true, + complete: function (results) { + // data skip the first header line + var data = results.data.slice(1); + console.log(data); + for (var i = 0; i < data.length; i++) { + data[i][1] = parseFloat(data[i][1]); + } + drawChart(data); + } + }); + } + loadFile(); + </script> +</body> + +</html> \ No newline at end of file diff --git a/public/fellbach/chart_demo/rainfall.csv b/public/fellbach/chart_demo/rainfall.csv new file mode 100644 index 0000000..4ea9c30 --- /dev/null +++ b/public/fellbach/chart_demo/rainfall.csv @@ -0,0 +1,367 @@ +year,rainfall +1960-01-01,0.3 +1960-01-02,5.8 +1960-01-03,0.5 +1960-01-04,0 +1960-01-05,5.1 +1960-01-06,0.2 +1960-01-07,0 +1960-01-08,8.3 +1960-01-09,0.6 +1960-01-10,0 +1960-01-11,3.8 +1960-01-12,1.2 +1960-01-13,0.2 +1960-01-14,0 +1960-01-15,0 +1960-01-16,0.1 +1960-01-17,0.2 +1960-01-18,0.1 +1960-01-19,0 +1960-01-20,0.3 +1960-01-21,6.3 +1960-01-22,0.7 +1960-01-23,0 +1960-01-24,0.3 +1960-01-25,0.4 +1960-01-26,4.6 +1960-01-27,0.8 +1960-01-28,0.2 +1960-01-29,0.2 +1960-01-30,0 +1960-01-31,0 +1960-02-01,0.1 +1960-02-02,0.1 +1960-02-03,0.2 +1960-02-04,3.9 +1960-02-05,3.2 +1960-02-06,0.6 +1960-02-07,0 +1960-02-08,0 +1960-02-09,0 +1960-02-10,0 +1960-02-11,2.8 +1960-02-12,0.5 +1960-02-13,0.4 +1960-02-14,0.6 +1960-02-15,3.4 +1960-02-16,2.6 +1960-02-17,0 +1960-02-18,13.5 +1960-02-19,0 +1960-02-20,0 +1960-02-21,0 +1960-02-22,0.1 +1960-02-23,6.7 +1960-02-24,0 +1960-02-25,4.5 +1960-02-26,3.1 +1960-02-27,0.5 +1960-02-28,0 +1960-02-29,1.5 +1960-03-01,0.2 +1960-03-02,2.1 +1960-03-03,8.6 +1960-03-04,2.9 +1960-03-05,0.9 +1960-03-06,0 +1960-03-07,0.3 +1960-03-08,0.3 +1960-03-09,0.2 +1960-03-10,0 +1960-03-11,0 +1960-03-12,0 +1960-03-13,0 +1960-03-14,0 +1960-03-15,4.6 +1960-03-16,5.7 +1960-03-17,0 +1960-03-18,0 +1960-03-19,0 +1960-03-20,0.1 +1960-03-21,0 +1960-03-22,0 +1960-03-23,0 +1960-03-24,0 +1960-03-25,0 +1960-03-26,0 +1960-03-27,0 +1960-03-28,0 +1960-03-29,0 +1960-03-30,8.5 +1960-03-31,10.1 +1960-04-01,0.1 +1960-04-02,0 +1960-04-03,0.4 +1960-04-04,4.2 +1960-04-05,0 +1960-04-06,0 +1960-04-07,0 +1960-04-08,0.2 +1960-04-09,1.1 +1960-04-10,0 +1960-04-11,0.3 +1960-04-12,0 +1960-04-13,0 +1960-04-14,0.3 +1960-04-15,0.2 +1960-04-16,0.6 +1960-04-17,0.2 +1960-04-18,0.5 +1960-04-19,0 +1960-04-20,0 +1960-04-21,0 +1960-04-22,0 +1960-04-23,0 +1960-04-24,0.3 +1960-04-25,0.1 +1960-04-26,1.2 +1960-04-27,1.3 +1960-04-28,3.3 +1960-04-29,0.4 +1960-04-30,2.7 +1960-05-01,2.1 +1960-05-02,0 +1960-05-03,0 +1960-05-04,0 +1960-05-05,0 +1960-05-06,0 +1960-05-07,0 +1960-05-08,0 +1960-05-09,2.5 +1960-05-10,0.2 +1960-05-11,0 +1960-05-12,0.3 +1960-05-13,24.1 +1960-05-14,8 +1960-05-15,4.5 +1960-05-16,26.3 +1960-05-17,0.2 +1960-05-18,4 +1960-05-19,3.3 +1960-05-20,1.5 +1960-05-21,0.4 +1960-05-22,4.5 +1960-05-23,0.6 +1960-05-24,15.8 +1960-05-25,0 +1960-05-26,0 +1960-05-27,0 +1960-05-28,0 +1960-05-29,0 +1960-05-30,0 +1960-05-31,0 +1960-06-01,0 +1960-06-02,0 +1960-06-03,0 +1960-06-04,0 +1960-06-05,4 +1960-06-06,0.1 +1960-06-07,0.3 +1960-06-08,0 +1960-06-09,0.6 +1960-06-10,6.5 +1960-06-11,0 +1960-06-12,0 +1960-06-13,30.4 +1960-06-14,1.8 +1960-06-15,0 +1960-06-16,0 +1960-06-17,0 +1960-06-18,0 +1960-06-19,0 +1960-06-20,0 +1960-06-21,0 +1960-06-22,0 +1960-06-23,0 +1960-06-24,0 +1960-06-25,0.1 +1960-06-26,27.7 +1960-06-27,3.2 +1960-06-28,1.1 +1960-06-29,0 +1960-06-30,0 +1960-07-01,0 +1960-07-02,0 +1960-07-03,0 +1960-07-04,0 +1960-07-05,3.1 +1960-07-06,3.3 +1960-07-07,3.5 +1960-07-08,12.4 +1960-07-09,1.2 +1960-07-10,1.5 +1960-07-11,0.2 +1960-07-12,1.3 +1960-07-13,0 +1960-07-14,1.5 +1960-07-15,22.3 +1960-07-16,0 +1960-07-17,0.2 +1960-07-18,2.9 +1960-07-19,11.7 +1960-07-20,11.3 +1960-07-21,0 +1960-07-22,3.2 +1960-07-23,3.1 +1960-07-24,0 +1960-07-25,0 +1960-07-26,0 +1960-07-27,0.2 +1960-07-28,0.1 +1960-07-29,0 +1960-07-30,4.5 +1960-07-31,33.1 +1960-08-01,1.9 +1960-08-02,6.9 +1960-08-03,0.4 +1960-08-04,3.1 +1960-08-05,9 +1960-08-06,0 +1960-08-07,7.8 +1960-08-08,7 +1960-08-09,10.9 +1960-08-10,0 +1960-08-11,19.6 +1960-08-12,5.5 +1960-08-13,0 +1960-08-14,6.5 +1960-08-15,0.6 +1960-08-16,0.5 +1960-08-17,6.5 +1960-08-18,10.1 +1960-08-19,0.1 +1960-08-20,0.1 +1960-08-21,0 +1960-08-22,0 +1960-08-23,0 +1960-08-24,0 +1960-08-25,0 +1960-08-26,0 +1960-08-27,6.5 +1960-08-28,2.6 +1960-08-29,1.2 +1960-08-30,6.4 +1960-08-31,3 +1960-09-01,0.4 +1960-09-02,0 +1960-09-03,0 +1960-09-04,8.6 +1960-09-05,0.2 +1960-09-06,1.1 +1960-09-07,1.3 +1960-09-08,0 +1960-09-09,0 +1960-09-10,0 +1960-09-11,0 +1960-09-12,0 +1960-09-13,0 +1960-09-14,0 +1960-09-15,0 +1960-09-16,0.1 +1960-09-17,0 +1960-09-18,0 +1960-09-19,2.6 +1960-09-20,2.5 +1960-09-21,0 +1960-09-22,0 +1960-09-23,0 +1960-09-24,6.4 +1960-09-25,0 +1960-09-26,0 +1960-09-27,0 +1960-09-28,0 +1960-09-29,0 +1960-09-30,2.9 +1960-10-01,0 +1960-10-02,0.2 +1960-10-03,0.3 +1960-10-04,0 +1960-10-05,0 +1960-10-06,10.2 +1960-10-07,8.9 +1960-10-08,1.3 +1960-10-09,1.9 +1960-10-10,0.2 +1960-10-11,1.4 +1960-10-12,0 +1960-10-13,0 +1960-10-14,0 +1960-10-15,16.5 +1960-10-16,19.3 +1960-10-17,3.2 +1960-10-18,0.2 +1960-10-19,0 +1960-10-20,5.1 +1960-10-21,0.3 +1960-10-22,1.2 +1960-10-23,1.2 +1960-10-24,1.3 +1960-10-25,5.5 +1960-10-26,1.2 +1960-10-27,3.6 +1960-10-28,2.3 +1960-10-29,3.7 +1960-10-30,0 +1960-10-31,2.8 +1960-11-01,1.2 +1960-11-02,0 +1960-11-03,0 +1960-11-04,8.6 +1960-11-05,0 +1960-11-06,1.6 +1960-11-07,3 +1960-11-08,0 +1960-11-09,0 +1960-11-10,2.3 +1960-11-11,0 +1960-11-12,4.5 +1960-11-13,0 +1960-11-14,0 +1960-11-15,9.3 +1960-11-16,0 +1960-11-17,2.7 +1960-11-18,3.8 +1960-11-19,9.7 +1960-11-20,0 +1960-11-21,0.2 +1960-11-22,0.3 +1960-11-23,0 +1960-11-24,0 +1960-11-25,0.2 +1960-11-26,3.2 +1960-11-27,3.3 +1960-11-28,0.5 +1960-11-29,0 +1960-11-30,0 +1960-12-01,0 +1960-12-02,0 +1960-12-03,0 +1960-12-04,4.2 +1960-12-05,5.4 +1960-12-06,2.8 +1960-12-07,0 +1960-12-08,0 +1960-12-09,2.1 +1960-12-10,2.7 +1960-12-11,0.4 +1960-12-12,0 +1960-12-13,0.2 +1960-12-14,0 +1960-12-15,0 +1960-12-16,0 +1960-12-17,0 +1960-12-18,3.4 +1960-12-19,0.4 +1960-12-20,0.2 +1960-12-21,0 +1960-12-22,8.4 +1960-12-23,0 +1960-12-24,0 +1960-12-25,0 +1960-12-26,0 +1960-12-27,0 +1960-12-28,0 +1960-12-29,0 +1960-12-30,4.8 +1960-12-31,0 diff --git a/public/fellbach/png2tif.sh b/public/fellbach/vcs_process/png2tif.sh similarity index 100% rename from public/fellbach/png2tif.sh rename to public/fellbach/vcs_process/png2tif.sh -- GitLab