Exemplo n.º 1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="TornadoBarSeries"/> class.
        /// </summary>
        public TornadoBarSeries()
        {
            this.Items = new List <TornadoBarItem>();

            this.MaximumFillColor = OxyColor.FromRGB(216, 82, 85);
            this.MinimumFillColor = OxyColor.FromRGB(84, 138, 209);

            this.StrokeColor     = OxyColors.Black;
            this.StrokeThickness = 1;
            this.BarWidth        = 1;

            this.TrackerFormatString = "{0}";
            this.LabelMargin         = 4;

            this.MinimumLabelFormatString = "{0}";
            this.MaximumLabelFormatString = "{0}";
        }
Exemplo n.º 2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="PlotModel" /> class.
        /// </summary>
        public PlotModel()
        {
            this.Axes        = new Collection <Axis>();
            this.Series      = new Collection <Series>();
            this.Annotations = new Collection <Annotation>();

            this.PlotType = PlotType.XY;

            this.PlotMargins           = new OxyThickness(60, 4, 4, 40);
            this.Padding               = new OxyThickness(8, 8, 16, 8);
            this.AutoAdjustPlotMargins = true;

            this.DefaultFont     = PrivateDefaultFont;
            this.DefaultFontSize = 12;

            this.TitleFont          = null;
            this.TitleFontSize      = 18;
            this.TitleFontWeight    = FontWeights.Bold;
            this.SubtitleFont       = null;
            this.SubtitleFontSize   = 14;
            this.SubtitleFontWeight = FontWeights.Normal;
            this.TitlePadding       = 6;

            this.TextColor               = OxyColors.Black;
            this.PlotAreaBorderColor     = OxyColors.Black;
            this.PlotAreaBorderThickness = 1;

            this.IsLegendVisible       = true;
            this.LegendTitleFont       = null;
            this.LegendTitleFontSize   = 12;
            this.LegendTitleFontWeight = FontWeights.Bold;
            this.LegendFont            = null;
            this.LegendFontSize        = 12;
            this.LegendFontWeight      = FontWeights.Normal;
            this.LegendSymbolLength    = 8;
            this.LegendSymbolMargin    = 4;
            this.LegendPadding         = 8;
            this.LegendColumnSpacing   = 8;
            this.LegendItemSpacing     = 24;
            this.LegendMargin          = 8;

            this.LegendBackground      = null;
            this.LegendBorder          = null;
            this.LegendBorderThickness = 1;

            this.LegendMaxWidth        = double.NaN;
            this.LegendPlacement       = LegendPlacement.Inside;
            this.LegendPosition        = LegendPosition.RightTop;
            this.LegendOrientation     = LegendOrientation.Vertical;
            this.LegendItemOrder       = LegendItemOrder.Normal;
            this.LegendItemAlignment   = HorizontalTextAlign.Left;
            this.LegendSymbolPlacement = LegendSymbolPlacement.Left;

            this.DefaultColors = new List <OxyColor>
            {
                OxyColor.FromRGB(0x4E, 0x9A, 0x06),
                OxyColor.FromRGB(0xC8, 0x8D, 0x00),
                OxyColor.FromRGB(0xCC, 0x00, 0x00),
                OxyColor.FromRGB(0x20, 0x4A, 0x87),
                OxyColors.Red,
                OxyColors.Orange,
                OxyColors.Yellow,
                OxyColors.Green,
                OxyColors.Blue,
                OxyColors.Indigo,
                OxyColors.Violet
            };

            this.AxisTierDistance = 4.0;
        }