It appears that FairViolinPlot is missing the currency_prefix parameter.
|
def _get_distribution_icon(self, model, target): |
|
"""Create base64 icon string using FairDistributionCurve""" |
|
fdc = FairDistributionCurve(model, self._currency_prefix) |
|
fig, ax = fdc.generate_icon(model.get_name(), target) |
|
img_tag = self._fig_to_img_tag(fig) |
|
return img_tag |
|
|
|
def _get_exceedence_curves(self, model_or_models, currency_prefix): |
|
"""Create base64 image string using FairExceedenceCurves""" |
|
fec = FairExceedenceCurves(model_or_models, currency_prefix) |
|
fig, ax = fec.generate_image() |
|
img_tag = self._fig_to_img_tag(fig) |
|
return img_tag |
|
|
|
def _get_violins(self, metamodel): |
|
"""Create base64 image string using FairViolinPlot""" |
|
vplot = FairViolinPlot(metamodel) |
|
fig, ax = vplot.generate_image() |
|
img_tag = self._fig_to_img_tag(fig) |
|
return img_tag |
So that when I do
report = pyfair.FairSimpleReport(report_items, currency_prefix='€')
I get euros in all the report sections except the violin plot:
Example picture:

It appears that
FairViolinPlotis missing thecurrency_prefixparameter.pyfair/pyfair/report/base_report.py
Lines 236 to 255 in 31cff43
So that when I do
I get euros in all the report sections except the violin plot:
Example picture: