Skip to content

Commit db9d55b

Browse files
committed
docs: update example
--- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: passed - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: na - task: lint_typescript_tests status: na - task: lint_license_headers status: passed --- --- type: pre_push_report description: Results of running various checks prior to pushing changes. report: - task: run_javascript_examples status: na - task: run_c_examples status: na - task: run_cpp_examples status: na - task: run_javascript_readme_examples status: na - task: run_c_benchmarks status: na - task: run_cpp_benchmarks status: na - task: run_fortran_benchmarks status: na - task: run_javascript_benchmarks status: na - task: run_julia_benchmarks status: na - task: run_python_benchmarks status: na - task: run_r_benchmarks status: na - task: run_javascript_tests status: na ---
1 parent 2738a64 commit db9d55b

File tree

1 file changed

+35
-0
lines changed
  • lib/node_modules/@stdlib/plot/table/unicode

1 file changed

+35
-0
lines changed

lib/node_modules/@stdlib/plot/table/unicode/README.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -926,6 +926,41 @@ var table = new UnicodeTable( data, {
926926
var str = table.render();
927927
console.log( str );
928928
// => '...'
929+
930+
// Push new data to the table:
931+
table.push( [ 1.0, 2.0, 3.0, 4.0, 5.0 ] );
932+
933+
// Re-render the table:
934+
str = table.render();
935+
console.log( str );
936+
// => '...'
937+
938+
// Limit the number of table rows:
939+
table.bufferSize = 10;
940+
941+
// Re-render the table:
942+
str = table.render();
943+
console.log( str );
944+
// => '...'
945+
946+
// Push new data to the table:
947+
table.push( [ 6.0, 7.0, 8.0, 9.0, 10.0 ] );
948+
949+
// Re-render the table:
950+
str = table.render();
951+
console.log( str );
952+
// => '...'
953+
954+
// Increase the number of allowed table rows:
955+
table.bufferSize = 15;
956+
957+
// Push new data to the table:
958+
table.push( [ 11.0, 12.0, 13.0, 14.0, 15.0 ] );
959+
960+
// Re-render the table:
961+
str = table.render();
962+
console.log( str );
963+
// => '...'
929964
```
930965

931966
</section>

0 commit comments

Comments
 (0)