vasturiano / timelines-chart

Timelines Chart
http://vasturiano.github.io/timelines-chart/example/categorical/
MIT License
551 stars 121 forks source link

How to use enableOverview() #131

Open StriderPR opened 1 year ago

StriderPR commented 1 year ago

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 commented 1 year ago

@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);