Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setting default sort order causes error #66

Closed
mrjones-plip opened this issue May 22, 2017 · 0 comments
Closed

setting default sort order causes error #66

mrjones-plip opened this issue May 22, 2017 · 0 comments
Labels

Comments

@mrjones-plip
Copy link
Contributor

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.

mrjones-plip pushed a commit that referenced this issue May 22, 2017
mrjones-plip pushed a commit that referenced this issue May 22, 2017
mrjones-plip pushed a commit that referenced this issue May 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant