Пример #1
0
 /// <summary>Serves as the default hash function.</summary>
 /// <returns>A hash code for the current object.</returns>
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = FirstMarkerColor.GetHashCode();
         hashCode = (hashCode * 397) ^ HighMarkerColor.GetHashCode();
         hashCode = (hashCode * 397) ^ LastMarkerColor.GetHashCode();
         hashCode = (hashCode * 397) ^ LowMarkerColor.GetHashCode();
         hashCode = (hashCode * 397) ^ MarkersColor.GetHashCode();
         hashCode = (hashCode * 397) ^ NegativeColor.GetHashCode();
         hashCode = (hashCode * 397) ^ SeriesColor.GetHashCode();
         return(hashCode);
     }
 }
Пример #2
0
 /// <summary>Indicates whether the current object is equal to another object of the same type.</summary>
 /// <param name="other">An object to compare with this object.</param>
 /// <returns>true if the current object is equal to the <paramref name="other">other</paramref> parameter; otherwise, false.</returns>
 public bool Equals(XLSparklineStyle other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(FirstMarkerColor.Equals(other.FirstMarkerColor) &&
            HighMarkerColor.Equals(other.HighMarkerColor) &&
            LastMarkerColor.Equals(other.LastMarkerColor) &&
            LowMarkerColor.Equals(other.LowMarkerColor) &&
            MarkersColor.Equals(other.MarkersColor) &&
            NegativeColor.Equals(other.NegativeColor) &&
            SeriesColor.Equals(other.SeriesColor));
 }
Пример #3
0
 /// Displays data as a collection of points, each having the value of one variable determining the position on the horizontal axis and the value of the other variable determining the position on the vertical axis. QuantileArray for seriesY produces a box-and-whiskers plot.
 public static PlotInfo Markers(double[] seriesX, QuantileArray seriesY, MarkersColor color = null,
                                string colorPalette = null, MarkersSize size   = null, MarkersSizePalette sizePalette = null,
                                MarkersShape shape  = null, string borderColor = null, string displayName             = null, MarkersTitles titles = null) =>
 Plot.markers(MarkersX.NewValues(seriesX), MarkersY.NewUncertainValues(seriesY), Helpers.Opt(color), Helpers.Opt(colorPalette), Helpers.Opt(size), Helpers.Opt(sizePalette), Helpers.Opt(shape), Helpers.Opt(borderColor), Helpers.Opt(displayName), Helpers.Opt(titles));
Пример #4
0
 /// Displays data as a collection of points, each having the value of one variable determining the position on the horizontal axis and the value of the other variable determining the position on the vertical axis.
 public static PlotInfo Markers(double[] seriesX, double[] seriesY, MarkersColor color = null,
                                string colorPalette = null, MarkersSize size   = null, MarkersSizePalette sizePalette = null,
                                MarkersShape shape  = null, string borderColor = null, string displayName             = null, MarkersTitles titles = null) =>
 Plot.markers(seriesX, seriesY, Helpers.Opt(color), Helpers.Opt(colorPalette), Helpers.Opt(size), Helpers.Opt(sizePalette), Helpers.Opt(shape), Helpers.Opt(borderColor), Helpers.Opt(displayName), Helpers.Opt(titles));