Comments (1)
Hi, thank you for your good question!
The issue is a typings one. The data array requirement originates from chart.js and I'm not sure it can be changed externally.
The documentation is correct in the aspect that the data array will be populated and is not strictly required by the code, but typings just don't agree. You could use a @ts-ignore or @ts-expect-error comment to suppress the type error, but I'd recommend your already working approach of just providing the empty data array to satisfy the types too.
from chartjs-chart-treemap.
Related Issues (20)
- When I zoom by chartjs-plugin-zoom library, the children of tree move on the screen, and the zooming speed is very slow in the mobile size.
- Misalignment with large dataset HOT 1
- Move options to dataset controller configuration
- Element width and height set to 0 HOT 2
- Upgrading Chart.JS to version 4.x, treemap throws error
- Not able to create treemap HOT 6
- Tree and data must be overridden in order to update the chart HOT 1
- Dividers option to be removed
- Missing version 2.3.0 on NPM HOT 1
- Groups working in wrong way? HOT 1
- Error using with webpack HOT 4
- Two datasets, rendering on same treemap - one rtl and other ltr
- How to not re-order data. HOT 1
- Large variants in Dataset render error
- Going back when click center on drilldown feature
- v2.3.0 with chart.js 4.4.1 renders unwanted context.raw object HOT 4
- Uncaught TypeError: Cannot read properties of undefined (reading '_parseFont') !!!!!
- tooltip not showing linebreak on \r\n HOT 1
- Labels / DataLabels supporting word-wrap and/or clipping HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chartjs-chart-treemap.