Skip to content

Instantly share code, notes, and snippets.

View maan-singh's full-sized avatar
💭
Hi

Maan Singh maan-singh

💭
Hi
View GitHub Profile
@maan-singh
maan-singh / chartUtils.js
Created July 11, 2024 05:07
chart library to handle logic for render chart
class ChartManager {
constructor(chartElementId, data, rangeLinksSelector, filterFunction) {
this.chartElementId = chartElementId;
this.rangeLinksSelector = rangeLinksSelector;
this.chart = null;
this.range = '30';
this.data = data;
this.filterFunction = filterFunction;
this.init();
@maan-singh
maan-singh / txn_overview.html
Created July 11, 2024 05:07
Txn overview file with transactions, income, expenses per day.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Transactions Overview</title>
<style>
h3, h4 {
text-align: center;
}