Comments (2)
Hi Chris,
Try setting devicePixelRatio
to 1.0
. It is 2.0 by default for retina support, which causes the true dimensions of your image to be 2x width and height. I know it's confusing but unfortunately I can't change it for backwards compatibility reasons :(
Your postData would look like this:
{
"devicePixelRatio": 1.0,
"chart": {
"type": "horizontalBar",
"data": {
"labels": [
"1+ yr",
"1 - 12 months",
"1 - 4 weeks",
"< 1 week"
],
"datasets": [
{
"label": "Participants",
"data": [
12,
2,
8,
24
]
}
]
}
},
"height": 200,
"width": 300,
"format": "png"
}
from quickchart.
Ah, beautiful, works like a charm. Much appreciated, Ian!
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.