Ticket #21 (closed defect: wontfix)

Opened 3 years ago

Last modified 3 years ago

labelFontSize is ignored

Reported by: aprzywecki@… Owned by: somebody
Priority: major Milestone:
Component: component1 Version:
Keywords: Cc:

Description

The option 'labelFontSize' is ignored because it's not used in _renderAxisLabel() in chart.py. Adding:

cx.set_font_size(self.options.axis.labelFontSize)

to _renderAxisLabel() in chart.py fixes the problem.

Adam

Change History

Changed 3 years ago by lgs

  • status changed from new to closed
  • resolution set to fixed

Thanks for reporting this. It is fixed now in [138]

Changed 3 years ago by ged@…

  • status changed from closed to reopened
  • resolution deleted

The problem is still present for pie charts since that code doesn't use _renderAxisLabel.

Changed 3 years ago by lgs

Pie charts do not have an axis label. That's why they don't use that code.

Changed 3 years ago by lgs

  • status changed from reopened to closed
  • resolution set to wontfix

Changed 3 years ago by ged@…

Well, I didn't mean that code should be called. I just pointed out why pie charts didn't respect that setting. Now as for the question as whether they should respect that setting, it all depends what you consider as axes: in a pie chart, you obviously don't have vertical and horizontal axes, but the different labels on the sides could be considered as labels next to a round axis. At least that prevents to have to add another setting just for pie charts, which will probably be configured to the same value as the labelFontSize anyway. If you don't agree pie charts should use the same setting as for other charts, I will create a separate enhancement ticket.

Changed 3 years ago by lgs

Let me explain it better: the labelFontSize option is related to the axis label, not the axis ticks. You have several different texts drawn in a chart:

  • Chart title
  • Legend text
  • Axis labels (axis titles)
  • Axis ticks (probably what you want)
  • Yvals above bars (probably same size as axis ticks)

So far there is no option to change the size of axis ticks and you don't want to draw the ticks with the same size as the axis title, don't you?

Changed 3 years ago by ged@…

Oh. Sorry for the confusion and thanks for the clarification. Well, in that case I'll create an enhancement ticket for the font size of the axis ticks, including those of the pie chart.

Changed 3 years ago by lgs

No problem at all. I'm happy to get more feedback :-)

Note: See TracTickets for help on using tickets.