Profile Picture

How to style Line Series chart

Posted By shweta jain Last Year
Author
Message
shweta jain
Posted Last Year
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: Last Year
Posts: 14, Visits: 185
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 Last Year
View Quick Profile
Supreme Being

Supreme Being (4,063 reputation)Supreme Being (4,063 reputation)Supreme Being (4,063 reputation)Supreme Being (4,063 reputation)Supreme Being (4,063 reputation)Supreme Being (4,063 reputation)Supreme Being (4,063 reputation)Supreme Being (4,063 reputation)Supreme Being (4,063 reputation)

Group: Forum Members
Last Active: 59 minutes ago
Posts: 2,945, Visits: 3,306
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