Skip to content

Will not work within a class? #47

@Prooffreader

Description

@Prooffreader

As soon as I wrap a working example within a class, nothing displays:

import charts

class Wrapper():
    def __init__(self):
        data = [1,2,5,9,6,3,4,8]
        options = dict(height=400, title=dict(text='My first chart!'))
        charts.plot(data, options=options, name='List data', show='inline')

instance = Wrapper()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions