question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Implementing of the "begin-zero" option

See original GitHub issue

Expected Behavior

When I have some positive data I want to see zero value on values axis:

Actual Behavior

image

Use HorizontalBar in this way: <vue-horizontal-bar-chart :chart-data="ordersChartData" :beginzero="true"></vue-horizontal-bar-chart>

Environment

  • vue.js version: “^2.5.8”
  • vue-chart.js version: “^3.0.2”
  • npm version: “5.5.1”

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
miguel-rodcommented, Oct 22, 2018
2reactions
aperturelesscommented, Dec 9, 2017

I don’t really get the problem. Why don’t you pass just the

ticks: {
  beginAtZero: true
 },

to your options?

Read more comments on GitHub >

github_iconTop Results From Across the Web

how to set start value as "0" in chartjs? - Stack Overflow
For Chart.js 2.*, the option for the scale to begin at zero is listed under the configuration options of the linear scale.
Read more >
Linear Axis - Chart.js
beginAtZero, boolean, if true, scale will include 0 if it is not already included. ... Common options to all cartesian axes.
Read more >
City buses begin zero-fare service Nov. 28 | Las Cruces Bulletin
All fixed routes for RoadRUNNER Transit buses and Dial-A-Ride services will be zero fare. The eligibility for Dial-A-Ride and the ride ...
Read more >
Police begin zero-tolerance enforcement policy for drivers ...
The Elk Grove Police Department will begin a zero-tolerance enforcement policy for drivers around schools on Monday.
Read more >
Zero Waste to Landfill: The Why and How | Inogen
Financially speaking, using resources more efficiently and setting up systems to get more out of your materials naturally leads to cost ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found