Skip to content

Infographics

BPS infographics — statistical data visualizations.

List Infographics

typescript
import { useInfographics, DataLanguage } from 'stadata-js'

const { fetchInfographicList } = useInfographics()

const result = await fetchInfographicList({
  domain: '7200',
  lang: DataLanguage.EN,
  page: 1,
  perPage: 10,
  keyword: 'inflation',
})

Parameters

ParameterTypeRequiredDescription
domainstringBPS domain code
langDataLanguageResponse language
pagenumberPage number (default: 1)
perPagenumberItems per page
keywordstringSearch keyword
cancelTokenCancelTokenRequest cancellation token

Data Type

typescript
class Infographic {
  id: string;
  title: string;
  image: string;   // Image URL
}

Released under the MIT License.