lbowen Posted August 20, 2009 Report Share Posted August 20, 2009 I am trying to generate a line chart with four series - two of which I want to be dashed lines. Looking at the documentation it states that I can achieve this by either setting the Line.Style attribute on the series to System.Drawing.Drawing2D.DashStyle.Dash or by setting the Line.Style attribute on the Point to System.Drawing.Drawing2D.DashStyle.Dash. However, neither changes the line at all. What am I missing? I am using ChartFX for VS 2005 Thanks in advance Luke Quote Link to comment Share on other sites More sharing options...
AndreG Posted August 21, 2009 Report Share Posted August 21, 2009 It seems to be working for me. Code and screenshot. chart1.Data.Series = 3; chart1.Data.Points = 10; Random r = new Random(); for (int i = 0; i < chart1.Data.Series; i++) { for (int j = 0; j < chart1.Data.Points; j++) { chart1.Data[i, j] = r.Next(100); } } chart1.Series[0].Line.Style = System.Drawing.Drawing2D.DashStyle.Dash; Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.