Пример #1
0
        void CreateData()
        {
            chart.Data.Children.Clear();

            for (int i = 0; i < 10; i++)
            {
                DataSeries ds = new DataSeries()
                {
                    ValuesSource = CreateRandomArray(5)
                };
//        ds.SymbolFill = brushes[i];

                BarColumnOptions.SetStackGroup(ds, i % 2);
                chart.Data.Children.Add(ds);
            }

            chart.Data.Children.Add(new DataSeries()
            {
                ChartType = ChartType.LineSymbols, ValuesSource = CreateRandomArray(5),
                ConnectionStrokeThickness = 5, ConnectionStroke = new SolidColorBrush(Colors.Orange)
            });
        }
Пример #2
0
        void CreateData()
        {
            _chart.Data.Children.Clear();

            for (int i = 0; i < 10; i++)
            {
                DataSeries ds = new DataSeries()
                {
                    ValuesSource = CreateRandomArray(5), Label = "series " + i
                };

                BarColumnOptions.SetStackGroup(ds, i % 2);
                _chart.Data.Children.Add(ds);
            }

            _chart.Data.Children.Add(new DataSeries()
            {
                ChartType    = ChartType.LineSymbols,
                ValuesSource = CreateRandomArray(5),
                ConnectionStrokeThickness = 5,
                Label = "series 10"
            });
        }