VSCode Data Preview πΈ extension for viewing π slicing πͺ dicing π² & charting π large .json
array .arrow
.avro
data files, .config
.env
.properties
.yml
configurations files, .csv/.tsv
& .xlsx/.xlsm
data files with Perspective - streaming data analytics WebAssembly library.
- Preview πΈ
.json
,.arrow
,.avro
,.yml
,.csv/.tsv
&.xlsx/.xlsm
data files in a Data Grid with Sorting & Filtering - Grid Data Summary display with Aggregate Functions, Row & Column Pivots (a.k.a.
Group By
&Split By
) - Basic Charts π creation with Aggregate Functions, Row & Column Pivots
- Pluggable Charting π libraries for stock Charts: highcharts || d3fc
- Persistent Data Preview Settings (View, Sort, Filter, Pivots, etc.) for restore of open Data View panels on VSCode Reload
- Mulptiple Spreadsheets Data Preview for
Excel
data files - Arrow & Avro
.schema.json
generation for Data Schema Text Previews in JSON format - Arrow, Avro &
Excel
data files.json
data generation for Text Data Previews in JSON format - Property Grid display for
.json
,.config
,.env
,.properties
&.yml
configuration files - Filtered Data
.csv
,.json
,.yml
&.properties
Data Grid/Chart π Save file options - Save & Load Data View
.config
options - Dark & Light Data Preview πΈ Panel Themes
- Will include
.parquet
data format support, large text & binary data files loading & Apache Arrow data streaming
Note: this Data Preview πΈ extension is already capable of loading a few MB's large data files with 100+K records & extensive list of supported data formats you'll be hard pressed to find on vscode marketplace.
Install Data Preview πΈ via vscode Extensions tab (Ctrl+Shift+X
) by searching for data preview
|| via vscode marketplace search results.
List of Data Preview πΈ extension config Settings, with data.preview
command info, keyboard shortcut, augmented vscode UI context menus, added Data Language mappings, supported Data Files list & configurable Theme & Charts π Settings:
Create User or Workspace Settings in vscode to change default Data Preview πΈ extension Settings:
Setting | Type | Default Value | Description |
---|---|---|---|
data.preview.theme | string | Data Preview Theme: blank for light or .dark for dark theme data previews display. |
|
data.preview.charts.plugin | string | hightcharts | Data Preview Charts π library to use for stock charts: highcharts or d3fc |
data.preview.create.json.files | boolean | true | Creates .json data & .schema.json files, if available, for Arrow, Avro & Excel data files. |
Data Preview πΈ example using .dark
theme with d3fc
charts config, viewing
superstore.arrow
data file :)
- Run
View -> Command Palette...>Data: Preview Data πΈ
command || hitCtrl+Shift+D
in an open.json
.config
.env
.properties
.yml
||.csv/.tsv
text data file document to launch Data Preview panel. - Hit
Ctrl+S
||File -> Save
your text data file for immediate updates in an open Data Preview panel. - Right-click on a Binary
.xlsx/.xlsm
,.arrow
||.avro
data file in VSCode File Explorer to launch Data Preview panel. - Use exposed
explorer/context
,editor/title
||editor/title/context
Preview Data πΈ context menu options to preview your data files. - Click on the Data Preview panel data filename link in its toolbar to Load saved Data View Grid || Chart π
.config
.
- Double click on the Grid Column header to
Sort
data by that column. - Drag and drop a column from the left-side
Columns
control panel intoFilter fields
for data filtering (Group By
,Split By
,Sort
,Filter
). - Drag columns up and down in the left-side
Columns
control panel to reorder displayed columns in the Data Grid. - Uncheck a column in the
Columns
control panel to remove it from a Chart π or Data Grid display.
{
"when": "resourceFilename =~ /.*\\.(json|arrow|arr|avro|env|config|properties|yml|csv|tsv|txt|tab|dif|ods|prn|slk|xls|xlsb|xlsx|xlsm|xml|html)/",
"command": "data.preview",
"group": "navigation"
}
See https://github.com/SheetJS/js-xlsx#file-formats for more info on supported Excel
file formats.
- Area Chart
- Bar Chart
- Heatmap
- Line Chart
- Scatter Chart
- Sunburst
- Tree Map
- any
- avg
- count
- distinct count
- dominant
- first by index
- last by index
- last
- high
- low
- mean
- mean by count
- median
- pct sum parent
- pct sum grand total
- sum
- sum abs
- sum not null
- unique
See #DataPreview πΈ tag on Twitter for the latest and greatest updates on this vscode extension and what's in store next.
$ git clone https://github.com/RandomFractals/vscode-data-preview
$ cd vscode-data-preview
$ npm install
$ code .
F5
to launch Data Preview πΈ extension VSCode debug session.
Any and all test, code or feedback contributions are welcome.
Open an issue or create a pull request to make this Data Preview πΈ extension work better for all.