@vizzu/excel-reader v0.1.2
Vizzu Excel reader plugin
This plugin enables you to read Excel files and transform them into Vizzu compatible data. It's designed with features like:
- Automatic sheet recognition
- Header availability check
- Flexible input parameters
Install
$ npm install @vizzu/excel-reader
Usage
To use the plugin, simply add it to your Vizzu instance as a feature:
import { ExcelReader } from '@vizzu/excel-reader'
chart.features(new ExcelReader(), true)
You can pass your data in one of two ways. Via plain text:
chart.animate({
data: {
excel: {
content: FileContent
}
}
})
The plugin accepts two input parameters as a data source:
Name | Type | Description |
---|---|---|
content | File | File content with reader |
Additionally, it accepts an 'options' parameter:
| Name | Type | Default value | Description | | --------------------- | ------- | ------------- | ----------------------------------------------------------------------------------------- | | | selectedSheet | Number | 0 | Selected sheet index |
All parameters are optional, with default values applied if not provided.
Extracting information
You can easily extract specific details from the excel by requesting a parameter in the following way.
chart.feature.excelReader.selectedSheet
chart.feature.excelReader.data
License
Copyright © 2021-2023 Vizzu Inc.
Released under the Apache 2.0 License.
1 month ago
1 month ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago