Skip to content
This repository has been archived by the owner on Sep 1, 2022. It is now read-only.

Changing DataFrame Limit #558

Open
vkhombal opened this issue May 9, 2017 · 3 comments
Open

Changing DataFrame Limit #558

vkhombal opened this issue May 9, 2017 · 3 comments

Comments

@vkhombal
Copy link

vkhombal commented May 9, 2017

I'm trying to use the dataframe and table combination to use as a data selector. The sdf has 16000 rows.
I tried to set the limit to dataframe but it seems to cut-off at 200 rows.

%%html
<template is="dom-bind">
    <urth-core-dataframe id="f1" ref="sdf" value="{{df}}" limit="2000"></urth-core-dataframe>
    <urth-core-function id="f1a" ref="show_rep" arg-idx="{{sel.2}}" auto></urth-core-function>
    <urth-viz-table datarows="{{ df.data }}" selection="{{sel}}" columns="{{ df.columns }}">
    </urth-viz-table>
</template>

Then on the javascript console

> f1.value.data.length
< 200

Am i doing this right?

@lbustelo
Copy link
Collaborator

lbustelo commented May 10, 2017 via email

@vkhombal
Copy link
Author

Thanks Bustelo,
f1.limit is set to 2000. I had to close the tab and open again, and i even get this warning from handsontable.

handsontable.full.js?v=20170509120655:3581 Performance tip: Handsontable rendered more than 1000 visible rows. Consider limiting the number of rendered rows by specifying the table height and/or turning off the "renderAllRows" option.

Is the pagination feature of the handsontable exposed?

@lbustelo
Copy link
Collaborator

I thought handson would use a virtual paging of rows. Other than that, there is no pagination support on the dataframe element. All the data within the limit will be sent to the browser at once.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants