Skip to content
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

TickMin is always zero even if the value is set above zero #34

Closed
vinnyscimergent opened this issue Mar 16, 2015 · 6 comments
Closed

TickMin is always zero even if the value is set above zero #34

vinnyscimergent opened this issue Mar 16, 2015 · 6 comments
Labels

Comments

@vinnyscimergent
Copy link

Hi,

I am a new bee to tauChart. I just downloaded and started using the example provided. I tried setting my own data for a line chart . The minimum value what i have provided is above 2500 and also i have set tickMin as 2000 and tickMax as 7000 . But the chart is displayed with the minimum value as 0 . I want to set the minimum value to 2000 or 2k.

Thanks in advance.
Vinny.

@Mavrin
Copy link
Contributor

Mavrin commented Mar 16, 2015

Hi,
Yes it is possible.
Just you shoud set autoScale as false.
For example http://jsfiddle.net/4o4z6fqn/3/

@vinnyscimergent
Copy link
Author

Hi Marvin,

It works fine. Thanks.

@timelyportfolio
Copy link

The docs say setting autoScale = false will "exactly fit source domain". While there are some old examples with tickMin and tickMax in the repo including the fiddle from above, these tickMin/tickMax seem to have no effect. Is there a way to arbitrarily set a max/min for the axis?

regarding hrbrmstr/taucharts#12

@vladminsky
Copy link
Contributor

@timelyportfolio, try min / max instead of tickMin / tickMax.

It looks like we lost backward compatibility. This should be fixed

@vladminsky vladminsky reopened this Aug 4, 2015
@timelyportfolio
Copy link

min / max works. Thanks so much. Feel free to close it back up.

@vladminsky
Copy link
Contributor

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

No branches or pull requests

4 participants