Chart axis majorTickMark with type NestedNoneSet does not work if we want to remove it:

Issue #940 resolved
Edd
created an issue

Hi,

I wanted to remove majorTickMark, so I had to change the code in chart\axis.py in class definition:

class _BaseAxis(Serialisable):
(...)
    majorTickMark = NestedSet(values=(['none', 'cross', 'in', 'out']))
    minorTickMark = NestedSet(values=(['none','cross', 'in', 'out']))
(...)

and init function:

def __init__(self,
(...)
                 majorTickMark='none',
                 minorTickMark='none',
(...)

Don't know if this is the best way to do it, but worked for me.

Thanks,

Edd

Comments (2)

  1. Log in to comment