Normalize series on zoom
For stock charts, it is often useful to show two or more stocks or indexes normalized so that the Y axis shows a stock price of the primary series but the series are scaled so that they represent % gain or loss. For example, in a two month time period, APPL (series 1) may start at 376.00 and gain 10% to end at 413. In the same time period, the S+P might start at 1300 and gain 10% to end at 1430. Without normalizing, it would appear that the S+P had a much better month when displayed on a line chart. In reality, they both gained 10%, which is what we are attempting to compare. Additionally, if we were to zoom into the last week of the month, the chart should be displayed so that the first point in each series starts at the same place on the Y axis so that we are comparing loss/gain % within the zoomed time period.
Completed in Highstock 1.0.1
-
MattV commented
Here's a screenshot with a label that hopefully should help, thanks.
-
A sketch or screenshot would help
-
MattV commented
Thanks for including this feature. However, would be possible to add a third 'mode' for this feature - so that on zoom, the Y-axis stays in terms of the values of one of the series? So, if the first showing value of the series is $236.56 on zoom, that would be where the Y-axis is centered (instead of centered on $0)? If I'm not describing this clearly, please let me know.
-
Momentrix commented
We'd like to see normalized series in order to benchmark a portfolio performance against an index, i.e., S&P vs our portfolio performance. Typically this would show the change in value of $100,000 invested in the index vs $100,000 invested in the portfolio for a specified period, YTD etc.