Skip to content

Draw Data: potential issues with general tree view and binary tree view in data visualisation #84

Description

@Shrey5132

I'm not too sure of the specifications of general tree view and binary tree view in data visualisation but the following cases I tested manually seemed to cause issues:

  1. Left skewed trees cause webpage issues
    '
draw_data([
    1,
    [
        [2, [
            [3, [
                [4, [None, [None, None]]],
                [None, None]
            ]],
            [None, None]
        ]],
        [None, None]
    ]
])

'

  1. Right skewed trees cause webpage issues
    '
draw_data([
    "A",
    [
        None,
        [
            ["B", [
                None,
                [
                    ["C", [
                        None,
                        [["D", [None, [None, None]]], None]
                    ]],
                    None
                ]
            ]],
            None
        ]
    ]
])

'

  1. Binary tree rendering issue
    'draw_data([10, [None, [[15, [None, [None, None]]], None]]])'

  2. Mixed data types should not count as a tree
    '

draw_data([
    "top",
    [
        [100, [["leaf_a", [None, [None, None]]], [None, None]]],
        [["branch_right", [None, [[200, [None, [None, None]]], None]]], None]
    ]
])

'

  1. Binary tree rendering issue
    'draw_data([[1, [None, [None, None]]], [None, [None, None]]])'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions