whatisgithub

What is a-share-heatmap?

wenyuanw/a-share-heatmap — explained in plain English

Analysis updated 2026-05-18

2TypeScriptAudience · generalComplexity · 2/5Setup · easy

In one sentence

An interactive treemap that visualizes the Chinese A-share stock market, showing sector and stock performance at a glance.

Mindmap

mindmap
  root((a-share-heatmap))
    What it does
      Visualizes A-share market
      Treemap by market weight
      Color shows daily change
    Tech stack
      Next.js
      React
      Canvas 2D
      Tailwind CSS
      Vercel
    Use cases
      Market overview
      Embeddable widget
      Treemap learning
    Audience
      Investors
      Financial platforms

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Scan the entire Chinese A-share market at a glance using a color-coded treemap

USE CASE 2

Compare performance across Shanghai-Shenzhen, CSI 300, CSI A500, ChiNext, or STAR Market segments

USE CASE 3

Embed a market summary widget showing rising, flat, and falling stock counts

What is it built with?

Next.jsReactCanvas 2DTailwind CSSVercel

How does it compare?

wenyuanw/a-share-heatmaparashthr/hugo-flowargeneau12e/kairos-tx
Stars222
LanguageTypeScriptTypeScriptTypeScript
Setup difficultyeasymoderatehard
Complexity2/53/54/5
Audiencegeneraldeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · easy Time to first run · 5min

So what is it?

This is an open-source tool for visualizing the Chinese A-share stock market as an interactive heatmap. The A-share market refers to shares listed on the Shanghai and Shenzhen stock exchanges in China, and this project compresses thousands of individual stocks into a single treemap visualization where you can instantly see which sectors and stocks are rising or falling. Each colored rectangle represents a single stock. The size of the rectangle reflects the stock's market weight, bigger blocks belong to companies with higher market value. The color depth shows how much the stock has risen or fallen on a given day, letting you scan the entire market in seconds rather than scrolling through numbers. You can switch between different market scopes, the full Shanghai-Shenzhen market, CSI 300, CSI A500, the ChiNext board, or the STAR Market, and adjust the time period to today, last 5 days, last 20 days, or year-to-date. The chart is interactive: zoom in, drag to pan, hover to see individual stock details, and double-click to jump to an external data source. A one-click screenshot feature and a market overview panel showing rising, flat, and falling stock counts are also included. It is built with Next.js App Router, React, Canvas 2D, Tailwind CSS, and Vercel Serverless Functions, and can be deployed to Vercel with one click. Data is cached server-side to reduce API pressure on page refreshes. Useful for individual investors wanting a quick market overview, financial platforms needing an embeddable market summary widget, or developers learning large-scale treemap rendering with Canvas.

Copy-paste prompts

Prompt 1
Help me deploy a-share-heatmap to Vercel with one click.
Prompt 2
Show me how to switch between market scopes and time periods in a-share-heatmap.
Prompt 3
Explain how the treemap sizing and color depth represent market weight and daily change.

Frequently asked questions

What is a-share-heatmap?

An interactive treemap that visualizes the Chinese A-share stock market, showing sector and stock performance at a glance.

What language is a-share-heatmap written in?

Mainly TypeScript. The stack also includes Next.js, React, Canvas 2D.

How hard is a-share-heatmap to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is a-share-heatmap for?

Mainly general.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.