No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

BarEditor.cs 1.8KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. using XCharts.Runtime;
  2. namespace XCharts.Editor
  3. {
  4. [SerieEditor(typeof(Bar))]
  5. public class BarEditor : SerieEditor<Bar>
  6. {
  7. public override void OnCustomInspectorGUI()
  8. {
  9. PropertyField("m_ColorBy");
  10. PropertyField("m_Stack");
  11. if (serie.IsUseCoord<PolarCoord>())
  12. {
  13. PropertyField("m_PolarIndex");
  14. }
  15. else
  16. {
  17. PropertyField("m_XAxisIndex");
  18. PropertyField("m_YAxisIndex");
  19. }
  20. PropertyField("m_BarType");
  21. PropertyField("m_BarWidth");
  22. PropertyField("m_BarGap");
  23. PropertyField("m_BarMaxWidth");
  24. if (serie.IsUseCoord<PolarCoord>())
  25. {
  26. PropertyField("m_RoundCap");
  27. }
  28. else
  29. {
  30. PropertyField("m_BarPercentStack");
  31. if (serie.barType == BarType.Zebra)
  32. {
  33. PropertyField("m_BarZebraWidth");
  34. PropertyField("m_BarZebraGap");
  35. }
  36. }
  37. PropertyField("m_Clip");
  38. PropertyFiledMore(() =>
  39. {
  40. PropertyFieldLimitMin("m_MinShow", 0);
  41. PropertyFieldLimitMin("m_MaxShow", 0);
  42. PropertyFieldLimitMin("m_MaxCache", 0);
  43. PropertyField("m_Ignore");
  44. PropertyField("m_IgnoreValue");
  45. PropertyField("m_IgnoreLineBreak");
  46. PropertyField("m_ShowAsPositiveNumber");
  47. PropertyField("m_Large");
  48. PropertyField("m_LargeThreshold");
  49. PropertyField("m_PlaceHolder");
  50. });
  51. PropertyField("m_ItemStyle");
  52. PropertyField("m_Animation");
  53. }
  54. }
  55. }