Skip to content

Refactor addVo to follow skeleton_TA structure#108

Closed
erichung0404 wants to merge 3 commits into
joshuaulrich:masterfrom
erichung0404:refactor_add_volume_chart
Closed

Refactor addVo to follow skeleton_TA structure#108
erichung0404 wants to merge 3 commits into
joshuaulrich:masterfrom
erichung0404:refactor_add_volume_chart

Conversation

@erichung0404
Copy link
Copy Markdown

Since chartSeries is now a wrapper for chart_Series and chartSeries.chob
is deprecated, code of add* functions that manipulate chob and chobTA
objects breaks. So add* functions are refactored to use skeleton_TA
structure to coordinate with chart_Series called by chartSeries.

In addVo.R, however, quantmod::chartVo is untouched. A new chartVo is
passed to lenv inside addVo function according to skeleton_TA structure.
quantmod::chartVo will be deprecated. The structure is described in #96.

As chartSeries is now a wrapper for chart_Series and chartSeries.chob
is deprecated, code of add* functions that manipulate chob and chobTA
objects breaks. So add* functions are refactored to use skeleton_TA
structure to coordinate with chart_Series called by chartSeries.

In addVo.R, however, quantmod::chartVo is untouched. A new chartVo is
passed to lenv environment in addVo according to skeleton_TA structure.
quantmod::chartVo will be deprecated.
When subset is specified in chartSeries, addVo() doesn't apply correct
subset volume to the chart. To fix this issue, subset setting is applied
to chartVo function in chartSeries and pass subset volume to the
environment.

y-axis limit of the frame is expanded to reserve space from the top.
When reChart is called to draw subset volume, bar colors are wrong and
subset functionality fails. The volume chart starts from the first day
of the series no matter what subset period is specified.

Pull out the panel settings from chartVo and wrap in expression.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant