-
Notifications
You must be signed in to change notification settings - Fork 3
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
Conversation
}; | ||
|
||
// 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' |
There was a problem hiding this comment.
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;
There was a problem hiding this comment.
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.
Merged branch |
There was a problem hiding this 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.
…
rotate_x_tick_labels
.Closes #17
Closes #20 by dynamically defining
x.type
.