diff --git a/Editor/PropertyDrawers/SerieDrawer.cs b/Editor/PropertyDrawers/SerieDrawer.cs index 14945037..fb1a3790 100644 --- a/Editor/PropertyDrawers/SerieDrawer.cs +++ b/Editor/PropertyDrawers/SerieDrawer.cs @@ -322,7 +322,7 @@ namespace XCharts { drawRect.width = drawRect.width - 18; EditorGUI.PropertyField(drawRect, element, new GUIContent("Element " + index)); - drawRect.x = currentWidth - 45; + drawRect.x = currentWidth - 40; EditorGUI.PropertyField(drawRect, selected, GUIContent.none); drawRect.x = lastX; drawRect.width = lastWid; diff --git a/Runtime/Internal/DrawSerieGauge.cs b/Runtime/Internal/DrawSerieGauge.cs index 41e8945d..62883e10 100644 --- a/Runtime/Internal/DrawSerieGauge.cs +++ b/Runtime/Internal/DrawSerieGauge.cs @@ -79,7 +79,7 @@ namespace XCharts public bool CheckTootipArea(Vector2 local) { - if (chart.series.Contains(SerieType.Gauge)) return false; + if (!chart.series.Contains(SerieType.Gauge)) return false; var serie = GetPointerInSerieIndex(chart.series, local); if (serie != null) { diff --git a/Runtime/Internal/DrawSeriePie.cs b/Runtime/Internal/DrawSeriePie.cs index aa5f3f1a..657eef01 100644 --- a/Runtime/Internal/DrawSeriePie.cs +++ b/Runtime/Internal/DrawSeriePie.cs @@ -75,7 +75,7 @@ namespace XCharts public bool CheckTootipArea(Vector2 local) { - if (chart.series.Contains(SerieType.Pie)) return false; + if (!chart.series.Contains(SerieType.Pie)) return false; bool selected = false; chart.tooltip.runtimeDataIndex.Clear(); foreach (var serie in chart.series.list) diff --git a/Runtime/Internal/DrawSerieRadar.cs b/Runtime/Internal/DrawSerieRadar.cs index 0a0525f0..e522e933 100644 --- a/Runtime/Internal/DrawSerieRadar.cs +++ b/Runtime/Internal/DrawSerieRadar.cs @@ -119,7 +119,7 @@ namespace XCharts public bool CheckTootipArea(Vector2 local) { - if (chart.series.Contains(SerieType.Radar)) return false; + if (!chart.series.Contains(SerieType.Radar)) return false; if (m_IsEnterLegendButtom) return false; if (!IsInRadar(local)) return false; bool highlight = false; diff --git a/Runtime/Internal/DrawSerieRing.cs b/Runtime/Internal/DrawSerieRing.cs index 9b5b7d74..5c39b5cb 100644 --- a/Runtime/Internal/DrawSerieRing.cs +++ b/Runtime/Internal/DrawSerieRing.cs @@ -127,7 +127,7 @@ namespace XCharts public bool CheckTootipArea(Vector2 local) { - if (chart.series.Contains(SerieType.Ring)) return false; + if (!chart.series.Contains(SerieType.Ring)) return false; if (!PointerIsInRingSerie(chart.series, local)) return false; if (m_IsEnterLegendButtom) return false; bool selected = false;