Your first TeeBI application
This quickstart guide walks you through creating a simple TeeBI application that imports data from a CSV file, queries it, and displays results in a grid and chart.What you’ll build
You’ll create an application that:- Imports data from a CSV file
- Performs SQL-like queries on the data
- Displays results in a grid component
- Visualizes data with charts
Set up your project
Create a new VCL or FireMonkey application in RAD Studio or Lazarus.Add the TeeBI core units to your uses clause:
For FireMonkey applications, use
FMXBI.Grid and FMXBI.Chart instead of the VCL equivalents.Import data from CSV
TeeBI makes importing data extremely simple. Load a CSV file with a single line of code:You can also import from strings or TStrings:
Other import methods
Other import methods
TeeBI supports importing from multiple sources:
Query your data
Use SQL-like syntax to query and transform your data:TeeBI queries support:
WHEREclauses with complex conditionsGROUP BYwith multiple fields- Aggregate functions:
SUM,COUNT,AVG,MIN,MAX HAVINGclauses- Sub-select queries
DISTINCTvaluesTOP NandOFFSETfor pagination- Date/time operators
- Expression evaluation
Visualize with grids and charts
Display your data using TeeBI’s built-in visualization components:Using TBIGrid:Using TBIChart:
TeeBI components automatically visualize complex data structures. The library intelligently chooses appropriate chart types and grid layouts based on your data.
Working with sub-tables
TeeBI automatically handles relationships between data:Exporting data
Export your processed data to various formats:Performance tips
Common patterns
Pattern: Import, transform, export
Pattern: Multi-source data integration
Pattern: Interactive dashboard
Next steps
Now that you’ve created your first TeeBI application, explore these topics:Core concepts
Deep dive into TDataItem and TeeBI architecture
Importing data
Learn all the ways to import data into TeeBI
Querying data
Master SQL-like queries and data transformations
Visualization
Create stunning charts and grids from your data
Need help?
- Join the Telegram forums for community support
- Check the API Reference for detailed documentation
- Explore example projects on GitHub
