visual-spending/index.html
Anton Volnuhin c441d5979f Improve center label and details box styling
- Move center label from ECharts canvas to HTML overlay for better font rendering
- Style ₽ symbol separately with lighter color (#888) and slightly smaller size (20px)
- Use tighter line height (1.0) for center label
- Remove "Детали" heading from details box, use total as header
- Remove top border from details header
- Increase header font sizes to 20px
- Add more whitespace above "Top Items:"

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-01 15:02:31 +03:00

70 lines
3.1 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Spending Visualization</title>
<link rel="stylesheet" href="styles.css">
<script src="https://cdn.jsdelivr.net/npm/echarts@5.6.0/dist/echarts.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/tinycolor/1.4.2/tinycolor.min.js"></script>
</head>
<body>
<div class="container">
<div class="header">
<h1>Семейные траты за месяц</h1>
<div class="month-navigator">
<button class="nav-arrow nav-prev" id="prev-month">&#8249;</button>
<div class="month-list" id="month-list"></div>
<button class="nav-arrow nav-next" id="next-month">&#8250;</button>
</div>
<select id="month-select" style="display: none;"></select>
</div>
<div class="content-wrapper">
<div id="chart-container"></div>
<div id="center-label" class="center-label">
<div class="center-month"></div>
<div class="center-category"></div>
<div class="center-amount"><span class="center-amount-num"></span><span class="center-rub"></span></div>
</div>
<button id="chart-eye-btn" class="chart-eye-btn" title="View transactions">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5">
<path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"/>
<circle cx="12" cy="12" r="3"/>
</svg>
</button>
<div id="details-box" class="details-box">
<div id="details-header" class="details-header">
<span class="hover-name">Hover over a segment to see details</span>
<span class="hover-amount"></span>
</div>
<h4>Top Items:</h4>
<div id="top-items"></div>
</div>
</div>
</div>
<div id="transaction-modal" class="modal-overlay" style="display: none;">
<div class="modal-content">
<div class="modal-header">
<h2 id="modal-title">Transaction Details</h2>
<button class="modal-close" id="modal-close">&times;</button>
</div>
<div class="modal-body">
<div class="modal-table-container">
<table id="modal-table" class="transaction-table">
<thead id="modal-thead"></thead>
<tbody id="modal-tbody"></tbody>
</table>
</div>
</div>
</div>
</div>
<div id="row-detail-modal" class="modal-overlay" style="display: none;">
<div class="row-detail-content">
<button class="modal-close" id="row-detail-close">&times;</button>
<h3 id="row-detail-title">Transaction Details</h3>
<div id="row-detail-body"></div>
</div>
</div>
<script src="app.js"></script>
</body>
</html>