Jump to content
Software FX Community

Dash Line not rendering


lbowen
 Share

Recommended Posts

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

 

 

 

Link to comment
Share on other sites

 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;

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...