Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow a variety of data series for statement of assets V2 #4235

Open
wants to merge 11 commits into
base: master
Choose a base branch
from

Conversation

mierin12
Copy link
Contributor

@mierin12 mierin12 commented Sep 16, 2024

Hello, this is a proposition to add derived data series to the statement of assets chart.

Closes #605
Closes #707
Closes #1529

Note : This is based on the PR #3754 from @shivampaw. As this PR was without update since February, I would like to propose some update if this is ok.
I fetched the PR and tried to rebase as best as I could despite the conflicts, and then add my commits. I am not sure if this was the best approach.. There are lots of commits (some cancelling each other) but at least this allows to keep @shivampaw in the contributions.
Otherwise for a clear straight forward history out of rebase/merge conflict shenanigans (but without shivampaw history): master...mierin12:portfolio:derived_data_series_in_statement_of_assets_chart_squashed

Similarities and differences with #3754:
Similarity:

  • TYPE_PARENT and GroupedDataSeries kept. Some of its methods are slightly changed. So the type of instance is a bit more complicated.

Differences:

  • Derived data series selection dialog is distinct from the usual one -> less backward compatibility issue to deal with I think. To be careful about the DataSeriesSerializer modification where we have to combined back the usual data series and those new ones (so if what I did there is incorrect, we should be wary of backward compatibility concern. But it looks ok).
    2024-09-15 20_25_35-
  • In the new data series selection dialog, I am proposing a different tree order : [derived data]/Accounts & Portfolio/Account rather than Accounts & Portfolio/Account/[derived data]. I find it more intuitive. But the order can be changed.
    Capture d’écran 2024-09-15 202634
  • Securities are added as a possible subtype of the derived data. I guess this is well applicable/defined ?
  • Enum ClientDataSeriesType done a bit differently to include also the booleans required to draw the data series either as a line or as a bar, and with an area or not.

Results:
Capture d’écran 2024-09-15 202846

Note on taxonomy labels:
For the selection labels, two propositions (before/after commit 14df145):

  • with fullPath that I kinda like but which is different than the existing behavior,
    Capture d’écran 2024-09-15 205300
  • with the same behavior as the existing data series selection
    Capture d’écran 2024-09-15 204955

Then for its legend it is simplified with the simple name of the taxonomy, and the tooltip of legend shows the full path.

Multiselection topic:
No multiselection issue I believe. And the tree is already uncluterred by the use of the two selection dialogs.
Multiselection allows here to plot several derived distinct derived data series.

Legend label:
Lots of ( ) maybe another format could be used ?

Widget Statement of Assets creating a link with the statement of assets charts seems to work well with this.


Issue: https://forum.portfolio-performance.info/t/customize-filter-invested-capital/15474
Issue: https://forum.portfolio-performance.info/t/delta-fur-klassifizierung-anzeigen/15669
Issue: https://forum.portfolio-performance.info/t/delta-diagramm-fur-ausgewahlte-aktien/6787
Issue: https://forum.portfolio-performance.info/t/graphs-of-investment-and-performance/23365
Issue: https://forum.portfolio-performance.info/t/filtermoglichkeit-allgemeiner-datenreihen/25460
Issue: https://forum.portfolio-performance.info/t/add-invested-capital-in-one-account-to-charts/10854
Issue: https://forum.portfolio-performance.info/t/investiertes-kapital-eines-depots-anzeigen-lassen/20766
Issue: https://forum.portfolio-performance.info/t/delta-im-berechnungszeitraum-fur-einzelne-depots/17238
Issue: https://forum.portfolio-performance.info/t/investiertes-kapital-in-vermoegensaufstellung-pro-konto/13855
Issue: https://forum.portfolio-performance.info/t/zeitlicher-verlauf-des-werts-im-moment-der-investition-vs-aktueller-wert/20326
Issue: https://forum.portfolio-performance.info/t/investiertes-kapital-nach-klassifikation-im-vermogensaufstellungsdiagramm/28110
and I guess I am forgetting some 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants