Skip to content

Conversation

@etimberg
Copy link
Member

Also added tests

resolves #4391

@etimberg etimberg added this to the Version 2.7 milestone Jun 22, 2017
expect(ticks).toEqual(['8PM', '10PM']);
});

it('should use the stepSize property', function() {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would move the deprecated option in core.deprecations.test.js

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, will do.

}

it('should use the stepSize property', function() {
var mockData = {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we simply acquire a chart with minimal options and remove the createScale setup?

me.majorUnit = majorUnit;

var stepSize = timeOpts.stepSize || timeHelpers.determineStepSize(minTimestamp || dataMin, maxTimestamp || dataMax, unit, maxTicks);
var optionStepSize = helpers.getValueOrDefault(timeOpts.stepSize, timeOpts.unitStepSize);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

helpers.valueOrDefault() ;)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will rebase and update

@simonbrunel simonbrunel merged commit 8834bab into master Jun 25, 2017
@simonbrunel simonbrunel deleted the fix/4391 branch June 25, 2017 12:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2.6.0 Line Chart xAxis Type Time ignores unitStepSize

3 participants