logo
3
2
Login
feat:修改readme

rookie_data_alchemy

Author: jaguarliuu Version: 0.0.3 Type: tool

Description

Transform JSON data into interactive charts effortlessly using AI. Supports all major ECharts visualization types with customizable styling.

Basic Usage

  1. ​Install from Marketplace​
    Visit your platform's plugin marketplace and search for "rookie_data_alchemy".
    Click ​​Install​​ to add the plugin to your dify.

  2. Launch the plugin after installation.

  3. Provide the following parameters:

    • ​Data (JSON):​
      Your structured dataset in valid JSON format
      Example:
      { "categories": ["Mon", "Tue", "Wed", "Thu", "Fri"], "values": [120, 200, 150, 80, 70] }
    • ​Chart Type:​
      Enter the ​​Chinese name​​ of your desired visualization (e.g. 柱状图, 折线图, 饼图)
    • ​Custom Prompts (Optional):​
      Specify styling preferences:
      "Use blue theme with data labels"
      "Show horizontal bar chart with gradient fills"
  4. Click ​​Start Execution​​ to generate your chart

📌 Parameter Details

1. Data Requirements

  • Strictly formatted JSON
  • Supports nested structures for complex charts
  • Maximum file size: 5MB

2. Supported Chart Types

Chinese NameEnglish Equivalent
柱状图Bar Chart
折线图Line Chart
饼图Pie Chart
散点图Scatter Plot
雷达图Radar Chart
漏斗图Funnel Chart
[Full list in documentation]

3. Custom Prompts

Use natural language to request:

  • Color schemes
  • Component modifications
  • Layout adjustments
  • Animation preferences

🎯 Example Use Case

​Input Parameters:​

Data: { "sales": { "Q1": 45000, "Q2": 52000, "Q3": 48000, "Q4": 61000 } } Chart Type: 饼图 Custom Prompt: "Show percentage values with goldenrod colors"

​Output:​​ Interactive pie chart with annotated percentages in goldenrod palette.

Chart Auto Generator Plugin

Overview

The Chart Auto Generator plugin automatically analyzes your data and generates appropriate chart configurations for visualization. It supports various chart types including bar, line, pie, scatter, radar, funnel, heatmap, and boxplot charts.

Usage

Basic Syntax

{ "data": "<your-data>", "chart_type": "<chart-type>", "title": "<optional-title>", "color_scheme": "<optional-color-scheme>" }

Parameters

ParameterRequiredDescription
dataYesYour dataset in JSON format (array of objects or single object)
chart_typeYesType of chart to generate. Options: bar, line, pie, scatter, radar, funnel, heatmap, boxplot, or auto (for automatic selection)
titleNoCustom title for your chart
color_schemeNoColor scheme for the chart. Either:
- Predefined schemes: default, vintage, dark, macarons, infographic, shine, roma
- Custom colors as comma-separated hex values (e.g. #5470c6,#91cc75,#fac858)

Example Request

{ "data": [ {"category": "A", "value": 25}, {"category": "B", "value": 40}, {"category": "C", "value": 15} ], "chart_type": "bar", "title": "Sample Bar Chart", "color_scheme": "vintage" }

Example Response

The plugin returns an ECharts configuration in the following format:

```echarts { "title": { "text": "Sample Bar Chart", "left": "center" }, "xAxis": { "type": "category", "data": ["A", "B", "C"] }, "yAxis": { "type": "value" }, "series": [ { "data": [25, 40, 15], "type": "bar" } ] } ```