You must be logged in to post your query.
Home › Forums › Feature Requests & Feedback › automatic value for Y axis
I’m building a generic chart function and having a problem with maximum and minimum.
Sometimes I have a value, sometimes don’t.
Is there any away to set a automatic value?
minimum: max===undefined ? null : Number(max),
minimum: max===undefined ? auto: Number(max),
Apparently undefined works :)
Not sure why yesterday was giving problems.
When checking for undefined, its better to go with below code which works across browsers and devices.
typeof(max) === 'undefined'
I never had problems with that, probably because most of my variables are properties.
Not sure what is the difference :/ but will take the advice into account, thanks.
You must be logged in to reply to this topic. Login/Register