NVD3 time formatting , line with focus chart

前端 未结 3 567
死守一世寂寞
死守一世寂寞 2021-01-28 05:56

I\'m using a fairly simple example of nvd3 line with focus chart. myData returns a JSON object from my php file of which the x-cordinates are numbers from 0-23. I w

3条回答
  •  天命终不由人
    2021-01-28 06:45

    Following didn't work for me. chart.lines.xScale(d3.time.scale()); chart.lines2.xScale(d3.time.scale());

    In latest nvd3, you have to use following to update xScale. chart.xScale(d3.time.scale()); chart.focus.xScale(d3.time.scale());

    Hope it helps someone.

提交回复
热议问题