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

How to use enableOverview() #131

Open
StriderPR opened this issue Dec 1, 2022 · 1 comment
Open

How to use enableOverview() #131

StriderPR opened this issue Dec 1, 2022 · 1 comment

Comments

@StriderPR
Copy link

I have been trying to disable the time overview at the bottom of the chart by using the .enableOverview(false) command. Seems to not be working for me.

I have tried putting the command before the data([dataSet]) and after as well with no luck.

Could the community share an example on how to use this?

@vasturiano
Copy link
Owner

@StriderPR thanks for reaching out.

You should set it before initializing the component with your DOM element. So, essentially this:

const myChart = TimelinesChart();
myChart
  .enableOverview(false)
  (<myDOMElement>);

instead of

const myChart = TimelinesChart();
myChart
  (<myDOMElement>)
  .enableOverview(false);

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

2 participants