iamcco / iamcco/markdown-preview.nvim

chart.js : How to set min or max value for y

Open
#539 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
8k
Forks
411
PR merge metrics
No merged PRs in 30d

Description

{
"type": "bar",
"data": {
"labels": ["Red", "Blue", "Yellow", "Green", "Purple", "Orange"],
"datasets": [{
"label": "Votes",
"backgroundColor": "#0086",
"data": [12, 19, 3, 5, 2, 3],
"borderWidth": 1
}]
},
"options": {
"scales": {
"y": {
"min": 0
}
}
}
}
![图片](https://user-images.githubusercontent.com/29832591/209816273-8aaedbe6-6939-4781-bbb6-7cdc42037606.png)

the min value of 'y' is not 0, it seems that options does not work, how can i set the min value of y to 0 ?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.