Is there a way to set a Constant Line value for a Chart at runtime?
Thanks!
Chart Constant Lines
Chart Constant Lines
Hello,
Sorry, maybe we did not exactly understand your question. Could you explain your issue in more details?
Thank you.
Sorry, maybe we did not exactly understand your question. Could you explain your issue in more details?
Thank you.
Chart Constant Lines
For a Chart component in the Stimulsoft designer -> Properties -> 3. Chart Additional -> Constant Lines you can add values for lines in the chart to show constant values. Is there a way to add constant lines values at the time of report generation? Or from C# code?
Chart Constant Lines
Hello,
You can use the following code:
Thank you.
You can use the following code:
Code: Select all
StiReport report = new StiReport();
report.Load();
StiChart chart1 = report.GetComponents()["Chart1"] as StiChart;
StiConstantLines lines1 = new Stimulsoft.Report.Chart.StiConstantLines();
lines1.AxisValue = "0.3";
lines1.LineColor = System.Drawing.Color.Black;
lines1.Text = "Constant Line 1";
lines1.Font = new System.Drawing.Font("Arial", 7F);
lines1.Chart = chart1;
chart1.ConstantLines.Add(lines1);
report.Show();
Chart Constant Lines
Awesome! Thanks, Aleksey.
Chart Constant Lines
We are always glad to help you.
Thank you.
Thank you.