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

Allow overriding responsiveOptions with update #1095

Open
mestaritonttu opened this issue May 9, 2018 · 0 comments
Open

Allow overriding responsiveOptions with update #1095

mestaritonttu opened this issue May 9, 2018 · 0 comments

Comments

@mestaritonttu
Copy link

mestaritonttu commented May 9, 2018

There is an issue in react-chartist for this, offering some workarounds: fraserxu/react-chartist#38

Any other workarounds we can use before this is (hopefully) implemented?

Edit: I tried hacking it in chartist.js like this, but it is not working:

function update(data, options, responsiveOptions, override) {

...

if(responsiveOptions) {
  this.responsiveOptions = Chartist.extend({}, override ? this.responsiveOptions : this.responsiveOptions, responsiveOptions);
}
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

No branches or pull requests

1 participant