/// <summary>
        /// Adds custom options to the point, such as color or properties.
        /// </summary>
        /// <param name="record">The record.</param>
        /// <param name="point">The point.</param>
        protected override void CustomizePoint(SessionActivityGroupKey key, DataPoint point)
        {
            if (key == null)
            {
                throw new ArgumentNullException("key");
            }

            if (point == null)
            {
                throw new ArgumentNullException("point");
            }

            string category   = key.ResultCategory;
            string updateType = key.Status;

            point.SetCustomProperty("Category", category);
            point.SetCustomProperty("UpdateType", updateType);

            switch (updateType)
            {
            case "Failed":
            case "Error":
                point.Color = ColorWheel.NextColor(ColorMoods.Failure, ColorMoods.Neutral);
                break;

            case "Passed":
                point.Color = ColorWheel.NextColor(ColorMoods.Success, ColorMoods.Neutral);
                break;

            default:
                point.Color = ColorWheel.NextColor(ColorMoods.Neutral);
                break;
            }
        }
Example #2
0
        /// <summary>
        /// Adds custom options to the series, such as color or properties.
        /// </summary>
        /// <param name="key">The key.</param>
        /// <param name="series">The series.</param>
        protected virtual void CustomizeSeries(SessionActivityGroupKey key, Series series)
        {
            if (key == null)
            {
                throw new ArgumentNullException("key");
            }

            if (series == null)
            {
                throw new ArgumentNullException("series");
            }

            string updateType = key.Status;

            switch (updateType)
            {
            case "Failed":
            case "Error":
                series.Color = ColorWheel.NextColor(ColorMoods.Failure, ColorMoods.Neutral);
                break;

            case "Passed":
                series.Color = ColorWheel.NextColor(ColorMoods.Success, ColorMoods.Neutral);
                break;

            default:
                series.Color = ColorWheel.NextColor(ColorMoods.Neutral);
                break;
            }
        }
Example #3
0
        /// <summary>
        /// Defines the Key to describe unique data points for this graph.
        /// </summary>
        /// <param name="key">The key.</param>
        /// <returns></returns>
        protected override string CreateKey(SessionActivityGroupKey key)
        {
            if (key == null)
            {
                throw new ArgumentNullException("key");
            }

            return($"{key.ActivityName} {key.Status.ToUpperInvariant()}");
        }
Example #4
0
        /// <summary>
        /// Defines the Key to describe unique data points for this graph.
        /// </summary>
        /// <param name="record">The record.</param>
        protected virtual string CreateKey(SessionActivityGroupKey key)
        {
            if (key == null)
            {
                throw new ArgumentNullException("groupKey");
            }

            return("BarGraphBase: " + key.Status);
        }
        protected override string CreateKey(SessionActivityGroupKey key)
        {
            if (key == null)
            {
                throw new ArgumentNullException("key");
            }

            if (string.IsNullOrEmpty(key.ResultCategory))
            {
                return(null);
            }

            return($"[{key.Status.ToUpperInvariant()}] {key.ResultCategory}");
        }
Example #6
0
        /// <summary>
        /// Adds custom options to the point, such as color or properties.
        /// </summary>
        /// <param name="record">The record.</param>
        /// <param name="point">The point.</param>
        protected override void CustomizePoint(SessionActivityGroupKey key, DataPoint point)
        {
            if (key == null)
            {
                throw new ArgumentNullException("key");
            }

            if (point == null)
            {
                throw new ArgumentNullException("point");
            }

            base.CustomizePoint(key, point);
            point.SetCustomProperty("Description", key.ActivityName);
        }
Example #7
0
 /// <summary>
 /// Adds custom options to the point, such as color or properties.
 /// </summary>
 /// <param name="record">The record.</param>
 /// <param name="point">The point.</param>
 protected virtual void CustomizePoint(SessionActivityGroupKey key, DataPoint point)
 {
     // Do nothing
 }