ChartAreaCircular.cs 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. // Licensed to the .NET Foundation under one or more agreements.
  2. // The .NET Foundation licenses this file to you under the MIT license.
  3. // See the LICENSE file in the project root for more information.
  4. //
  5. // Purpose: CircularChartAreaAxis is a helper class which is used
  6. // in circular chart areas for charts like Polar and
  7. // Radar.
  8. //
  9. using System.Drawing;
  10. namespace FastReport.DataVisualization.Charting
  11. {
  12. /// <summary>
  13. /// CircularChartAreaAxis class represents a single axis in the circular
  14. /// chart area chart like radar or polar. It contains axis angular
  15. /// position, size and title properties.
  16. /// </summary>
  17. internal class CircularChartAreaAxis
  18. {
  19. #region Fields
  20. /// <summary>
  21. /// Angle where axis is located.
  22. /// </summary>
  23. internal float AxisPosition = 0f;
  24. /// <summary>
  25. /// Axis title.
  26. /// </summary>
  27. internal string Title = string.Empty;
  28. /// <summary>
  29. /// Axis title color.
  30. /// </summary>
  31. internal Color TitleForeColor = Color.Empty;
  32. #endregion
  33. #region Constructors
  34. /// <summary>
  35. /// Constructor.
  36. /// </summary>
  37. public CircularChartAreaAxis()
  38. {
  39. }
  40. /// <summary>
  41. /// Constructor.
  42. /// </summary>
  43. internal CircularChartAreaAxis(float axisPosition)
  44. {
  45. this.AxisPosition = axisPosition;
  46. }
  47. #endregion
  48. }
  49. }