跪拜 Guibai
← Back to the summary

Four Production-Ready Data Dashboards from Two npm Packages and a JSON Config

I built a complete demo project called screen-demo in just a few hours using two packages already published to npm, directly assembling four sets of dashboards for different industry verticals. The goal: out-of-the-box, configurable, and ready for secondary development.

Two core dependencies:

Let's take a look at what these four dashboards look like and what capabilities they use.


1. Smart Cultural Tourism Scenic Area Operations Dashboard

Industry Vertical: Cultural Tourism / Scenic Areas / City Operations

Screenshot 2026-07-04 22.16.18.png

This dashboard adopts a blue-purple tech style, with a gradient font title at the top and a bottom Dock navigation that can switch between four sub-pages:

Technical Highlights:


2. Smart Logistics Park Operations Dashboard

Industry Vertical: Logistics / Parks / Supply Chain

Screenshot 2026-07-04 23.24.37.png

A green-themed dashboard with a more compact overall layout, emphasizing core business indicators such as orders, warehousing, transport capacity, and fulfillment:

This dashboard fully leverages the pixel layout advantages of visual-dashboard-scaffold: the left and right cards are strictly aligned with the design draft positions, and the central map occupies the core visual area. There is no bottom navigation overall, making it suitable for long-term single-page display.


3. Industrial IoT Equipment Operations Dashboard

Industry Vertical: Industry / IoT / Equipment Operations

Screenshot 2026-07-04 23.25.40.png

A cyan-blue industrial style, with a national equipment monitoring situation map in the center and three indicator cards symmetrically arranged on the left and right:

This dashboard focuses on demonstrating how to map operational data such as equipment status, alarm events, and SLAs onto a 3D map. The bar charts and scatter points on the map are data-driven by the MapDataInput of china-map-3d-designer, making regional value levels visible at a glance.


4. Green Energy Low-Carbon Operations Dashboard

Industry Vertical: Energy / Dual Carbon / Electric Power

Screenshot 2026-07-05 00.07.48.png

Screenshot 2026-07-05 00.09.23.png

Screenshot 2026-07-05 00.09.30.png

Screenshot 2026-07-05 00.09.39.png

A silver-white + light blue cool color scheme with a stronger tech feel, and also the dashboard with the most pages:

The bottom Dock also supports multi-page switching and includes an independent provincial map entry.


What Problems Do the Two npm Packages Solve?

@lius1314/china-map-3d-designer

A 3D China map visualization designer SDK based on Three.js, primarily responsible for the map itself:

If you want to delve deeper into the design philosophy, theme presets, and configuration workflow of the 3D map designer itself, you can read this article I wrote earlier:

I Built a 3D China Map Designer with Three.js, Out-of-the-Box

@lius1314/visual-dashboard-scaffold

A visual dashboard scaffold, primarily responsible for "assembling maps and charts into a complete dashboard":

If you need a dashboard framework that "allows you to adjust layouts yourself, export configurations, and deliver to business stakeholders," you can check out this article:

Visual Dashboard Designer Scaffold: A One-Stop Solution from Design to Delivery


Why "Out-of-the-Box"

The screen-demo project has already done two things:

  1. Static Resource Sync: Theme images from visual-dashboard-scaffold and GeoJSON from china-map-3d-designer are automatically copied to the public/ directory via a postinstall script.
  2. Default Configurations Written: The JSON configurations for the four dashboards are placed in src/config/default-dashboard-theme1.json through theme4.json, ready to be imported and rendered directly.

You only need to:

npm install
npm run dev

to see all four dashboards. Replacing data, adjusting layouts, and adding/removing pages can all be done in edit mode.


Who It's For


Final Words

screen-demo is not about writing four dashboards from scratch, but validating an idea: push common capabilities down to npm packages, leaving the business layer to only handle configuration and data. This way, the same team can reuse the same dashboard framework across different projects, and the 3D map part can also iterate independently.

If you are interested in the 3D map designer, I recommend reading my previous paid article; if you need more complete dashboard orchestration and delivery capabilities, you can check out the article published simultaneously with this one.

Related Resources:

The demo source code has been placed at the bottom of the same-titled article on my public account (柳杉前端). You can go get it if you need it.

Disclaimer

The built-in image resources (background images, card materials, header title decorations, icons, etc.) and font files (YouSheBiaoTiHei, Alibaba PuHuiTi, DS-Digital, PangMenZhengDao BiaoTiTi, Source Han Sans, etc.) in this project are all sourced from the internet, for learning and reference purposes only, and must not be used for commercial purposes. If there is any infringement of your copyright, please contact the author for removal.