Skip to content

setting default sort order causes error #66

@mrjones-plip

Description

@mrjones-plip

on current master branch, if you take the example/index.html which is this:

    var viz = d3.maptable('#vizContainer')
            .csv('basic.csv')
            .map({ path: 'ne_110m_admin_0_countries.json' })
            .filters()
            .table()
            .render();

and change it to this:

    var viz = d3.maptable('#vizContainer')
            .csv('basic.csv')
            .map({ path: 'ne_110m_admin_0_countries.json' })
            .filters()
            .table({
                defaultSorting: {
                    key: "city"
               }
            })
            .render();

there's a JS error in the sortColumn() function: TypeError: d3.event is null - maptable.js 2413 where 2413 is here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions