0.7.0 • Published 10 months ago

@vizzu/excel-reader v0.7.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
10 months 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.7.0

10 months ago

0.6.0

11 months ago

0.5.0

12 months ago

0.4.0

1 year ago

0.3.1

1 year ago

0.3.0

1 year ago

0.2.1

1 year ago

0.2.0

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago

0.0.1-alpha.3

1 year ago

0.0.1-alpha.2

1 year ago

0.0.1-alpha.1

2 years ago

0.0.1-alpha.0

2 years ago