Warning: Can't synchronize with the repository (Unsupported version control system "svn". Check that the Python support libraries for "svn" are correctly installed.)

Ticket #30 (assigned defect)

Opened 4 years ago

Last modified 4 years ago

HorizontalBarChart does not properly display the axis labels

Reported by: aprzywecki@… Owned by: lgs
Priority: major Milestone:
Component: component1 Version: 2.0
Keywords: MDjcqNYot Cc:

Description

Steps to reproduce: 1. Create a horizontal bar chart.

Expected outcome: The label axis should match the data.

Actual outcome: Although the bars are now horizontal, the axis labels have not changed. This means that the labels do not match the data.

http://www.lorenzogil.com/projects/pycha/browser/trunk/examples/hbarchart.png

The above image (front page of PyCha?) shows the problem. Notice how "lines" is the label for the files, and "files" is the label for the number of lines.

Proposed fix: I don't know if this is the correct fix, but I put a custom _renderAxis method in the HorizontalBarChart? class in bary.py that swaps the labels. It duplicates code, but it works.

We might want to create a separate _renderLabels method in chart.py that would get overwritten by HorizontalBarChart? class.

Change History

Changed 4 years ago by lgs

  • owner changed from somebody to lgs
  • status changed from new to assigned
Note: See TracTickets for help on using tickets.