//The MIT License(MIT) //Copyright(c) 2016 Alberto Rodriguez & LiveCharts Contributors //Permission is hereby granted, free of charge, to any person obtaining a copy //of this software and associated documentation files (the "Software"), to deal //in the Software without restriction, including without limitation the rights //to use, copy, modify, merge, publish, distribute, sublicense, and/or sell //copies of the Software, and to permit persons to whom the Software is //furnished to do so, subject to the following conditions: //The above copyright notice and this permission notice shall be included in all //copies or substantial portions of the Software. //THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR //IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, //FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE //AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER //LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, //OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE //SOFTWARE. using LiveCharts.Definitions.Charts; using LiveCharts.Definitions.Points; using LiveCharts.Definitions.Series; using LiveCharts.Dtos; namespace LiveCharts { /// /// Defines a point in the chart /// public class ChartPoint { #region Cartesian /// /// Gets the X point value /// public double X { get; internal set; } /// /// Gets the Y point value /// public double Y { get; internal set; } #endregion /// /// Gets the Gantt x start value /// public double XStart { get; set; } /// /// Gets the Gantt y start value /// public double YStart { get; set; } internal bool EvaluatesGantt { get; set; } #region Gantt #endregion #region Weighted /// /// Gets the Weight of the point /// public double Weight { get; internal set; } #endregion #region stacked /// /// Gets where the stacked value started from /// public double From { get; internal set; } /// /// Gets where the stacked value finishes /// public double To { get; internal set; } /// /// Get the total sum of the stacked elements /// public double Sum { get; internal set; } /// /// Get the participation of the point in the stacked elements /// public double Participation { get; internal set; } /// /// gets the stacked participation of a point /// public double StackedParticipation { get; internal set; } #endregion #region Financial /// /// Gets the Open value of the point /// public double Open { get; internal set; } /// /// Gets the High value of the point /// public double High { get; internal set; } /// /// Gets the Low value of the point /// public double Low { get; internal set; } /// /// Gets the Close value of the point /// public double Close { get; internal set; } #endregion #region Polar /// /// Gets the Radius of a point /// public double Radius { get; internal set; } /// /// Gets the angle of a point /// public double Angle { get; internal set; } #endregion #region Appearance /// /// Gets the Fill brush of this point, this property overrides series Fill property /// public object Fill { get; internal set; } /// /// Gets the Stroke brush of this point, this property overrides series Stroke property /// public object Stroke { get; internal set; } #endregion /// /// Gets the coordinate where the value is placed at chart /// public CorePoint ChartLocation { get; internal set; } /// /// Gets the index of this point in the chart /// public int Key { get; internal set; } /// /// Gets the object where the chart pulled the point /// public object Instance { get; internal set; } /// /// Gets or sets the view of this chart point /// public IChartPointView View { get; internal set; } /// /// Gets the series where the point belongs to /// public ISeriesView SeriesView { get; internal set; } /// /// Gets the chart view. /// /// /// The chart view. /// public IChartView ChartView { get { return SeriesView.Model.Chart.View; } } internal double Gci { get; set; } } }