Comments (2)
QuickChart supports the chartjs-datalabels plugin for pie chart labels. You can follow datalabels instructions to modify label appearance.
Here's an example using the data you provided:
{
"data":{
"datasets":[
{
"data":[
22000,
2357
],
"label":"input"
}
],
"labels":[
"united-states",
"germany"
]
},
"type":"pie",
"options":{
"plugins":{
"datalabels":{
"color":"#fff",
"font":{
"size":13,
"weight":"bold"
}
}
}
}
}
from quickchart.
Additionally, just for reference, this can set the legend font colors as well
https://www.chartjs.org/docs/latest/general/fonts.html?h=legend
options: {
legend: {
labels: {
// This more specific font property overrides the global property
fontColor: 'black'
}
}
}
Thank you for your help
from quickchart.
Related Issues (20)
- CI feature: integrate pull request preview environments
- Cannot POST /graphviz
- How to install quickchart locally HOT 1
- Failed to run on GCP HOT 1
- Unable to install this on Ubuntu 23.04 nodeJS 18 LTS
- Unable to change scale using min/max in options HOT 1
- FEATURE Request: Export To PDF
- linear regression
- Support for datalabels in v3+ charts? HOT 4
- Transparant table background HOT 1
- tickFormat not working in self-hosted instance
- JSON Integration? HOT 1
- de-facto quickchart docker image ianw/quickchart appears abandoned HOT 1
- Unique tags for inline SVG HOT 2
- Adding Elestio as deployment option
- Docker image randomly stopped working
- Feature Request for QR Codes. Add the text option HOT 2
- Horizontal Grid Lines Not Working on Line Charts HOT 1
- gauge charts working in main domain, but not self-hosted instance
- Still maintained ? 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 quickchart.