Issue 2 in graphy: Horizontal bar chart labels position

2 views
Skip to first unread message

codesite...@google.com

unread,
Dec 13, 2009, 2:21:48 PM12/13/09
to gra...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 2 by vgarvardt: Horizontal bar chart labels position
http://code.google.com/p/graphy/issues/detail?id=2

I tried sample from wiki and result differs from wiki image.
In your sample bars labels stick to the middle of each bar and
for me it's not there.

I'm attaching image I got.

Code I used to get this is:
<code>
import urllib2
from graphy.backends import google_chart_api

cities = ('San Jose', 'San Francisco', 'Oakland')
population = (900000, 780000, 400000)

chart = google_chart_api.BarChart(population)
chart.vertical = False
chart.left.labels = cities
chart.bottom.min = 0

result = urllib2.urlopen(chart.display.Url(200, 120))
open('chart_test.png', 'wb').write(result.read())
</code>

Attachments:
chart_test.png 2.8 KB

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

codesite...@google.com

unread,
Dec 13, 2009, 2:25:50 PM12/13/09
to gra...@googlegroups.com

Comment #1 on issue 2 by vgarvardt: Horizontal bar chart labels position
http://code.google.com/p/graphy/issues/detail?id=2

The same problem for multiple series

Attachments:
chart_test.png 4.8 KB
Reply all
Reply to author
Forward
0 new messages