Skip to content

Scale function does not work #7

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
gewaking opened this issue Dec 12, 2016 · 2 comments
Open

Scale function does not work #7

gewaking opened this issue Dec 12, 2016 · 2 comments

Comments

@gewaking
Copy link

I'm not able to make scale feature work. Can you please provide an example?

@mariobgr
Copy link

Having the same problem here, scale property is the only one that takes an Object, but no example provided for the object attributes.

@jeffse
Copy link

jeffse commented Jun 7, 2017

It it currently a bit wonky; in particular, you have to specify as the scale yet another hash with a scale option. Ex:

$('#rangeField').asRange({
  scale: {
    scale: {
      valuesNumber: 4,
      gap: 1,
      grid: 5
    }
  }
});

Also, if you don't set all three of the scale values (valuesNumber, gap, and grid), then the values are ignored from the defaults set in the code (which are currently 3, 1, and 5, respectively).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants