LineChart 를 가장 많이 쓰지 않을까 싶어서 일단 간단한 것으로 테스트...
from graphy.backends import google_chart_api

chart = google_chart_api.LineChart()

chart.AddLine([40204, 50039, 60293, 30459, 40000])

chart.left.min = 20000
chart.left.max = 100000
chart.left.labels = range(20000, 100000+1, 10000)
chart.left.grid_spacing = 10000

chart.bottom.labels = ('2010.11.10', '2010.11.11', '2010.11.12', '2010.11.13', '2010.11.14')

print chart.display.Url(500, 400)

결과는 <img> 태그로 표현되고, 이를 붙이면 아래와 같이 나온다.


저작자 표시 비영리 변경 금지
크리에이티브 커먼즈 라이선스
Creative Commons License
Posted by Heart