© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
7 replies
awsqed

Register new chart type

How to register new chart type from the community? I installed the new chart type package and tried to register it like this but still got the error.
import './bootstrap';
import Chart from 'chart.js/auto';
import {TreemapController, TreemapElement} from 'chartjs-chart-treemap';

Chart.register(TreemapController, TreemapElement);
import './bootstrap';
import Chart from 'chart.js/auto';
import {TreemapController, TreemapElement} from 'chartjs-chart-treemap';

Chart.register(TreemapController, TreemapElement);


Uncaught Error: "treemap" is not a registered controller.
Uncaught Error: "treemap" is not a registered controller.


I think because I register to the wrong one, not the chart object Filament is using to render chart, but I don't know how to get the right one.
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Register chart controller
FilamentFFilament / ❓┊help
2y ago
chart
FilamentFFilament / ❓┊help
3y ago
Change chart type according to the selected filter
FilamentFFilament / ❓┊help
12mo ago
Chart widget with chart.js plugins
FilamentFFilament / ❓┊help
2y ago