declarativewidgets icon indicating copy to clipboard operation
declarativewidgets copied to clipboard

Changing DataFrame Limit

Open vkhombal opened this issue 7 years ago • 3 comments

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?

vkhombal avatar May 09 '17 17:05 vkhombal

That looks fine to me. Print out f1.limit to verify that it is set to 2000.

On May 9, 2017, at 1:47 PM, vkhombal [email protected] wrote:

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 Then on the javascript console

f1.value.data.length < 200 Am i doing this right?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

lbustelo avatar May 10 '17 01:05 lbustelo

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?

vkhombal avatar May 10 '17 11:05 vkhombal

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.

lbustelo avatar May 11 '17 00:05 lbustelo