Quantipy / quantipy

Python for people data
MIT License
66 stars 14 forks source link

PptxPainter - Add option to show t-test results in charts datalabels #1163

Closed AndersFreund closed 5 years ago

AndersFreund commented 6 years ago

Most work is to be done in PptxPainter and _pptxdefaults. PptxChain should have all methods needed.

PptxChain: Method _sigtest returns a list of tuples (one per column) with sig_test results. Method _add_test_letter_to_columnlabels add t letter to column labels

To-do pptx_defaults:

  1. Add t-test boolean parameter to default_chart dict. Set default to false.
  2. Add t-test results parameter to default_chart_dict. Set default to None.

To-do PptxPainter

  1. Ignore 'test' type when selecting category types in method _queue_slideitems
  2. If T-test is requested: After drafting chart, edit draft to set T-test parameters.
  3. Add method _show_datalabels
  4. Add method _editdatalabel to class
  5. Add method _editdatalabels to class
  6. Edit method _addchart to include t-test results if t-test is requested and more than one series and t-test results actually exits.