/// <summary>
        /// Sets up the chart style.
        /// </summary>
        /// <param name="chartXy"></param>
        private void SetupChartStyle(ChartXy chartXy)
        {
            ChartXyVisualStyle cstyle = chartXy.ChartVisualStyle;

            cstyle.Background      = new Background(Color.White);
            cstyle.BorderThickness = new Thickness(1);
            cstyle.BorderColor     = new BorderColor(Color.Navy);

            cstyle.Padding = new DevComponents.DotNetBar.Charts.Style.Padding(6);

            ChartSeriesVisualStyle sstyle = chartXy.ChartSeriesVisualStyle;
            PointMarkerVisualStyle pstyle = sstyle.MarkerHighlightVisualStyle;

            pstyle.Background = new Background(Color.Yellow);
            pstyle.Type       = PointMarkerType.Ellipse;
            pstyle.Size       = new Size(15, 15);

            CrosshairVisualStyle chstyle = chartXy.ChartCrosshair.CrosshairVisualStyle;

            chstyle.ValueXLineStyle.LineColor   = Color.Navy;
            chstyle.ValueXLineStyle.LinePattern = LinePattern.Dot;

            chstyle.ValueYLineStyle.LineColor   = Color.Navy;
            chstyle.ValueYLineStyle.LinePattern = LinePattern.Dot;
        }
示例#2
0
        /// <summary>
        /// Sets up the chart style.
        /// </summary>
        /// <param name="chartXy"></param>
        private void SetupChartStyle(ChartXy chartXy)
        {
            ChartXyVisualStyle xystyle = chartXy.ChartVisualStyle;

            xystyle.Background      = new Background(Color.LightSteelBlue, Color.WhiteSmoke, BackFillType.ForwardDiagonalCenter);
            xystyle.BorderThickness = new Thickness(1);
            xystyle.BorderColor     = new BorderColor(Color.Black);
            xystyle.Padding         = new DevComponents.DotNetBar.Charts.Style.Padding(10);
        }
示例#3
0
        /// <summary>
        /// Sets up the chart style.
        /// </summary>
        /// <param name="chartXy"></param>
        private void SetupChartStyle(ChartXy chartXy)
        {
            ChartXyVisualStyle xystyle = chartXy.ChartVisualStyle;

            xystyle.Background      = new Background(Color.White);
            xystyle.BorderThickness = new Thickness(1);
            xystyle.BorderColor     = new BorderColor(Color.Black);

            xystyle.Padding = new DevComponents.DotNetBar.Charts.Style.Padding(4);
        }