It is not only a fully functional graph visualization library, but also an explorer of data relationships.
!!!###!!!title=csv——VisActor/VTable tutorial documents!!!###!!!!!!###!!!description=Please use the `TableExportPlugin` plugin in `@visactor/vtable-plugins`. For tutorial documents, please refer to [table export](../plugin/table-export)!!!###!!!
@visactor/vtable-export is no longer maintained
Please use the TableExportPlugin plugin in @visactor/vtable-plugins. For tutorial documents, please refer to table export
CSV export
The @visactor/vtable-export package is a tool packaged for VTable table export. It supports export in both CSV and Excel formats.
Usage
import
First, you need to install the @visactor/vtable and @visactor/vtable-export packages in your application, then introduce them in your code to generate a table instance and export it:
import * as VTable from '@visactor/vtable';
import { downloadCsv, exportVTableToCsv } from '@visactor/vtable-export';
//config option
//......
const tableInstance = new VTable.ListTable(option);
// download csv file
downloadCsv(exportVTableToCsv(tableInstance), 'export-csv');
exportVTableToCsv: Table output tool, outputs table instances as a string in CSV format
downloadCsv: Download tool to download CSV format strings as files in a browser environment
If it is a server environment, you can process the CSV format string converted by exportVTableToCsv yourself.