mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-28 03:58:49 +00:00
增加Legend的itemInactiveOpacity可设置非激活状态时的颜色透明度 (#343)
This commit is contained in:
@@ -808,6 +808,14 @@ class in XCharts.Runtime / Inherits from: [MainComponent](#maincomponent) / Subc
|
||||
|
||||
The axis in rectangular coordinate.
|
||||
|
||||
### Axis.onLabelClick
|
||||
|
||||
public Action<int, string> onLabelClick
|
||||
|
||||
> Since `v3.15.0`
|
||||
|
||||
Callback function when click on the label. Parameters: labelIndex, labelName.
|
||||
|
||||
### Axis.AddData
|
||||
|
||||
public void AddData(string category)
|
||||
@@ -1078,6 +1086,14 @@ class in XCharts / Inherits from: [MainComponentHandler](#maincomponenthandler)
|
||||
|
||||
public T component
|
||||
|
||||
### AxisHandler<T>.DrawTop
|
||||
|
||||
// public override void DrawTop(VertexHelper vh)
|
||||
|
||||
### AxisHandler<T>.OnPointerClick
|
||||
|
||||
public override void OnPointerClick(PointerEventData eventData)
|
||||
|
||||
## AxisHelper
|
||||
|
||||
class in XCharts.Runtime
|
||||
@@ -3197,6 +3213,10 @@ public float GetTextWidth()
|
||||
|
||||
public float GetWidth()
|
||||
|
||||
### ChartLabel.InRect
|
||||
|
||||
public bool InRect(Vector2 local)
|
||||
|
||||
### ChartLabel.IsActiveByScale
|
||||
|
||||
public bool IsActiveByScale()
|
||||
@@ -5824,15 +5844,15 @@ public double runtimeValue
|
||||
|
||||
class in XCharts.Runtime
|
||||
|
||||
标线类型
|
||||
Mark line type.
|
||||
|
||||
Options:
|
||||
|
||||
- `None`: 标线类型
|
||||
- `Min`: 最小值。
|
||||
- `Max`: 最大值。
|
||||
- `Average`: 平均值。
|
||||
- `Median`: 中位数。
|
||||
- `Custom`: Custom. You can customize the xy coordinates or values.
|
||||
- `Min`: Minimum value.
|
||||
- `Max`: Maximum value.
|
||||
- `Average`: Average value.
|
||||
- `Median`: Median.
|
||||
|
||||
## MarqueeStyle
|
||||
|
||||
|
||||
@@ -2661,6 +2661,12 @@ The distance between each legend, horizontal distance in horizontal layout, and
|
||||
|
||||
Image height of legend symbol.
|
||||
|
||||
### Legend.itemInactiveOpacity
|
||||
|
||||
`float` `1` `v3.15.0`
|
||||
|
||||
the opacity of item color when item is inactive.
|
||||
|
||||
### Legend.itemOpacity
|
||||
|
||||
`float` `1`
|
||||
@@ -2736,11 +2742,11 @@ the limit of text.
|
||||
|
||||
class in XCharts.Runtime / Inherits from: [ComponentTheme](#componenttheme)
|
||||
|
||||
### LegendTheme.unableColor
|
||||
### LegendTheme.inactiveColor
|
||||
|
||||
`Color`
|
||||
|
||||
the color of text.
|
||||
the color when the component is inactive.
|
||||
|
||||
## Level
|
||||
|
||||
@@ -3156,11 +3162,11 @@ Special label types, are used to label maximum value, minimum value and so on.
|
||||
|
||||
Options:
|
||||
|
||||
- `None`: 标线类型
|
||||
- `Min`: 最小值。
|
||||
- `Max`: 最大值。
|
||||
- `Average`: 平均值。
|
||||
- `Median`: 中位数。
|
||||
- `Custom`: Custom. You can customize the xy coordinates or values.
|
||||
- `Min`: Minimum value.
|
||||
- `Max`: Maximum value.
|
||||
- `Average`: Average value.
|
||||
- `Median`: Median.
|
||||
|
||||
### MarkLineData.xPosition
|
||||
|
||||
|
||||
Reference in New Issue
Block a user