Profile Picture

How to create a baseline/target chart

Posted By Ivan Orozco 14 Years Ago
Author
Message
Ivan Orozco
Posted 14 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)

Group: Forum Members
Last Active: 14 Years Ago
Posts: 4, Visits: 1
Good day everyone.

Is there a way to create a baseline chart, like the attached image?

I tried it but I only managed to get a single "target" point instead of a complete line.

Thank you.

Iván.

Attachments
BaselineChart.JPG (53 views, 11.00 KB)
Nevron Support
Posted 14 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: Last Week
Posts: 3,054, Visits: 4,009

Hi Ivan,

Sure - you have to create a const line attached to the Y axis:

   NChart chart = nChartControl1.Charts[0];

   NBarSeries bar = new NBarSeries();
   bar.DataLabelStyle.Visible = false;
   bar.Values.Add(17);
   chart.Series.Add(bar);

   NAxisConstLine constLine = new NAxisConstLine();
   constLine.Value = 15;
   constLine.StrokeStyle.Width = new NLength(2);
   constLine.StrokeStyle.Color = Color.Red;
   constLine.SetShowAtWall(ChartWallType.Back, true);
   chart.Axis(StandardAxis.PrimaryY).ConstLines.Add(constLine);

Then you need to configure the legend in manual mode and it's done...



Best Regards,
Nevron Support Team



Ivan Orozco
Posted 14 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)

Group: Forum Members
Last Active: 14 Years Ago
Posts: 4, Visits: 1

This works very well.

Thanks a lot!

Iván.





Similar Topics


Reading This Topic