-
Notifications
You must be signed in to change notification settings - Fork 638
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SecuritiesChart: Factor out createPriceLineSeries()
Instead of largely duplicated createFIFOPurchaseLineSeries() and createMovingAveragePurchaseLineSeries(), factor out reusable createPriceLineSeries() which accepts additional params to handle both cases. As part of the refactor, largely duplicated-content messages like LabelChartDetailMarkerPurchaseMovingAverage vs LabelChartDetailMarkerPurchaseMovingAverageHoldingPeriod were simplified: now there's one main message for series label, and reusable suffix message for holding period number.
- Loading branch information
Showing
3 changed files
with
16 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters