PHPackages                             flatroy/nova-treemap-chart-card - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. flatroy/nova-treemap-chart-card

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

flatroy/nova-treemap-chart-card
===============================

A Laravel Nova card to show Treemap charts

0.0.2(3y ago)35.8kMITVuePHP ^7.4|^8.0

Since Jul 19Pushed 3y ago1 watchersCompare

[ Source](https://github.com/Flatroy/nova-treemap-chart-card)[ Packagist](https://packagist.org/packages/flatroy/nova-treemap-chart-card)[ RSS](/packages/flatroy-nova-treemap-chart-card/feed)WikiDiscussions main Synced today

READMEChangelog (2)DependenciesVersions (3)Used By (0)

Nova Threemap Chart Card
========================

[](#nova-threemap-chart-card)

This package allows you to add three-map fields to your resource details page and dashboards in [Nova](https://nova.laravel.com).

[![example](https://github.com/flatroy/nova-treemap-chart-card/raw/main/img/img.png)](https://github.com/flatroy/nova-treemap-chart-card/blob/main/img/img.png)

#### DISCLAIMER:

[](#disclaimer)

This package is still work in progress. Feel free to help improve it.

- [Requirements](#requirements)
- [Installation](#installation)
- [Basic Usage](#basic-usage)
- [Advanced Options](#advanced-options)

---

Requirements
------------

[](#requirements)

- [Laravel v9.0.\*](https://laravel.com/docs/9.0)
- [Laravel Nova v4.\*](https://nova.laravel.com/docs/4.0/)

---

Installation
------------

[](#installation)

Just run:

```
composer require flatroy/nova-treemap-chart-card
```

After installation, you can use the components listed here.

---

Basic Usage
-----------

[](#basic-usage)

```
// in App\Nova\User
...
use Flatroy\NovaTreemapChartCard\NovaTreemapChartCard;
...

/**
 * Get the fields displayed by the resource.
 *
 * @param \Laravel\Nova\Http\Requests\NovaRequest $request
 * @return array
 */
public function fields(NovaRequest $request)
{
    $data = [
        ['x' => 'Design', 'y' => 0.051],
        ['x' => 'Accounting', 'y' => 0.050],
        ['x' => 'Data Science', 'y' => 0.048],
        ['x' => 'Marketing', 'y' => 0.046],
        ['x' => 'Quality Assurance', 'y' => 0.046],
        ['x' => 'R&D', 'y' => 0.046],
    ];

    return [
        ...
        (new NovaTreemapChartCard())
            ->title('Some custom title')
            ->series($data)
            ->onlyOnDetail(),
        // or you can use like that:
        (new NovaTreemapChartCard())
            ->title('Some other custom title')
            ->series($this->model()?->find($request->resourceId)?->chartData)
            ->onlyOnDetail(),
        // or you can suggest how to do it better?
        ...
    ];
}

// if you want to put logic inside model - add this inside model:

namespace App\Models;
...
class User extends Model
{
...
    protected function getChartDataAttribute()
    {
        return [
            ['x' => 'Design', 'y' => 0.051],
            ['x' => 'Accounting', 'y' => 0.050],
            ['x' => 'Data Science', 'y' => 0.048],
            ['x' => 'Marketing', 'y' => 0.046],
            ['x' => 'Quality Assurance', 'y' => 0.046],
            ['x' => 'R&D', 'y' => 0.046],
        ];
    }
...
}
```

Feel free to come with suggestions for improvements.

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~1 days

Total

2

Last Release

1444d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4980165?v=4)[George Daneke ](/maintainers/Flatroy)[@Flatroy](https://github.com/Flatroy)

---

Top Contributors

[![Flatroy](https://avatars.githubusercontent.com/u/4980165?v=4)](https://github.com/Flatroy "Flatroy (4 commits)")

---

Tags

laravellaravel-novalaravelcardchartnovaapexchartstreemap

### Embed Badge

![Health badge](/badges/flatroy-nova-treemap-chart-card/health.svg)

```
[![Health](https://phpackages.com/badges/flatroy-nova-treemap-chart-card/health.svg)](https://phpackages.com/packages/flatroy-nova-treemap-chart-card)
```

###  Alternatives

[digital-creative/resource-navigation-tab

Organize your resource fields into tabs.

78152.7k](/packages/digital-creative-resource-navigation-tab)[ericlagarda/nova-text-card

A custom card for Laravel Nova to show Text in cards with some good options

20413.3k2](/packages/ericlagarda-nova-text-card)[digital-creative/resource-navigation-link

Create links to internal or external resources.

1049.0k](/packages/digital-creative-resource-navigation-link)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
