Set 'focus' area in nvd3.js lineWithFocusChart

后端 未结 2 1503
悲哀的现实
悲哀的现实 2020-12-15 11:03

I\'m usuing the lineWithFocusChart.js model shown in the nvd3 examples shown here: http://nvd3.org/ghpages/examples.html

I want to be able to choose a specific x ran

2条回答
  •  情书的邮戳
    2020-12-15 11:54

    Suppose there's only one graph generated by nvd3 on the page:

    chart = nv.graphs[0] // how to choose the graph by DOM id?
    chart.brushExtent([10,20])
    chart.update()
    

    Thank @elsherbini's comment.

提交回复
热议问题