Profile Picture

How to style Line Series chart

Posted By shweta jain 4 Years Ago
Author
Message
shweta jain
Posted 4 Years Ago
View Quick Profile
Junior Member

Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)

Group: Forum Members
Last Active: 3 Years Ago
Posts: 16, Visits: 192
Hello sir,

I want to create chart like this attached snapshot. How can I style line series  chart to create chart like this attached snapshot?



Nevron Support
This post has been flagged as an answer
Posted 4 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)

Group: Forum Members
Last Active: Last Year
Posts: 3,039, Visits: 3,746
Hi Sweta,

To achieve this appearance of line styles you need to modify the line color and width as well as marker appearance and shape - the following code shows how to achieve that:

 NChart chart = nChartControl1.Charts[0];

  NLineSeries line = new NLineSeries();

  line.MarkerStyle.Visible = true;
  line.MarkerStyle.PointShape = PointShape.Pyramid;
  line.BorderStyle.Color = Color.Red;
  line.MarkerStyle.FillStyle = new NColorFillStyle(Color.Red);
  line.MarkerStyle.BorderStyle.Width = new NLength(0);
  line.DataLabelStyle.Visible = false;

  line.Values.Add(10);
  line.Values.Add(30);
  line.Values.Add(20);

  chart.Series.Add(line);

We hope this helps - let us know if you meet any problems or have any questions.


Best Regards,
Nevron Support Team





Similar Topics


Reading This Topic