2022-02-19 22:37:57 +08:00
|
|
|
using XCharts.Runtime;
|
2021-11-23 13:20:07 +08:00
|
|
|
|
2021-12-24 13:33:09 +08:00
|
|
|
namespace XCharts.Editor
|
2021-11-23 13:20:07 +08:00
|
|
|
{
|
|
|
|
|
[SerieEditor(typeof(Bar))]
|
|
|
|
|
public class BarEditor : SerieEditor<Bar>
|
|
|
|
|
{
|
|
|
|
|
public override void OnCustomInspectorGUI()
|
|
|
|
|
{
|
2022-07-28 07:21:46 +08:00
|
|
|
PropertyField("m_ColorBy");
|
2021-11-23 13:20:07 +08:00
|
|
|
PropertyField("m_Stack");
|
|
|
|
|
if (serie.IsUseCoord<PolarCoord>())
|
|
|
|
|
{
|
|
|
|
|
PropertyField("m_PolarIndex");
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
PropertyField("m_XAxisIndex");
|
|
|
|
|
PropertyField("m_YAxisIndex");
|
|
|
|
|
}
|
|
|
|
|
PropertyField("m_BarType");
|
|
|
|
|
PropertyField("m_BarWidth");
|
|
|
|
|
PropertyField("m_BarGap");
|
2022-11-30 09:39:41 +08:00
|
|
|
PropertyField("m_BarMaxWidth");
|
2026-02-26 22:31:50 +08:00
|
|
|
PropertyField("m_IgnoreZeroOccupy");
|
2025-02-23 21:47:15 +08:00
|
|
|
PropertyField("m_RealtimeSort");
|
|
|
|
|
if(serie.useSortData)
|
|
|
|
|
{
|
|
|
|
|
PropertyField("m_DataSortType");
|
|
|
|
|
}
|
2022-09-20 13:16:22 +08:00
|
|
|
if (serie.IsUseCoord<PolarCoord>())
|
|
|
|
|
{
|
|
|
|
|
PropertyField("m_RoundCap");
|
|
|
|
|
}
|
|
|
|
|
else
|
2021-12-11 18:26:28 +08:00
|
|
|
{
|
2022-09-20 13:16:22 +08:00
|
|
|
PropertyField("m_BarPercentStack");
|
|
|
|
|
if (serie.barType == BarType.Zebra)
|
|
|
|
|
{
|
|
|
|
|
PropertyField("m_BarZebraWidth");
|
|
|
|
|
PropertyField("m_BarZebraGap");
|
|
|
|
|
}
|
2021-12-11 18:26:28 +08:00
|
|
|
}
|
2022-05-01 10:30:58 +08:00
|
|
|
PropertyField("m_Clip");
|
2021-12-11 18:26:28 +08:00
|
|
|
PropertyFiledMore(() =>
|
|
|
|
|
{
|
|
|
|
|
PropertyFieldLimitMin("m_MinShow", 0);
|
|
|
|
|
PropertyFieldLimitMin("m_MaxShow", 0);
|
|
|
|
|
PropertyFieldLimitMin("m_MaxCache", 0);
|
|
|
|
|
PropertyField("m_Ignore");
|
|
|
|
|
PropertyField("m_IgnoreValue");
|
|
|
|
|
PropertyField("m_IgnoreLineBreak");
|
|
|
|
|
PropertyField("m_ShowAsPositiveNumber");
|
|
|
|
|
PropertyField("m_Large");
|
|
|
|
|
PropertyField("m_LargeThreshold");
|
2022-01-13 21:45:59 +08:00
|
|
|
PropertyField("m_PlaceHolder");
|
2023-12-10 21:23:57 +08:00
|
|
|
PropertyField("m_MinShowLabel");
|
|
|
|
|
PropertyField("m_MinShowLabelValue");
|
2021-12-11 18:26:28 +08:00
|
|
|
});
|
2021-11-23 13:20:07 +08:00
|
|
|
PropertyField("m_ItemStyle");
|
|
|
|
|
PropertyField("m_Animation");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|