예제 #1
0
        /// <summary>
        /// Customize styling options for the primary X and Y major grid lines
        /// </summary>
        public void Grid(
            bool?enable           = null,
            Color?color           = null,
            double?xSpacing       = null,
            double?ySpacing       = null,
            bool?enableHorizontal = null,
            bool?enableVertical   = null,
            Ticks.DateTimeUnit?xSpacingDateTimeUnit = null,
            Ticks.DateTimeUnit?ySpacingDateTimeUnit = null,
            float?lineWidth         = null,
            LineStyle?lineStyle     = null,
            bool?snapToNearestPixel = null)
        {
            XAxis.ConfigureMajorGrid(enable, color, lineWidth, lineStyle);
            YAxis.ConfigureMajorGrid(enable, color, lineWidth, lineStyle);

            XAxis.ConfigureTickLabelStyle(snapToNearestPixel: snapToNearestPixel);
            YAxis.ConfigureTickLabelStyle(snapToNearestPixel: snapToNearestPixel);

            XAxis.ConfigureMajorGrid(enable: enableVertical);
            YAxis.ConfigureMajorGrid(enable: enableHorizontal);

            XAxis.ConfigureTicks(manualSpacing: xSpacing);
            YAxis.ConfigureTicks(manualSpacing: ySpacing);
            XAxis.ConfigureTicks(manualSpacingDateTimeUnit: xSpacingDateTimeUnit);
            YAxis.ConfigureTicks(manualSpacingDateTimeUnit: ySpacingDateTimeUnit);
        }
예제 #2
0
 /// <summary>
 /// Manually define X axis tick positions and labels
 /// </summary>
 public void XTicks(double[] positions = null, string[] labels = null) =>
 XAxis.ConfigureTicks(definedPositions: positions, definedLabels: labels);