You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Crosshair currently default's x and y scales to the first annotation element annotation arrays. This assumes there are always annotations associated. It would be better to explicitly set x and y scales, and also be able to plot crosshairs without annotations.
// Without annotationstechan.plot.crosshair().xScale(timeAnnotation.axis().scale()).yScale(ohlcAnnotation.axis().scale());// With annotationstechan.plot.crosshair().xScale(timeAnnotation.scale()).yScale(ohlcAnnotation.scale()).xAnnotation([timeAnnotation,timeTopAnnotation]).yAnnotation([ohlcAnnotation,ohlcRightAnnotation]);
The text was updated successfully, but these errors were encountered:
andredumas
changed the title
[API CHANGE] Specify x and y crosshair scales to support non annotation based crosshair plotting
Specify x and y crosshair scales to support non annotation based crosshair plotting
Nov 2, 2014
Crosshair currently default's x and y scales to the first annotation element annotation arrays. This assumes there are always annotations associated. It would be better to explicitly set x and y scales, and also be able to plot crosshairs without annotations.
Before:
After:
The text was updated successfully, but these errors were encountered: