← Back to Blog

Showcase: The Power of Visualization

Exploring the full potential of data visualization and cinematic code blocks in Astro Glass.

Written by Team · · 4 min read

This page demonstrates the premium data visualization capabilities integrated into the theme.

Welcome to the Astro Glass visualization showcase. This post demonstrates how our core visualization stack—Shadcn Charts (Recharts), Visx, and Expressive Code—come together to create a stunning, data-rich experience.

1. Analytics & Dashboards (Recharts)

We’ve moved beyond basic charts. Our custom Astro Glass Charts implementation combines the power of Recharts with the beauty of our glassmorphism engine.

A. The Dashboard

A complete dashboard view with KPI cards, gradient-infused area charts, and glowing donut charts. Note how the colors adapt to your active theme (try switching to “Neo” or “Sunset”!).

Executive Overview

Real-time performance metrics.

Total Revenue

$124,592

+12.3%
Progress78%

Active Users

45,231

+8.1%
Progress65%

Bounce Rate

42.3%

-2.1%
Progress42%

Traffic Trends

B. Micro-Visualizations

For data density without visual clutter, we use custom BarLists and Trackers. These components feature smooth animations and “liquid” progress indicators.

Top Pages

Source

Visits

/blog/visualization-showcase1230
/docs/getting-started751
/components/ui471
/about280
/contact190

System Uptime (90 Days)

API Availability

99.2% Uptime

Last 24h


2. Interactive Architecture (React Flow)

We don’t just use diagrams for files. We use them for System Architecture visualization. This interactive graph allows you to drag nodes, zoom in, and explore the project structure.

A. Project Structure

The standard file tree view.


3. Cinematic Code Blocks (Expressive Code)

Code is content. We make it pop.

A. Highlighting & Focus

Direct the user’s eye to exactly what matters.

src/components/Magic.tsx
// 1. We import the magic
import { motion } from 'framer-motion';
export const MagicCard = () => (
// 2. We animate it
<motion.div
initial={{ opacity: 0 }}
animate={{ opacity: 1 }}
transition={{ duration: 0.5 }}
>
Magic!
</motion.div>
);

B. Diff Views with File Icons

Shows additions and deletions clearly with context.

astro.config.mjs
export default defineConfig({
integrations: [
react(),
react({ include: ['**/react/*'] }),
tailwind(),
],
});

C. Terminal & Frames

Simulate a terminal environment.

Deploying to Edge
$ pnpm run build
> astro build
09:41:22 [build] output target: server
09:41:22 [build] deploying to Cloudflare...
09:41:23 [success] Deployed to https://liquid-glass.pages.dev 🚀

Conclusion

This showcase proves that Astro Glass is more than just a template—it’s a high-performance content engine. By leveraging these tools, you can communicate complex data and logic with designs that are as beautiful as they are functional.