This plugin uses OpenAI's ChatGPT to turn text or URL content into ECharts visualizations. ππ€
The Charts-Generator-ChatGPT-Plugin leverages the capabilities of OpenAI's ChatGPT to interpret and analyze user input or web content, and generate corresponding statistical charts using ECharts. It takes a text description or a URL as input, summarizes the content, creates a description that conforms to a statistical chart, and finally converts the description into a chart configuration form that can be implemented by the ECharts library.
Here's a flowchart that illustrates the process:
graph LR
A[User Input] --> B{URL or Text?}
B -->|URL| D1[third-party plugin.]
B -->|Text| D[Process Text Description]
D1 --> D
D --> ChatGPT[ChatGPT Convert to ECharts Configuration]
ChatGPT --> Plugin(Covert Echarts Configuration to pyecharts options)
Plugin --> G[Output ECharts Image or Html]
third-party plugin: LinkReader
or WebPilot
To install the required packages for this plugin, run the following command:
pip install -r requirements.txt
To run the plugin, enter the following command:
python main.py
- Open Replit and click the Create Repl button.
- When the pop-up window appears, click the Import from GitHub button in the top right corner.
- In the GitHub URL field, enter https://github.com/ethanguo770/charts-generator-chatgpt-plugin and select Python as the language.
- Then click the Import from GitHub button in the bottom right corner and wait for the initialization to complete.
- Click the Run button and wait for the execution to finish.
Once the local server is running:
Navigate to https://chat.openai.com. In the Model drop down, select "Plugins". Select "Plugin store". Select "Develop your own plugin". Enter in localhost:5003 since this is the URL the server is running on locally, then select "Find manifest file". The plugin should now be installed and enabled!
If you run into issues or have questions building a plugin, please join our Developer community forum.