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

Add x-axis tick label rotation functionality with setting... #32

Merged
merged 3 commits into from
Jan 20, 2017

Conversation

samussiah
Copy link
Contributor

@samussiah samussiah commented Jan 10, 2017

rotate_x_tick_labels.

Closes #17
Closes #20 by dynamically defining x.type.

};

// Replicate settings in multiple places in the settings object
export function syncSettings(settings){
settings.y.column = settings.value_col;
settings.x.column = settings.time_cols[0];
settings.x.type = settings.x.column === 'DY'
Copy link
Contributor

@jwildfire jwildfire Jan 10, 2017

Choose a reason for hiding this comment

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

I'm a little worried about having a hard coded variable name here ("DY"). What happens when the user specifies a different set of time_cols?

What if we had time_cols specified like this: time_cols: [{value_col:"VISITN", axis_type:"ordinal"}, {value_col:"DY", axis_type:"linear}, ...], then this area becomes:

  settings.x.column = settings.time_cols[0].value_col;
  settings.x.type =  settings.time_cols[0].axis_type;

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I like that approach a helluva lot more.

…axis tick label rotation, and vertical spacing.
@samussiah
Copy link
Contributor Author

Merged branch time-objects with branch rotate-x-tick-labels. Ready for review.

example

Copy link
Contributor

@jwildfire jwildfire left a comment

Choose a reason for hiding this comment

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

Looks great. Well done.

@brittsikora brittsikora added this to the v1.3.0 milestone Jan 19, 2017
@samussiah samussiah merged commit 6b015c1 into v1.3.0 Jan 20, 2017
@samussiah samussiah deleted the rotate-x-tick-labels branch January 20, 2017 15:09
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

Successfully merging this pull request may close these issues.

None yet

3 participants