0.1.2 • Published 1 month ago

@vizzu/excel-reader v0.1.2

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
1 month ago

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:

NameTypeDescription
contentFileFile 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.

0.1.2

1 month ago

0.1.1

1 month ago

0.1.0

2 months ago

0.0.1-alpha.3

2 months ago

0.0.1-alpha.2

2 months ago

0.0.1-alpha.1

2 months ago

0.0.1-alpha.0

2 months ago