vasturiano / timelines-chart

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

zoomYLabels function issue #83

Open tobiw777 opened 4 years ago

tobiw777 commented 4 years ago

Hi! Thanks for a great timeline chart lib! During my implementation of your lib I found some troubleshooting issue with zoomYLabels function. Due to doc I try to use it like that: .onLabelClick(function(label, group){ chart.zoomYLabels([label, label] }) where chart is my TimeLine object In result I get error from vo function:

timelines-chart.min.js:5 Uncaught TypeError: Cannot read property 'split' of undefined at Object.vo (timelines-chart.min.js:5) at r (timelines-chart.min.js:5) at Function.zoomYLabels (timelines-chart.min.js:5) at Function.Object.keys.forEach.o. [as zoomYLabels] (timelines-chart.min.js:2) at Object.onLabelClick (index.pl?Action=AgentITSMConfigItemZoom;ConfigItemID=5:977) at SVGTextElement. (timelines-chart.min.js:5) at SVGTextElement. (timelines-chart.min.js:2)

boardend commented 3 years ago

I’ve just noticed the same issue after upgrading from 2.10.0 to 2.11.1 (with d3-selection 2.0.0).

see 2.11.1: src/timelines.js#L899

Will stay on 2.10.0 for the moment…