simplyvikram / google-chartwrapper

Automatically exported from code.google.com/p/google-chartwrapper
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Faulty assert #8

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
>  def marker(self, *args):
>        # assert(args[0] in MARKERS), 'Invalid marker type: %s'%args[0]
>
> asserts wrongly if you try to create a bar chart with text end points.

Test CASE.

>     item_marker = ['t' + item.download_count.__str__(),
>                                '333333', 0, i, 10, 0]
>
>        G.marker(*item_marker)

Original issue reported on code.google.com by markess...@gmail.com on 20 Aug 2008 at 8:20

GoogleCodeExporter commented 9 years ago
Fixed, now t markers get free passage w/ text or not, and the rest are checked

>        if not args[0].startswith('t'):
>            assert(args[0] in MARKERS), 'Invalid marker type: %s'%args[0]

Original comment by justquick on 23 Aug 2008 at 9:06

GoogleCodeExporter commented 9 years ago
Thanks!

Original comment by markess...@gmail.com on 23 Aug 2008 at 9:18