In response to this Stack Overflow question I thought it would be helpful to demonstrate one way to add vertical lines and labels to a nvd3
time series lineWithFocusChart
. Hopefully it will help both the R rCharts
and the straight Javascript nvd3
user. I solved a small syncing problem with the brushing by adding a window.setTimeout
on brushend
. It seems to work fairly well.
Please let me know if there might be a better way to handle.
Modified http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js to a secure url
Modified http://d3js.org/d3.v3.min.js to a secure url
Modified http://timelyportfolio.github.io/rCharts_nvd3_tests/libraries/widgets/nvd3/js/nv.d3.min-new.js to a secure url
Modified http://nvd3.org/assets/lib/fisheye.js to a secure url
https://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js
https://d3js.org/d3.v3.min.js
https://timelyportfolio.github.io/rCharts_nvd3_tests/libraries/widgets/nvd3/js/nv.d3.min-new.js
https://nvd3.org/assets/lib/fisheye.js