DashStyles.Dot does not show
Posted: Thu May 07, 2009 3:29 pm
Using TeeChart.WPF: 3.5.3371.26406
DashStyles Solid & Dash looks ok, but the rest isn't that good and Dot doesn't show anything.
DashStyles Solid & Dash looks ok, but the rest isn't that good and Dot doesn't show anything.
Code: Select all
<Window x:Class="WPFDemo.Window7"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:WPF="clr-namespace:Steema.TeeChart.WPF;assembly=TeeChart.WPF"
Title="Window7" Width="800" Height="600">
<Grid>
<WPF:TChart Grid.Column="0" x:Name="Chart1" Margin="10" />
</Grid>
</Window>
Code: Select all
using System;
using System.Windows;
using System.Windows.Media;
using Line=Steema.TeeChart.WPF.Styles.Line;
namespace WPFDemo
{
/// <summary>
/// Interaction logic for Window7.xaml
/// </summary>
public partial class Window7 : Window
{
public Window7()
{
InitializeComponent();
var random = new Random(10);
Chart1.Header.Text = "My Title 1";
Chart1.Aspect.View3D = false;
var line = new Line();
line.ShowInLegend = false;
line.LinePen.Style = DashStyles.Dot;
line.LinePen.Width = 2.75;
line.Color = Colors.Blue;
for (int i = 0; i < 10; i++)
{
line.Add(i, random.NextDouble());
}
Chart1.Series.Add(line);
//Chart2.Header.Text = "My Title 2";
//var series = createPolarSeries();
//series.ShowInLegend = false;
//for (int i = 0; i < 36; i++)
//{
// series.Add(i*10, random.NextDouble());
//}
//addSeries(Chart2, series);
}
}
}