跳到主要內容

ScatterSeriesTypeAPI

ScatterSeriesType 介面的擴充文件,包含模組屬性和可用 API 的詳細資訊。

示範

匯入

import { ScatterSeriesType } from '@mui/x-charts'

屬性

類型:'scatter'


選填

類型:string


選填

類型:ScatterValueType[]


選填

用於從資料集中檢索資料的鍵。

當提供此 prop 時,必須提供 xyid 的所有值。
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
}


選填

若為 true,則互動將不會對此系列使用元素懸停效果。

類型:boolean

預設值:false


選填

系列醒目提示時要套用的範圍。

類型:Partial<HighlightScope>


選填

類型:SeriesId


選填

要在工具提示或圖例上顯示的標籤。它可以是字串或函式。

類型:string | ((location: 'tooltip' | 'legend') => string)


選填

類型:number


選填

用於在工具提示或其他資料顯示中呈現值的格式器。

類型:SeriesValueFormatter<TValue>


選填

用於呈現系列的 x 軸 ID。

類型:string


選填

用於呈現系列的 x 軸 ID。

類型:string


選填

用於呈現系列的 y 軸 ID。

類型:string


選填

用於呈現系列的 y 軸 ID。

類型:string


選填

用於呈現系列的 z 軸 ID。

類型:string


選填

用於呈現系列的 z 軸 ID。

類型:string