ScatterSeriesTypeAPI
ScatterSeriesType 介面的擴充文件,包含模組屬性和可用 API 的詳細資訊。
示範
匯入
import { ScatterSeriesType } from '@mui/x-charts'
用於從資料集中檢索資料的鍵。
當提供此 prop 時,必須提供 x
、y
和 id
的所有值。
而 z
是選填的。
類型:{
/**
* The key used to retrieve data from the dataset for the X axis.
*/
x: string
/**
* The key used to retrieve data from the dataset for the Y axis.
*/
y: string
/**
* The key used to retrieve data from the dataset for the Z axis.
*/
z?: string
/**
* The key used to retrieve data from the dataset for the id.
*/
id: string
}