jiahuang / d3-timeline

Simple JS timeline plugin for d3
1.03k stars 281 forks source link

The tick labels isn't displayed #72

Open jonua opened 8 years ago

jonua commented 8 years ago

I try to run next code:

var timeData = JSON.parse('[{"label":"200","times":[{"starting_time":1438934855,"ending_time":1438936712,"color":"rgb(81, 163, 81)"}]},{"label":"0","times":[{"starting_time":1438935515,"ending_time":1438936724,"color":"rgb(189, 54, 47)"}]}]');

var chart = d3.timeline();

var svg = d3.select("#timeline1").append("svg").attr("width", window.innerWidth - 600)
                .datum(timeData).call(chart);

But I don't see the tick labels What I'm doing wrong?

aperritano commented 8 years ago

i'm having the same issue. Using the latest from bower.

aperritano commented 8 years ago

I just figured out that the bower version is out of date. The src version works.