Datasets #
Datasets are the data acquisition core of SmartChart. A dataset defines where data comes from, how it is queried, and in what format it is returned.
Dataset Types (dsType) #
SmartChart supports multiple dataset types for different scenarios:
| Type | dsType | Purpose | Typical Scenario |
|---|---|---|---|
| Dataset | ds |
Standard SQL query | Fetch data from database |
| Agent | agent |
Wrap LLM calls | AI conversation, smart analysis |
| Tool | tool |
Reusable tool function | Data processing, format conversion |
| Chart | chart |
Reusable chart component | Pre-configured chart template |
| API | api |
External API proxy | HTTP interface calls |
The type is set in the dataset’s “Type” field. Choose the appropriate type for the best experience.