1.2.11 • Published 14 days ago

@visactor/vmind v1.2.11

Weekly downloads
-
License
MIT
Repository
github
Last release
14 days ago

@visactor/vmind

English | 简体中文

@visactor/vmind is an intelligent chart component based on large models provided by VisActor, including dialog-based chart generation and editing capabilities. It provides a natural language interaction interface, allowing you to easily create chart narrative works with @visactor/VMind with just one sentence, and edit them through continuous dialogue, greatly improving your efficiency in creating data visualization works.

The main features of @visactor/vmind include:

  • Easy to use: Just provide the data you want to display and a sentence describing the information you want to display, and @visactor/vmind will automatically generate the chart for you. Based on the existing chart, describe the modifications you want to make to the chart in one sentence, and @visactor/VMind will help you achieve the desired effect.
  • Strong scalability: The components of @visactor/VMind can be easily extended and customized, and new functions and features can be added as needed. By default, the OpenAI GPT model is used, and you can easily replace it with any text large model.
  • Easy narrative: Based on the powerful chart narrative ability of @visactor/vchart, @visactor/VMind supports the generation of various types of charts, including line charts, bar charts, pie charts, etc., and can also generate dynamic bar charts and other dynamic charts, making it easy for you to narrate data. More chart types are being added. You can also use the dialog-based editing function to easily modify chart styles and animation effects, making it easy for you to create narratives.
  • One-click export: @visactor/VMind comes with a chart export module, and you can export the created chart narrative as a video or GIF for display.

Instructions for use

📦 Installation

# npm
$ npm install @visactor/vmind

# yarn
$ yarn add @visactor/vmind

📊 Usage example

Intelligent chart generation

import VMind from '@visactor/vmind'

const vmind = new VMind(openAIKey) //Pass in your openAI key

const { spec, time } = await (vmind.generateChart(csv, describe)); //Intelligent chart generation, pass in your csv format data and chart description, and return the chart spec and chart animation duration

Chart export

//Export video
const src = await vmind.exportVideo(spec, time); //Pass in the chart spec and video duration, and return ObjectURL
//Export GIF image
const src = await vmind.exportGIF(spec, time); //Pass in the chart spec and GIF duration, and return ObjectURL

Dialog-based editing

Under development, stay tuned

Effect display

Dynamic bar chart

Alt text

Bar chart

Alt text

Pie chart

Alt text

1.2.12-alpha.0

14 days ago

1.2.10-alpha.0

18 days ago

1.2.10-none

18 days ago

1.2.11

18 days ago

1.2.7

2 months ago

1.2.5

2 months ago

1.2.8-alpha.0

23 days ago

1.2.9

23 days ago

1.2.5-alpha.5

2 months ago

1.2.5-alpha.6

2 months ago

1.2.5-alpha.4

2 months ago

1.2.5-alpha.1

2 months ago

1.2.5-alpha.2

2 months ago

1.2.5-alpha.3

2 months ago

1.2.5-alpha.0

2 months ago

1.2.4

3 months ago

1.2.4-alpha.4

3 months ago

1.2.4-alpha.5

3 months ago

1.2.4-alpha.3

3 months ago

1.2.4-alpha.2

3 months ago

1.2.3-alpha.0

3 months ago

1.2.4-alpha.0

3 months ago

1.2.3

3 months ago

1.2.2-alpha.0

3 months ago

1.2.2

3 months ago

1.2.1

4 months ago

1.2.0

4 months ago

1.1.0

6 months ago

1.0.9

6 months ago

1.0.9-alpha.0

6 months ago

1.0.8

6 months ago

1.0.8-alpha.0

6 months ago

1.0.7

6 months ago

1.0.6-alpha.5

6 months ago

1.0.6-alpha.4

6 months ago

1.0.6-alpha.3

8 months ago

1.0.6-alpha.2

8 months ago

1.0.6-alpha.1

8 months ago

1.0.6

8 months ago

1.0.5

8 months ago

1.0.4

8 months ago

1.0.3

8 months ago

1.0.2

9 months ago

1.0.1

9 months ago

1.0.0

9 months ago