Skip to content

Dynamically modifying rollingMode with setOptions not working #939

@admc

Description

@admc

Using the latest version, 7.4.6.

When the selected date range ends with a date today or later, I want to be in rollingMode because the user experience makes a lot of sense, but if I select a date range in the past, I need to goto that range and display the data for those dates. Using setWindow to those new dates doesn't work, but neither does turning off rolling mode with setOptions, then calling setWindow. I also tried toggleRollingMode and that doesn't seem to work either.

Might be important to state that rollingMode works great when in the original options object, but seems unchangable after that.

I'm using cluster incase that makes a difference:
const options = { rollingMode: { follow: true, offset: 0.98, }, ... }
I want to dynamically turn off rollingMode.

instance.setOptions({ rollingMode: { follow: false, offset: 0.98, }, });

Let me know if theres anything else that would help to know!

Thanks for an incredibly library, this saved me enormous amounts of work, its too bad that both of the react wrappers are outdated and broken.

Cheers,
Adam

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions