Spaces:
Running
Running
Jair Adair dos Soares Almeida commited on
Add 3 files
Browse filesFiles changed (3)
- README.md+7-5
- index.html+1149-19
- prompts.txtAdded+1
12345678910---title: Data Analyseremoji: 🚀colorFrom: graycolorTo: pinksdk: staticpinned: false---Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference123456789101112---title: data-analyseremoji: 🐳colorFrom: bluecolorTo: yellowsdk: staticpinned: falsetags:- deepsite---Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
12345678910111213141516171819<!doctype html><html><head><meta charset="utf-8" /><meta name="viewport" content="width=device-width" /><title>My static Space</title><link rel="stylesheet" href="style.css" /></head><body><div class="card"><h1>Welcome to your static Space!</h1><p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p><p>Also don't forget to check the<a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.</p></div></body></html>123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>IGR Advanced Data Analyser AI</title><script src="https://cdn.tailwindcss.com"></script><script>tailwind.config = {darkMode: 'class',theme: {extend: {colors: {dark: {800: '#2d3748',900: '#1a202c',}}}}}</script><script src="https://cdn.jsdelivr.net/npm/chart.js"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/xlsx/0.18.5/xlsx.full.min.js"></script><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"><style>:root {--primary-color: #4f46e5;--secondary-color: #6b7280;--dark-bg: #1a202c;--dark-card: #2d3748;--dark-text: #e2e8f0;--dark-border: #4a5568;}body {background-color: var(--dark-bg);color: var(--dark-text);}.file-input-wrapper {position: relative;overflow: hidden;display: inline-block;}.file-input-wrapper input[type=file] {position: absolute;top: 0;right: 0;min-width: 100%;min-height: 100%;font-size: 100px;text-align: right;filter: alpha(opacity=0);opacity: 0;outline: none;background: white;cursor: pointer;display: block;}.multiselect {min-height: 38px;border: 1px solid var(--dark-border);border-radius: 0.375rem;padding: 0.375rem 0.75rem;background-color: var(--dark-card);}.multiselect:focus-within {outline: none;border-color: var(--primary-color);box-shadow: 0 0 0 1px var(--primary-color);}.multiselect-option {display: inline-block;background-color: #4a5568;border-radius: 0.25rem;padding: 0.25rem 0.5rem;margin-right: 0.5rem;margin-bottom: 0.5rem;color: var(--dark-text);}.multiselect-option-remove {margin-left: 0.5rem;cursor: pointer;color: #a0aec0;}.multiselect-option-remove:hover {color: #fc8181;}.dropdown-content {max-height: 200px;overflow-y: auto;background-color: var(--dark-card);border: 1px solid var(--dark-border);}.highlight {background-color: #4a5568;}.card {background-color: var(--dark-card);border: 1px solid var(--dark-border);}.table-container {max-height: 400px;overflow-y: auto;}.table-container::-webkit-scrollbar {width: 8px;height: 8px;}.table-container::-webkit-scrollbar-track {background: var(--dark-bg);}.table-container::-webkit-scrollbar-thumb {background-color: #4a5568;border-radius: 4px;}.chart-container {position: relative;height: 400px;width: 100%;}.loading-spinner {display: none;position: absolute;top: 50%;left: 50%;transform: translate(-50%, -50%);z-index: 10;}.data-table {width: 100%;border-collapse: collapse;}.data-table th, .data-table td {padding: 0.75rem;text-align: left;border-bottom: 1px solid var(--dark-border);}.data-table th {background-color: #2d3748;color: var(--dark-text);font-weight: 600;text-transform: uppercase;font-size: 0.75rem;letter-spacing: 0.05em;}.data-table tr:hover td {background-color: #4a5568;}.tab-button {padding: 0.5rem 1rem;border-radius: 0.375rem 0.375rem 0 0;background-color: var(--dark-card);border: 1px solid var(--dark-border);border-bottom: none;color: var(--dark-text);cursor: pointer;transition: all 0.2s;}.tab-button.active {background-color: var(--primary-color);color: white;border-color: var(--primary-color);}.tab-content {display: none;}.tab-content.active {display: block;}.stat-card {background-color: var(--dark-card);border-radius: 0.5rem;padding: 1rem;border: 1px solid var(--dark-border);}.stat-card h3 {font-size: 0.875rem;color: #a0aec0;margin-bottom: 0.5rem;}.stat-card p {font-size: 1.5rem;font-weight: 600;color: var(--dark-text);}.tooltip {position: relative;display: inline-block;}.tooltip .tooltip-text {visibility: hidden;width: 200px;background-color: #4a5568;color: #fff;text-align: center;border-radius: 6px;padding: 5px;position: absolute;z-index: 1;bottom: 125%;left: 50%;transform: translateX(-50%);opacity: 0;transition: opacity 0.3s;}.tooltip:hover .tooltip-text {visibility: visible;opacity: 1;}</style></head><body class="min-h-screen"><div class="container mx-auto px-4 py-8"><header class="mb-8 text-center"><h1 class="text-4xl font-bold text-indigo-400 mb-2">IGR Advanced Data Analyser</h1><p class="text-lg text-gray-400">Powerful data visualization and analysis tool</p></header><div class="flex mb-4 space-x-2 border-b border-gray-700"><button class="tab-button active" data-tab="analysis">Data Analysis</button><button class="tab-button" data-tab="statistics">Statistics</button><button class="tab-button" data-tab="export">Export</button></div><div id="analysis" class="tab-content active"><div class="card rounded-lg shadow-lg p-6 mb-8"><div class="flex flex-col md:flex-row gap-6"><div class="w-full md:w-1/3"><h2 class="text-xl font-semibold mb-4">Upload Data</h2><div class="file-input-wrapper mb-4"><button class="w-full bg-indigo-600 hover:bg-indigo-700 text-white font-medium py-2 px-4 rounded-lg transition duration-200 flex items-center justify-center"><i class="fas fa-file-excel mr-2"></i> Choose Excel File<input type="file" id="fileInput" class="hidden" accept=".xlsx, .xls, .csv"></button></div><div id="fileName" class="text-sm text-gray-400 mt-2 italic"></div><div class="mt-6"><h3 class="font-medium mb-2 flex items-center">Search Columns<div class="tooltip ml-2"><i class="fas fa-info-circle text-gray-400"></i><span class="tooltip-text">Search for specific columns in your dataset</span></div></h3><div class="relative"><input type="text" id="columnSearch" placeholder="Search columns..." class="w-full px-4 py-2 border border-gray-600 rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500 bg-dark-900 text-white"><i class="fas fa-search absolute right-3 top-3 text-gray-400"></i></div></div><div class="mt-4"><h3 class="font-medium mb-2">Available Columns</h3><div id="columnList" class="border border-gray-600 rounded-lg p-2 max-h-60 overflow-y-auto bg-dark-900"><p class="text-gray-400 italic">Upload a file to see available columns</p></div></div><div class="mt-6"><h3 class="font-medium mb-2">Quick Stats</h3><div class="grid grid-cols-2 gap-4" id="quickStats"><div class="stat-card"><h3>Total Rows</h3><p id="totalRows">-</p></div><div class="stat-card"><h3>Total Columns</h3><p id="totalColumns">-</p></div></div></div></div><div class="w-full md:w-2/3"><h2 class="text-xl font-semibold mb-4">Visualization Settings</h2><div class="grid grid-cols-1 md:grid-cols-2 gap-4 mb-6"><div><label for="xAxisSelect" class="block text-sm font-medium mb-1 flex items-center">X-Axis (Multiple Selection)<div class="tooltip ml-2"><i class="fas fa-info-circle text-gray-400"></i><span class="tooltip-text">Select one or more columns for the X-axis</span></div></label><div class="multiselect" id="xAxisSelect"><div class="multiselect-selected flex flex-wrap"></div><input type="text" class="multiselect-input w-full border-0 focus:ring-0 p-0 bg-transparent text-white" placeholder="Select columns..."><div class="dropdown-content hidden absolute z-10 mt-1 w-full rounded-lg shadow-lg"><div class="multiselect-options max-h-60 overflow-y-auto"></div></div></div></div><div><label for="yAxisSelect" class="block text-sm font-medium mb-1 flex items-center">Y-Axis (Multiple Selection)<div class="tooltip ml-2"><i class="fas fa-info-circle text-gray-400"></i><span class="tooltip-text">Select one or more columns for the Y-axis</span></div></label><div class="multiselect" id="yAxisSelect"><div class="multiselect-selected flex flex-wrap"></div><input type="text" class="multiselect-input w-full border-0 focus:ring-0 p-0 bg-transparent text-white" placeholder="Select columns..."><div class="dropdown-content hidden absolute z-10 mt-1 w-full rounded-lg shadow-lg"><div class="multiselect-options max-h-60 overflow-y-auto"></div></div></div></div></div><div class="mb-6"><label for="chartType" class="block text-sm font-medium mb-1">Chart Type</label><select id="chartType" class="w-full px-4 py-2 border border-gray-600 rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500 bg-dark-900 text-white"><option value="line">Line Chart</option><option value="bar">Bar Chart</option><option value="scatter">Scatter Plot</option><option value="pie">Pie Chart</option><option value="doughnut">Doughnut Chart</option><option value="radar">Radar Chart</option><option value="bubble">Bubble Chart</option></select></div><div class="flex justify-between items-center mb-4"><h3 class="font-medium">Chart Preview</h3><div class="flex space-x-2"><button id="resetChart" class="bg-gray-600 hover:bg-gray-700 text-white font-medium py-2 px-4 rounded-lg transition duration-200 flex items-center"><i class="fas fa-redo mr-2"></i> Reset</button><button id="generateChart" class="bg-indigo-600 hover:bg-indigo-700 text-white font-medium py-2 px-4 rounded-lg transition duration-200 flex items-center"><i class="fas fa-chart-line mr-2"></i> Generate Chart</button></div></div><div class="bg-dark-900 p-4 rounded-lg border border-gray-600 relative"><div class="loading-spinner" id="chartLoading"><i class="fas fa-circle-notch fa-spin text-4xl text-indigo-400"></i></div><div class="chart-container"><canvas id="dataChart"></canvas></div></div></div></div></div><div class="card rounded-lg shadow-lg p-6"><div class="flex justify-between items-center mb-4"><h2 class="text-xl font-semibold">Data Preview</h2><div class="flex items-center space-x-2"><div class="relative"><input type="text" id="tableSearch" placeholder="Search data..." class="px-4 py-2 border border-gray-600 rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500 bg-dark-900 text-white"><i class="fas fa-search absolute right-3 top-3 text-gray-400"></i></div><button id="exportData" class="bg-green-600 hover:bg-green-700 text-white font-medium py-2 px-4 rounded-lg transition duration-200 flex items-center"><i class="fas fa-file-export mr-2"></i> Export</button></div></div><div class="table-container"><table id="dataTable" class="data-table"><thead><tr><!-- Table headers will be populated dynamically --></tr></thead><tbody><!-- Table data will be populated dynamically --></tbody></table></div><div class="mt-4 text-sm text-gray-400" id="tableInfo">Showing 0 rows of 0 total</div></div></div><div id="statistics" class="tab-content"><div class="card rounded-lg shadow-lg p-6 mb-8"><h2 class="text-xl font-semibold mb-4">Dataset Statistics</h2><div class="grid grid-cols-1 md:grid-cols-3 gap-4 mb-6" id="datasetStats"><div class="stat-card"><h3>Total Rows</h3><p id="statTotalRows">-</p></div><div class="stat-card"><h3>Total Columns</h3><p id="statTotalColumns">-</p></div><div class="stat-card"><h3>File Size</h3><p id="fileSize">-</p></div></div><h3 class="font-medium mb-2">Column Statistics</h3><div class="overflow-x-auto"><table class="data-table w-full"><thead><tr><th>Column</th><th>Type</th><th>Unique Values</th><th>Missing Values</th><th>Min</th><th>Max</th><th>Mean</th></tr></thead><tbody id="columnStats"><tr><td colspan="7" class="text-center py-4 text-gray-400">Upload a file to see column statistics</td></tr></tbody></table></div></div></div><div id="export" class="tab-content"><div class="card rounded-lg shadow-lg p-6"><h2 class="text-xl font-semibold mb-4">Export Options</h2><div class="grid grid-cols-1 md:grid-cols-2 gap-6"><div><h3 class="font-medium mb-2">Export Data</h3><div class="space-y-4"><div class="flex items-center"><input type="radio" id="exportAll" name="exportScope" value="all" checked class="mr-2"><label for="exportAll">All data</label></div><div class="flex items-center"><input type="radio" id="exportFiltered" name="exportScope" value="filtered" class="mr-2"><label for="exportFiltered">Filtered data (if search applied)</label></div></div><div class="mt-6"><h3 class="font-medium mb-2">Export Format</h3><select id="exportFormat" class="w-full px-4 py-2 border border-gray-600 rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500 bg-dark-900 text-white"><option value="csv">CSV</option><option value="xlsx">Excel (XLSX)</option><option value="json">JSON</option></select></div><button id="exportDataBtn" class="mt-6 w-full bg-green-600 hover:bg-green-700 text-white font-medium py-2 px-4 rounded-lg transition duration-200 flex items-center justify-center"><i class="fas fa-file-export mr-2"></i> Export Data</button></div><div><h3 class="font-medium mb-2">Export Chart</h3><div class="space-y-4"><div class="flex items-center"><input type="radio" id="exportChartPNG" name="chartFormat" value="png" checked class="mr-2"><label for="exportChartPNG">PNG Image</label></div><div class="flex items-center"><input type="radio" id="exportChartJPEG" name="chartFormat" value="jpeg" class="mr-2"><label for="exportChartJPEG">JPEG Image</label></div><div class="flex items-center"><input type="radio" id="exportChartSVG" name="chartFormat" value="svg" class="mr-2"><label for="exportChartSVG">SVG Vector</label></div></div><div class="mt-6"><h3 class="font-medium mb-2">Chart Quality</h3><select id="chartQuality" class="w-full px-4 py-2 border border-gray-600 rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500 bg-dark-900 text-white"><option value="1">High (1x)</option><option value="2">Very High (2x)</option><option value="0.5">Medium (0.5x)</option></select></div><button id="exportChartBtn" class="mt-6 w-full bg-blue-600 hover:bg-blue-700 text-white font-medium py-2 px-4 rounded-lg transition duration-200 flex items-center justify-center"><i class="fas fa-chart-pie mr-2"></i> Export Chart</button></div></div></div></div></div><script>document.addEventListener('DOMContentLoaded', function() {// Global variableslet rawData = [];let filteredData = [];let columns = [];let currentChart = null;let currentFile = null;// Tab functionalitydocument.querySelectorAll('.tab-button').forEach(button => {button.addEventListener('click', function() {// Remove active class from all buttons and contentdocument.querySelectorAll('.tab-button').forEach(btn => btn.classList.remove('active'));document.querySelectorAll('.tab-content').forEach(content => content.classList.remove('active'));// Add active class to clicked button and corresponding contentthis.classList.add('active');const tabId = this.getAttribute('data-tab');document.getElementById(tabId).classList.add('active');});});// File input handlerdocument.getElementById('fileInput').addEventListener('change', handleFileUpload);// Column search functionalitydocument.getElementById('columnSearch').addEventListener('input', function(e) {const searchTerm = e.target.value.toLowerCase();const columnItems = document.querySelectorAll('#columnList .column-item');columnItems.forEach(item => {const columnName = item.textContent.toLowerCase();if (columnName.includes(searchTerm)) {item.classList.remove('hidden');item.classList.add('highlight');} else {item.classList.add('hidden');item.classList.remove('highlight');}});});// Table search functionalitydocument.getElementById('tableSearch').addEventListener('input', function(e) {const searchTerm = e.target.value.toLowerCase();if (searchTerm === '') {filteredData = [...rawData];populateDataTable();return;}filteredData = rawData.filter(row => {return row.some(cell => {return cell !== undefined && cell.toString().toLowerCase().includes(searchTerm);});});populateDataTable();updateTableInfo();});// Initialize multiselect componentsinitMultiselect('xAxisSelect');initMultiselect('yAxisSelect');// Generate chart buttondocument.getElementById('generateChart').addEventListener('click', generateChart);// Reset chart buttondocument.getElementById('resetChart').addEventListener('click', function() {if (currentChart) {currentChart.destroy();currentChart = null;}document.querySelectorAll('.multiselect-selected').forEach(el => el.innerHTML = '');});// Export data buttondocument.getElementById('exportData').addEventListener('click', exportData);document.getElementById('exportDataBtn').addEventListener('click', exportData);// Export chart buttondocument.getElementById('exportChartBtn').addEventListener('click', exportChart);// File upload handlerfunction handleFileUpload(e) {const file = e.target.files[0];if (!file) return;currentFile = file;document.getElementById('fileName').textContent = `Selected file: ${file.name}`;document.getElementById('fileSize').textContent = formatFileSize(file.size);// Show loading stateconst chartLoading = document.getElementById('chartLoading');chartLoading.style.display = 'block';const reader = new FileReader();reader.onload = function(e) {const data = new Uint8Array(e.target.result);const workbook = XLSX.read(data, { type: 'array' });// Get first sheetconst firstSheet = workbook.Sheets[workbook.SheetNames[0]];// Convert to JSONrawData = XLSX.utils.sheet_to_json(firstSheet, { header: 1 });filteredData = [...rawData];// Extract headers (assuming first row is headers)columns = rawData[0] || [];rawData = rawData.slice(1); // Remove header rowfilteredData = filteredData.slice(1);// Populate column listpopulateColumnList();// Populate data tablepopulateDataTable();// Update statsupdateStats();// Initialize multiselect optionsupdateMultiselectOptions('xAxisSelect', columns);updateMultiselectOptions('yAxisSelect', columns);// Hide loading statechartLoading.style.display = 'none';};reader.onerror = function() {alert('Error reading file');chartLoading.style.display = 'none';};reader.readAsArrayBuffer(file);}// Format file sizefunction formatFileSize(bytes) {if (bytes === 0) return '0 Bytes';const k = 1024;const sizes = ['Bytes', 'KB', 'MB', 'GB'];const i = Math.floor(Math.log(bytes) / Math.log(k));return parseFloat((bytes / Math.pow(k, i)).toFixed(2)) + ' ' + sizes[i];}// Populate column listfunction populateColumnList() {const columnList = document.getElementById('columnList');columnList.innerHTML = '';if (columns.length === 0) {columnList.innerHTML = '<p class="text-gray-400 italic">No columns found</p>';return;}columns.forEach((column, index) => {const columnItem = document.createElement('div');columnItem.className = 'column-item p-2 hover:bg-gray-700 cursor-pointer rounded';columnItem.textContent = column;columnItem.dataset.columnIndex = index;columnItem.addEventListener('click', function() {// Highlight selected columndocument.querySelectorAll('#columnList .column-item').forEach(item => {item.classList.remove('bg-indigo-900');});this.classList.add('bg-indigo-900');});columnList.appendChild(columnItem);});}// Populate data tablefunction populateDataTable() {const table = document.getElementById('dataTable');const thead = table.querySelector('thead tr');const tbody = table.querySelector('tbody');// Clear existing contentthead.innerHTML = '';tbody.innerHTML = '';// Add headerscolumns.forEach(column => {const th = document.createElement('th');th.textContent = column;thead.appendChild(th);});// Add data rows (limit to 100 for performance)const displayData = filteredData.slice(0, 100);displayData.forEach(row => {const tr = document.createElement('tr');columns.forEach((_, index) => {const td = document.createElement('td');td.className = 'text-gray-300';td.textContent = row[index] !== undefined ? row[index] : '';tr.appendChild(td);});tbody.appendChild(tr);});updateTableInfo();}// Update table infofunction updateTableInfo() {const totalRows = rawData.length;const showingRows = filteredData.length;const isFiltered = showingRows !== totalRows;let infoText = `Showing ${Math.min(showingRows, 100)} rows of ${showingRows} total`;if (isFiltered) {infoText += ` (filtered from ${totalRows} total rows)`;}document.getElementById('tableInfo').textContent = infoText;}// Update statsfunction updateStats() {document.getElementById('totalRows').textContent = rawData.length;document.getElementById('totalColumns').textContent = columns.length;document.getElementById('statTotalRows').textContent = rawData.length;document.getElementById('statTotalColumns').textContent = columns.length;// Update column statsconst columnStats = document.getElementById('columnStats');columnStats.innerHTML = '';if (columns.length === 0) {columnStats.innerHTML = '<tr><td colspan="7" class="text-center py-4 text-gray-400">No columns found</td></tr>';return;}columns.forEach((col, index) => {const values = rawData.map(row => row[index]);const numericValues = values.filter(val => !isNaN(parseFloat(val))).map(Number);const uniqueValues = new Set(values.filter(val => val !== undefined && val !== '').map(String));const row = document.createElement('tr');row.className = 'hover:bg-gray-700';// Column nameconst nameCell = document.createElement('td');nameCell.textContent = col;row.appendChild(nameCell);// Typeconst typeCell = document.createElement('td');typeCell.textContent = numericValues.length > 0 ? 'Numeric' : 'Text';row.appendChild(typeCell);// Unique valuesconst uniqueCell = document.createElement('td');uniqueCell.textContent = uniqueValues.size;row.appendChild(uniqueCell);// Missing valuesconst missingCell = document.createElement('td');const missingCount = values.filter(val => val === undefined || val === '').length;missingCell.textContent = missingCount;row.appendChild(missingCell);// Min (for numeric columns)const minCell = document.createElement('td');minCell.textContent = numericValues.length > 0 ? Math.min(...numericValues).toFixed(2) : '-';row.appendChild(minCell);// Max (for numeric columns)const maxCell = document.createElement('td');maxCell.textContent = numericValues.length > 0 ? Math.max(...numericValues).toFixed(2) : '-';row.appendChild(maxCell);// Mean (for numeric columns)const meanCell = document.createElement('td');if (numericValues.length > 0) {const sum = numericValues.reduce((a, b) => a + b, 0);meanCell.textContent = (sum / numericValues.length).toFixed(2);} else {meanCell.textContent = '-';}row.appendChild(meanCell);columnStats.appendChild(row);});}// Initialize multiselect componentfunction initMultiselect(id) {const container = document.getElementById(id);const selectedContainer = container.querySelector('.multiselect-selected');const input = container.querySelector('.multiselect-input');const dropdown = container.querySelector('.dropdown-content');const optionsContainer = container.querySelector('.multiselect-options');// Toggle dropdown on input focusinput.addEventListener('focus', function() {dropdown.classList.remove('hidden');input.placeholder = 'Type to search...';});// Close dropdown when clicking outsidedocument.addEventListener('click', function(e) {if (!container.contains(e.target)) {dropdown.classList.add('hidden');input.placeholder = 'Select columns...';}});// Search within optionsinput.addEventListener('input', function(e) {const searchTerm = e.target.value.toLowerCase();const options = optionsContainer.querySelectorAll('.multiselect-option-item');options.forEach(option => {const text = option.textContent.toLowerCase();if (text.includes(searchTerm)) {option.classList.remove('hidden');} else {option.classList.add('hidden');}});});}// Update multiselect optionsfunction updateMultiselectOptions(id, options) {const container = document.getElementById(id);const optionsContainer = container.querySelector('.multiselect-options');optionsContainer.innerHTML = '';options.forEach((option, index) => {const optionItem = document.createElement('div');optionItem.className = 'multiselect-option-item px-4 py-2 hover:bg-gray-700 cursor-pointer';optionItem.textContent = option;optionItem.dataset.value = index;optionItem.addEventListener('click', function() {addSelectedOption(id, option, index);});optionsContainer.appendChild(optionItem);});}// Add selected option to multiselectfunction addSelectedOption(id, option, index) {const container = document.getElementById(id);const selectedContainer = container.querySelector('.multiselect-selected');// Check if option is already selectedconst existingOption = selectedContainer.querySelector(`[data-value="${index}"]`);if (existingOption) return;// Create selected option tagconst selectedOption = document.createElement('div');selectedOption.className = 'multiselect-option bg-indigo-900 text-indigo-100';selectedOption.dataset.value = index;const optionText = document.createElement('span');optionText.textContent = option;const removeButton = document.createElement('span');removeButton.className = 'multiselect-option-remove';removeButton.innerHTML = '×';removeButton.addEventListener('click', function(e) {e.stopPropagation();selectedOption.remove();});selectedOption.appendChild(optionText);selectedOption.appendChild(removeButton);selectedContainer.appendChild(selectedOption);// Clear input and hide dropdowncontainer.querySelector('.multiselect-input').value = '';container.querySelector('.dropdown-content').classList.add('hidden');}// Get selected options from multiselectfunction getSelectedOptions(id) {const container = document.getElementById(id);const selectedOptions = container.querySelectorAll('.multiselect-selected [data-value]');return Array.from(selectedOptions).map(option => ({index: parseInt(option.dataset.value),name: option.textContent.replace('×', '').trim()}));}// Generate chart based on selected optionsfunction generateChart() {const xAxisOptions = getSelectedOptions('xAxisSelect');const yAxisOptions = getSelectedOptions('yAxisSelect');const chartType = document.getElementById('chartType').value;if (xAxisOptions.length === 0 || yAxisOptions.length === 0) {alert('Please select at least one column for both X and Y axes');return;}// Show loading stateconst chartLoading = document.getElementById('chartLoading');chartLoading.style.display = 'block';// Use setTimeout to allow UI to update before heavy processingsetTimeout(() => {try {// Prepare data for Chart.jsconst labels = rawData.map(row => {return xAxisOptions.map(opt => row[opt.index]).join(' - ');});const datasets = yAxisOptions.map((yOpt, i) => {const colors = ['#4f46e5', '#ef4444', '#10b981', '#f59e0b', '#8b5cf6','#ec4899', '#14b8a6', '#f97316', '#64748b', '#84cc16'];return {label: yOpt.name,data: rawData.map(row => row[yOpt.index]),borderColor: colors[i % colors.length],backgroundColor: colors[i % colors.length],borderWidth: 2,tension: 0.1,fill: false};});// Get chart canvas and destroy previous chart if existsconst ctx = document.getElementById('dataChart').getContext('2d');if (currentChart) {currentChart.destroy();}// Create new chartcurrentChart = new Chart(ctx, {type: chartType,data: {labels: labels,datasets: datasets},options: {responsive: true,maintainAspectRatio: false,plugins: {title: {display: true,text: 'Data Visualization',font: {size: 16},color: '#e2e8f0'},tooltip: {mode: 'index',intersect: false,backgroundColor: '#2d3748',titleColor: '#e2e8f0',bodyColor: '#e2e8f0',borderColor: '#4a5568',borderWidth: 1},legend: {position: 'bottom',labels: {boxWidth: 12,color: '#e2e8f0'}}},scales: {x: {title: {display: true,text: xAxisOptions.map(opt => opt.name).join(' + '),font: {weight: 'bold'},color: '#e2e8f0'},grid: {color: '#4a5568'},ticks: {color: '#a0aec0'}},y: {title: {display: true,text: yAxisOptions.length === 1 ? yAxisOptions[0].name : 'Multiple Values',font: {weight: 'bold'},color: '#e2e8f0'},grid: {color: '#4a5568'},ticks: {color: '#a0aec0'}}}}});} catch (error) {console.error('Error generating chart:', error);alert('Error generating chart: ' + error.message);} finally {// Hide loading statechartLoading.style.display = 'none';}}, 100);}// Export datafunction exportData() {if (rawData.length === 0) {alert('No data to export');return;}const exportScope = document.querySelector('input[name="exportScope"]:checked').value;const exportFormat = document.getElementById('exportFormat').value;let dataToExport;if (exportScope === 'all') {dataToExport = [columns, ...rawData];} else {dataToExport = [columns, ...filteredData];}let blob, filename;if (exportFormat === 'csv') {const csvContent = dataToExport.map(row =>row.map(cell =>typeof cell === 'string' ? `"${cell.replace(/"/g, '""')}"` : cell).join(',')).join('\n');blob = new Blob([csvContent], { type: 'text/csv;charset=utf-8;' });filename = 'data_export.csv';}else if (exportFormat === 'xlsx') {const ws = XLSX.utils.aoa_to_sheet(dataToExport);const wb = XLSX.utils.book_new();XLSX.utils.book_append_sheet(wb, ws, 'Sheet1');const excelBuffer = XLSX.write(wb, { bookType: 'xlsx', type: 'array' });blob = new Blob([excelBuffer], { type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' });filename = 'data_export.xlsx';}else if (exportFormat === 'json') {const jsonData = [];const headers = dataToExport[0];for (let i = 1; i < dataToExport.length; i++) {const obj = {};for (let j = 0; j < headers.length; j++) {obj[headers[j]] = dataToExport[i][j];}jsonData.push(obj);}blob = new Blob([JSON.stringify(jsonData, null, 2)], { type: 'application/json' });filename = 'data_export.json';}const url = URL.createObjectURL(blob);const a = document.createElement('a');a.href = url;a.download = filename;document.body.appendChild(a);a.click();document.body.removeChild(a);URL.revokeObjectURL(url);}// Export chartfunction exportChart() {if (!currentChart) {alert('No chart to export');return;}const format = document.querySelector('input[name="chartFormat"]:checked').value;const quality = parseFloat(document.getElementById('chartQuality').value);const canvas = document.getElementById('dataChart');let imageUrl;if (format === 'svg') {// SVG export (not supported directly by Chart.js, this is a simplified approach)const serializer = new XMLSerializer();const svgBlob = new Blob([serializer.serializeToString(canvas)], { type: 'image/svg+xml' });imageUrl = URL.createObjectURL(svgBlob);} else {// PNG or JPEG exportimageUrl = canvas.toDataURL(`image/${format}`, quality);}const a = document.createElement('a');a.href = imageUrl;a.download = `chart_export.${format}`;document.body.appendChild(a);a.click();document.body.removeChild(a);if (format !== 'svg') {URL.revokeObjectURL(imageUrl);}}});</script><p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=jair2323/resmonit-1" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p><p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=jair2323/data-analyser" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body></html>
1adicione o necessario para tornar a aplicação mais robusta, de salientar que a acor da aplicação deverá ser cinza escuro <!DOCTYPE html> <html lang="en"> <head><script>window.huggingface={variables:{"SPACE_CREATOR_USER_ID":"68151e9e4f1bf760cbaeb868"}};</script> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>IGR Advanced Data Analyser AI</title> <script src="https://cdn.tailwindcss.com"></script> <script src="https://cdn.jsdelivr.net/npm/chart.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/xlsx/0.18.5/xlsx.full.min.js"></script> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"> <style> .file-input-wrapper { position: relative; overflow: hidden; display: inline-block; } .file-input-wrapper input[type=file] { position: absolute; top: 0; right: 0; min-width: 100%; min-height: 100%; font-size: 100px; text-align: right; filter: alpha(opacity=0); opacity: 0; outline: none; background: white; cursor: pointer; display: block; } .multiselect { min-height: 38px; border: 1px solid #d1d5db; border-radius: 0.375rem; padding: 0.375rem 0.75rem; } .multiselect:focus { outline: none; border-color: #3b82f6; box-shadow: 0 0 0 1px #3b82f6; } .multiselect-option { display: inline-block; background-color: #e5e7eb; border-radius: 0.25rem; padding: 0.25rem 0.5rem; margin-right: 0.5rem; margin-bottom: 0.5rem; } .multiselect-option-remove { margin-left: 0.5rem; cursor: pointer; color: #6b7280; } .multiselect-option-remove:hover { color: #ef4444; } .dropdown-content { max-height: 200px; overflow-y: auto; } .highlight { background-color: #f0f9ff; } </style> </head> <body class="bg-gray-50 min-h-screen"> <div class="container mx-auto px-4 py-8"> <header class="mb-8 text-center"> <h1 class="text-4xl font-bold text-blue-800 mb-2">IGR Advanced Data Analyser AI</h1> <p class="text-lg text-gray-600">Powerful data visualization and analysis tool</p> </header> <div class="bg-white rounded-lg shadow-lg p-6 mb-8"> <div class="flex flex-col md:flex-row gap-6"> <div class="w-full md:w-1/3"> <h2 class="text-xl font-semibold mb-4 text-gray-800">Upload Data</h2> <div class="file-input-wrapper mb-4"> <button class="w-full bg-blue-600 hover:bg-blue-700 text-white font-medium py-2 px-4 rounded-lg transition duration-200 flex items-center justify-center"> <i class="fas fa-file-excel mr-2"></i> Choose Excel File <input type="file" id="fileInput" class="hidden" accept=".xlsx, .xls, .csv"> </button> </div> <div id="fileName" class="text-sm text-gray-500 mt-2 italic"></div> <div class="mt-6"> <h3 class="font-medium text-gray-700 mb-2">Search Columns</h3> <div class="relative"> <input type="text" id="columnSearch" placeholder="Search columns..." class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500"> <i class="fas fa-search absolute right-3 top-3 text-gray-400"></i> </div> </div> <div class="mt-4"> <h3 class="font-medium text-gray-700 mb-2">Available Columns</h3> <div id="columnList" class="border border-gray-200 rounded-lg p-2 max-h-60 overflow-y-auto"> <p class="text-gray-500 italic">Upload a file to see available columns</p> </div> </div> </div> <div class="w-full md:w-2/3"> <h2 class="text-xl font-semibold mb-4 text-gray-800">Visualization Settings</h2> <div class="grid grid-cols-1 md:grid-cols-2 gap-4 mb-6"> <div> <label for="xAxisSelect" class="block text-sm font-medium text-gray-700 mb-1">X-Axis (Multiple Selection)</label> <div class="multiselect" id="xAxisSelect"> <div class="multiselect-selected flex flex-wrap"></div> <input type="text" class="multiselect-input w-full border-0 focus:ring-0 p-0" placeholder="Select columns..."> <div class="dropdown-content hidden absolute z-10 mt-1 w-full bg-white border border-gray-300 rounded-lg shadow-lg"> <div class="multiselect-options max-h-60 overflow-y-auto"></div> </div> </div> </div> <div> <label for="yAxisSelect" class="block text-sm font-medium text-gray-700 mb-1">Y-Axis (Multiple Selection)</label> <div class="multiselect" id="yAxisSelect"> <div class="multiselect-selected flex flex-wrap"></div> <input type="text" class="multiselect-input w-full border-0 focus:ring-0 p-0" placeholder="Select columns..."> <div class="dropdown-content hidden absolute z-10 mt-1 w-full bg-white border border-gray-300 rounded-lg shadow-lg"> <div class="multiselect-options max-h-60 overflow-y-auto"></div> </div> </div> </div> </div> <div class="mb-6"> <label for="chartType" class="block text-sm font-medium text-gray-700 mb-1">Chart Type</label> <select id="chartType" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500"> <option value="line">Line Chart</option> <option value="bar">Bar Chart</option> <option value="scatter">Scatter Plot</option> <option value="pie">Pie Chart</option> <option value="doughnut">Doughnut Chart</option> <option value="radar">Radar Chart</option> </select> </div> <div class="flex justify-between items-center mb-4"> <h3 class="font-medium text-gray-700">Chart Preview</h3> <button id="generateChart" class="bg-blue-600 hover:bg-blue-700 text-white font-medium py-2 px-4 rounded-lg transition duration-200 flex items-center"> <i class="fas fa-chart-line mr-2"></i> Generate Chart </button> </div> <div class="bg-gray-50 p-4 rounded-lg border border-gray-200"> <div class="chart-container" style="position: relative; height: 400px; width: 100%"> <canvas id="dataChart"></canvas> </div> </div> </div> </div> </div> <div class="bg-white rounded-lg shadow-lg p-6"> <h2 class="text-xl font-semibold mb-4 text-gray-800">Data Preview</h2> <div class="overflow-x-auto"> <table id="dataTable" class="min-w-full divide-y divide-gray-200"> <thead class="bg-gray-50"> <tr> <!-- Table headers will be populated dynamically --> </tr> </thead> <tbody class="bg-white divide-y divide-gray-200"> <!-- Table data will be populated dynamically --> </tbody> </table> </div> </div> </div> <script> document.addEventListener('DOMContentLoaded', function() { // Global variables let rawData = []; let columns = []; let currentChart = null; // File input handler document.getElementById('fileInput').addEventListener('change', handleFileUpload); // Column search functionality document.getElementById('columnSearch').addEventListener('input', function(e) { const searchTerm = e.target.value.toLowerCase(); const columnItems = document.querySelectorAll('#columnList .column-item'); columnItems.forEach(item => { const columnName = item.textContent.toLowerCase(); if (columnName.includes(searchTerm)) { item.classList.remove('hidden'); item.classList.add('highlight'); } else { item.classList.add('hidden'); item.classList.remove('highlight'); } }); }); // Initialize multiselect components initMultiselect('xAxisSelect'); initMultiselect('yAxisSelect'); // Generate chart button document.getElementById('generateChart').addEventListener('click', generateChart); // File upload handler function handleFileUpload(e) { const file = e.target.files[0]; if (!file) return; document.getElementById('fileName').textContent = `Selected file: ${file.name}`; const reader = new FileReader(); reader.onload = function(e) { const data = new Uint8Array(e.target.result); const workbook = XLSX.read(data, { type: 'array' }); // Get first sheet const firstSheet = workbook.Sheets[workbook.SheetNames[0]]; // Convert to JSON rawData = XLSX.utils.sheet_to_json(firstSheet, { header: 1 }); // Extract headers (assuming first row is headers) columns = rawData[0] || []; rawData = rawData.slice(1); // Remove header row // Populate column list populateColumnList(); // Populate data table populateDataTable(); // Initialize multiselect options updateMultiselectOptions('xAxisSelect', columns); updateMultiselectOptions('yAxisSelect', columns); }; reader.readAsArrayBuffer(file); } // Populate column list function populateColumnList() { const columnList = document.getElementById('columnList'); columnList.innerHTML = ''; if (columns.length === 0) { columnList.innerHTML = '<p class="text-gray-500 italic">No columns found</p>'; return; } columns.forEach((column, index) => { const columnItem = document.createElement('div'); columnItem.className = 'column-item p-2 hover:bg-gray-100 cursor-pointer rounded'; columnItem.textContent = column; columnItem.dataset.columnIndex = index; columnItem.addEventListener('click', function() { // Highlight selected column document.querySelectorAll('#columnList .column-item').forEach(item => { item.classList.remove('bg-blue-100'); }); this.classList.add('bg-blue-100'); // You could add functionality here to auto-select the column for X or Y axis }); columnList.appendChild(columnItem); }); } // Populate data table function populateDataTable() { const table = document.getElementById('dataTable'); const thead = table.querySelector('thead tr'); const tbody = table.querySelector('tbody'); // Clear existing content thead.innerHTML = ''; tbody.innerHTML = ''; // Add headers columns.forEach(column => { const th = document.createElement('th'); th.className = 'px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider'; th.textContent = column; thead.appendChild(th); }); // Add data rows (limit to 50 for performance) const displayData = rawData.slice(0, 50); displayData.forEach(row => { const tr = document.createElement('tr'); columns.forEach((_, index) => { const td = document.createElement('td'); td.className = 'px-6 py-4 whitespace-nowrap text-sm text-gray-500'; td.textContent = row[index] !== undefined ? row[index] : ''; tr.appendChild(td); }); tbody.appendChild(tr); }); } // Initialize multiselect component function initMultiselect(id) { const container = document.getElementById(id); const selectedContainer = container.querySelector('.multiselect-selected'); const input = container.querySelector('.multiselect-input'); const dropdown = container.querySelector('.dropdown-content'); const optionsContainer = container.querySelector('.multiselect-options'); // Toggle dropdown on input focus input.addEventListener('focus', function() { dropdown.classList.remove('hidden'); input.placeholder = 'Type to search...'; }); // Close dropdown when clicking outside document.addEventListener('click', function(e) { if (!container.contains(e.target)) { dropdown.classList.add('hidden'); input.placeholder = 'Select columns...'; } }); // Search within options input.addEventListener('input', function(e) { const searchTerm = e.target.value.toLowerCase(); const options = optionsContainer.querySelectorAll('.multiselect-option-item'); options.forEach(option => { const text = option.textContent.toLowerCase(); if (text.includes(searchTerm)) { option.classList.remove('hidden'); } else { option.classList.add('hidden'); } }); }); } // Update multiselect options function updateMultiselectOptions(id, options) { const container = document.getElementById(id); const optionsContainer = container.querySelector('.multiselect-options'); optionsContainer.innerHTML = ''; options.forEach((option, index) => { const optionItem = document.createElement('div'); optionItem.className = 'multiselect-option-item px-4 py-2 hover:bg-gray-100 cursor-pointer'; optionItem.textContent = option; optionItem.dataset.value = index; optionItem.addEventListener('click', function() { addSelectedOption(id, option, index); }); optionsContainer.appendChild(optionItem); }); } // Add selected option to multiselect function addSelectedOption(id, option, index) { const container = document.getElementById(id); const selectedContainer = container.querySelector('.multiselect-selected'); // Check if option is already selected const existingOption = selectedContainer.querySelector(`[data-value="${index}"]`); if (existingOption) return; // Create selected option tag const selectedOption = document.createElement('div'); selectedOption.className = 'multiselect-option bg-blue-100 text-blue-800'; selectedOption.dataset.value = index; const optionText = document.createElement('span'); optionText.textContent = option; const removeButton = document.createElement('span'); removeButton.className = 'multiselect-option-remove'; removeButton.innerHTML = '×'; removeButton.addEventListener('click', function(e) { e.stopPropagation(); selectedOption.remove(); }); selectedOption.appendChild(optionText); selectedOption.appendChild(removeButton); selectedContainer.appendChild(selectedOption); // Clear input and hide dropdown container.querySelector('.multiselect-input').value = ''; container.querySelector('.dropdown-content').classList.add('hidden'); } // Get selected options from multiselect function getSelectedOptions(id) { const container = document.getElementById(id); const selectedOptions = container.querySelectorAll('.multiselect-selected [data-value]'); return Array.from(selectedOptions).map(option => ({ index: parseInt(option.dataset.value), name: option.textContent.replace('×', '').trim() })); } // Generate chart based on selected options function generateChart() { const xAxisOptions = getSelectedOptions('xAxisSelect'); const yAxisOptions = getSelectedOptions('yAxisSelect'); const chartType = document.getElementById('chartType').value; if (xAxisOptions.length === 0 || yAxisOptions.length === 0) { alert('Please select at least one column for both X and Y axes'); return; } // Prepare data for Chart.js const labels = rawData.map(row => { return xAxisOptions.map(opt => row[opt.index]).join(' - '); }); const datasets = yAxisOptions.map((yOpt, i) => { const colors = [ '#3b82f6', '#ef4444', '#10b981', '#f59e0b', '#8b5cf6', '#ec4899', '#14b8a6', '#f97316', '#64748b', '#84cc16' ]; return { label: yOpt.name, data: rawData.map(row => row[yOpt.index]), borderColor: colors[i % colors.length], backgroundColor: colors[i % colors.length], borderWidth: 2, tension: 0.1, fill: false }; }); // Get chart canvas and destroy previous chart if exists const ctx = document.getElementById('dataChart').getContext('2d'); if (currentChart) { currentChart.destroy(); } // Create new chart currentChart = new Chart(ctx, { type: chartType, data: { labels: labels, datasets: datasets }, options: { responsive: true, maintainAspectRatio: false, plugins: { title: { display: true, text: 'Data Visualization', font: { size: 16 } }, tooltip: { mode: 'index', intersect: false }, legend: { position: 'bottom', labels: { boxWidth: 12 } } }, scales: { x: { title: { display: true, text: xAxisOptions.map(opt => opt.name).join(' + '), font: { weight: 'bold' } } }, y: { title: { display: true, text: yAxisOptions.length === 1 ? yAxisOptions[0].name : 'Multiple Values', font: { weight: 'bold' } } } } } }); } }); </script> <p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=jair2323/resmonit-1" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body> </html>README.md+7-5
index.html+1149-19
prompts.txtAdded+1