MCPcopy Create free account

hub / github.com/antvis/AVA / functions

Functions91 in github.com/antvis/AVA

↓ 12 callersMethodanalysis
* Analyze data using natural language query. * Returns analysis results (text summary + data + code/sql). * Use visualize() separately to genera
src/ava.ts:167
↓ 12 callersMethoddispose
* Clean up resources
src/ava.ts:322
↓ 7 callersMethodloadObject
* Load data from JSON object array * @returns The loaded structured data
src/ava.ts:75
↓ 6 callersMethodinitDB
* Initialize the IndexedDB database
src/analysis/indexeddb.ts:42
↓ 5 callersMethodloadCSV
* Load CSV file * @returns The loaded structured data
src/ava.ts:64
↓ 4 callersFunctionformatDatasetInfo
(info: DatasetInfo)
src/data/index.ts:93
↓ 4 callersFunctionloadAppState
()
site/components/utils.ts:48
↓ 4 callersMethodprocessLoadedData
* Process loaded data: extract metadata and load into storage if large * Uses SQLite for Node.js, IndexedDB for browser (with fallback to memory)
src/ava.ts:116
↓ 3 callersMethodclose
* Close database
src/analysis/sqlite.ts:95
↓ 3 callersFunctionextractMetadata
(data: any[])
src/data/index.ts:51
↓ 3 callersMethodinitDb
* Initialize the database (lazy loading)
src/analysis/sqlite.ts:21
↓ 3 callersMethodloadText
* Load data from text using LLM * @returns The loaded structured data
src/ava.ts:97
↓ 3 callersFunctionsaveAppState
(state: Partial<AppState>)
site/components/utils.ts:81
↓ 3 callersMethodsuggest
* Suggest analysis queries based on loaded data * @param count Number of queries to suggest (default: 3) * @returns Array of suggested queries w
src/ava.ts:309
↓ 2 callersFunctionexecuteDataCode
( data: any[], code: string )
src/analysis/code.ts:17
↓ 2 callersFunctiongenerateDataCode
( llmConfig: LLMConfig, dataInfo: string, query: string )
src/analysis/code.ts:39
↓ 2 callersFunctiongenerateSQL
( llmConfig: LLMConfig, schema: string, query: string )
src/analysis/sql.ts:13
↓ 2 callersMethodgetRowCount
* Get stored row count from metadata (faster than counting)
src/analysis/indexeddb.ts:171
↓ 2 callersMethodgetSchema
* Get schema info
src/analysis/sqlite.ts:86
↓ 2 callersFunctionloadCSV
(filePathOrContent: string)
src/data/csv.ts:25
↓ 2 callersMethodloadData
* Load data into SQLite table
src/analysis/sqlite.ts:43
↓ 2 callersFunctionloadObject
(data: any[])
src/data/json.ts:19
↓ 2 callersFunctionloadURL
( url: string, transform?: (response: any) => any[] )
src/data/url.ts:22
↓ 2 callersMethodquery
* Execute SQL query
src/analysis/sqlite.ts:78
↓ 2 callersMethodvisualize
* Visualize analysis data by recommending a chart type and generating chart HTML. * Accepts the result from analysis() — the query and data are rea
src/ava.ts:239
↓ 1 callersFunctionadviseChartType
( query: string, dataInfoStr: string, llmConfig: LLMConfig )
src/visualization/advisor.ts:74
↓ 1 callersFunctionbuildAdvisorPrompt
(query: string, dataInfoStr: string)
src/visualization/advisor.ts:34
↓ 1 callersFunctioncalculateVariance
(arr: any[], key: string)
src/analysis/stat.ts:9
↓ 1 callersMethodclear
* Clear all data from the store
src/analysis/indexeddb.ts:250
↓ 1 callersMethodclose
* Close the database connection
src/analysis/indexeddb.ts:259
↓ 1 callersFunctionconvertToCSV
(data: DataRow[])
site/components/DataPreview.tsx:10
↓ 1 callersMethoddeleteDatabase
* Delete the entire database (useful for cleanup)
src/analysis/indexeddb.ts:269
↓ 1 callersFunctiondownloadCSV
(data: DataRow[])
site/components/DataPreview.tsx:33
↓ 1 callersMethodestimateMemorySize
* Estimate the in-memory size (bytes) of the full dataset by sampling rows. * Uses JSON serialization of sampled rows as a proxy for memory footpri
src/analysis/indexeddb.ts:158
↓ 1 callersFunctionformatDatasetInfoWithNonArray
(data: unknown)
src/data/index.ts:119
↓ 1 callersFunctionformatValue
(value: string | number | boolean | null)
site/components/DataPreview.tsx:49
↓ 1 callersFunctiongenerateSuggestions
( llmConfig: LLMConfig, dataInfo: DatasetInfo, count: number = 3 )
src/suggest/index.ts:15
↓ 1 callersFunctiongenerateVisualizationHTML
( chartType: ChartType, data: any, query: string, llmConfig: LLMConfig )
src/visualization/generator.ts:65
↓ 1 callersMethodgetAllData
* Get all data from IndexedDB * Note: This loads all data into memory, suitable for analysis queries * Returns data without the internal __id fi
src/analysis/indexeddb.ts:141
↓ 1 callersMethodgetFields
* Get field names from metadata
src/analysis/indexeddb.ts:180
↓ 1 callersFunctiongetLLMConfig
()
__tests__/ava.test.ts:19
↓ 1 callersFunctiongetLLMConfig
()
__tests__/analysis.test.ts:10
↓ 1 callersFunctiongetLLMConfig
()
__tests__/suggest.test.ts:18
↓ 1 callersMethodgetSample
* Get a sample of rows for schema inference * Returns raw rows including __id for internal use
src/analysis/indexeddb.ts:212
↓ 1 callersFunctiongetValueColor
(value: string | number | boolean | null)
site/components/DataPreview.tsx:61
↓ 1 callersFunctionhasData
* Check if analysis result has meaningful data for visualization. * Accepts arrays (non-empty), objects (non-empty), and non-null/non-undefined primi
src/ava.ts:37
↓ 1 callersMethodhasIndexedDB
* Check if IndexedDB is available in the current environment
src/ava.ts:107
↓ 1 callersFunctioninferFieldType
* Infer field type from sample values
src/data/index.ts:16
↓ 1 callersMethodinferType
* Infer field type from sample values
src/analysis/indexeddb.ts:221
↓ 1 callersFunctionloadText
(text: string, llmConfig: LLMConfig)
src/data/text.ts:23
↓ 1 callersMethodloadURL
* Load data from URL * @returns The loaded structured data
src/ava.ts:86
↓ 1 callersFunctionmain
()
examples/visualization-example.ts:14
↓ 1 callersFunctionmain
()
examples/url-analysis.ts:12
↓ 1 callersFunctionmain
()
examples/loan-payments-analysis.ts:12
↓ 1 callersFunctionmain
()
examples/heart-disease-analysis.ts:12
↓ 1 callersFunctionmain
()
examples/text-analysis.ts:11
↓ 1 callersFunctionmain
()
examples/suggest-example.ts:10
↓ 1 callersFunctionmain
()
examples/companies-analysis.ts:11
↓ 1 callersFunctionmain
()
examples/object-analysis.ts:11
↓ 1 callersFunctionparseCSV
(csvContent: string)
site/components/utils.ts:141
↓ 1 callersFunctionparseExcel
(arrayBuffer: ArrayBuffer)
site/components/utils.ts:107
↓ 1 callersFunctionparseLine
(line: string)
site/components/utils.ts:146
↓ 1 callersFunctionsaveLLMConfig
(config: LLMConfig)
site/components/utils.ts:30
↓ 1 callersMethodsummarizeResult
* Summarize analysis result using LLM
src/ava.ts:277
↓ 1 callersFunctionwrapSyntaxInHTML
* Wrap GPT-Vis syntax into a standalone HTML file that can be opened in any browser
src/visualization/generator.ts:17
FunctionConfigModal
({ isOpen, onClose, config, onSave })
site/components/ConfigModal.tsx:12
FunctionDataImport
({ avaInstance, onDataLoaded, isInitialized, onLoadingChange })
site/components/DataImport.tsx:14
FunctionDataPreview
({ data, isLoading })
site/components/DataPreview.tsx:48
FunctionDocumentation
()
site/components/Documentation.tsx:3
FunctionDocumentationLayout
({ children, }: { children: React.ReactNode })
site/app/documentation/layout.tsx:23
FunctionDocumentationPage
()
site/app/documentation/page.tsx:6
FunctionFooter
()
site/components/Footer.tsx:3
FunctionGPTVisRenderer
({ syntax, width, height, onRender, onError })
site/components/GPTVisRenderer.tsx:13
FunctionHeader
({ onOpenConfig })
site/components/Header.tsx:11
FunctionHome
({ isConfigOpen, onCloseConfig }: HomeProps)
site/components/HomePage.tsx:22
FunctionHome
()
site/app/page.tsx:7
FunctionRootLayout
({ children }: { children: React.ReactNode })
site/app/layout.tsx:35
FunctionSuggestionCards
({ suggestions, onSelect, onDismiss })
site/components/SuggestionCards.tsx:11
FunctionVisualization
({ avaInstance, data, isInitialized })
site/components/Visualization.tsx:18
Methodconstructor
(config: AVAConfig)
src/ava.ts:55
Methodconstructor
(dbPath: string = ':memory:')
src/analysis/sqlite.ts:14
MethodgetSchema
* Get schema information for LLM context
src/analysis/indexeddb.ts:189
FunctionhandleDataLoaded
(newData: DataRow[])
site/components/HomePage.tsx:45
FunctionhandleFileUpload
(e: React.ChangeEvent<HTMLInputElement>)
site/components/DataImport.tsx:58
FunctionhandleSave
()
site/components/ConfigModal.tsx:21
FunctionhandleSaveConfig
(config: LLMConfig)
site/components/HomePage.tsx:38
FunctionhandleTextSubmit
()
site/components/DataImport.tsx:30
Functionhandler
(event: any)
__tests__/ava.test.ts:218
MethodloadData
* Load data into IndexedDB * Uses batch processing to avoid transaction timeouts with large datasets
src/analysis/indexeddb.ts:63
FunctionloadLLMConfig
()
site/components/utils.ts:12
Methodupgrade
(db)
src/analysis/indexeddb.ts:46