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.

Global "onlyInteger: true" option not working

See original GitHub issue

onlyInteger option is present globally and also is part of the axis configuration.

Ideally global configuration should overwrite axis configuration, if axis configuration is not defined explicitly but its not the case right now.

I wonder why this issue https://github.com/gionkunz/chartist-js/issues/358 is closed, if anyone go through docs https://gionkunz.github.io/chartist-js/api-documentation.html then first paragraph didn’t mentioned to use onlyInteger with axis configuration.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:8

github_iconTop GitHub Comments

5reactions
anilmauryacommented, Sep 21, 2015

@JasonLeeH Its working for Axis configuration.

axisX: {
 onlyInteger: true
}

axisY: {
onlyInteger: true
}
0reactions
JasonLeeHcommented, Sep 20, 2015

So how do we enable onlyInteger? It doesn’t seem to be working at all for me.

Read more comments on GitHub >

github_iconTop Results From Across the Web

validate.js
If you don't want to give any options to a validator you may pass true instead of an empty object. The validator will...
Read more >
Change the Y-axis values from real numbers to integers in ...
I handled it this way in new version: new Chart(ctx, { type: 'bar', data: chartData, options: { scales: { yAxes: [{ ticks: {...
Read more >
Active Record Validations - Ruby on Rails Guides
If the field does exist in your database, the accept option must be set to or include true or else the validation will...
Read more >
Options Settings - R
Allow the user to set and examine a variety of global options which affect the way in which R computes and displays its...
Read more >
JavaScript: HTML Form validation - checking for all numbers
Javascript function to check if a field in a html form contains all numbers or not.
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