Bottom and Custom Vertical Axis Label Start Position
Re: Bottom and Custom Vertical Axis Label Start Position
Hi Christopher,
I have requirement to disable anti aliasing. I have tried below code.
WebChart1.Chart.Aspect.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.None;
However, it is not working in my case. Please assist.
Thanks in advance.
I have requirement to disable anti aliasing. I have tried below code.
WebChart1.Chart.Aspect.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.None;
However, it is not working in my case. Please assist.
Thanks in advance.
-
- Guru
- Posts: 1603
- Joined: Fri Nov 15, 2002 12:00 am
Re: Bottom and Custom Vertical Axis Label Start Position
Here is the code I am using with the latest version of TeeChart.dll:Priyanka wrote: I tried it but no luck.
and this is the result:
Best Regards,
Christopher Ireland / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Re: Bottom and Custom Vertical Axis Label Start Position
Thanks Christopher.
It removed extra borders. However, I need top and right border to only chart area as attached.
It removed extra borders. However, I need top and right border to only chart area as attached.
- Attachments
-
- Trend.png (203.47 KiB) Viewed 17363 times
-
- Guru
- Posts: 1603
- Joined: Fri Nov 15, 2002 12:00 am
Re: Bottom and Custom Vertical Axis Label Start Position
Hello,
This code: gives me this result, without the borders you mention:Priyanka wrote:However, I need top and right border to only chart area as attached.
Best Regards,
Christopher Ireland / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Re: Bottom and Custom Vertical Axis Label Start Position
Hi Christopher,
I think you got confused. I need top and bottom border to only chart area.
Thanks.
I think you got confused. I need top and bottom border to only chart area.
Thanks.
-
- Guru
- Posts: 1603
- Joined: Fri Nov 15, 2002 12:00 am
Re: Bottom and Custom Vertical Axis Label Start Position
You might like to try the different variations in this code yourself until you come across the combination that most adapts to your needs:
Code: Select all
private void InitializeChart()
{
WebChart1.Chart.Panel.Gradient.Visible = false;
WebChart1.Chart.Panel.Color = Color.White;
WebChart1.Chart.Panel.Bevel.Inner = Steema.TeeChart.Drawing.BevelStyles.None;
WebChart1.Chart.Panel.Bevel.Outer = Steema.TeeChart.Drawing.BevelStyles.None;
WebChart1.Chart.Aspect.View3D = false;
WebChart1.Chart.Series.Add(typeof(Line)).FillSampleValues();
//#1
//WebChart1.Chart.Walls.Visible = false;
//WebChart1.Chart.Axes.Visible = false;
//#2
//WebChart1.Chart.Walls.Back.Gradient.Visible = false;
//WebChart1.Chart.Walls.Back.Color = Color.White;
//WebChart1.Chart.Walls.Back.Pen.Color = Color.Red;
//WebChart1.Chart.Axes.Left.AxisPen.Visible = false;
//WebChart1.Chart.Axes.Bottom.AxisPen.Visible = false;
//#3
WebChart1.Chart.Walls.Visible = false;
WebChart1.Chart[0].VertAxis = VerticalAxis.Both;
WebChart1.Chart[0].HorizAxis = HorizontalAxis.Both;
WebChart1.Chart.Axes.Left.AxisPen.Visible = false;
WebChart1.Chart.Axes.Bottom.AxisPen.Visible = false;
WebChart1.Chart.Axes.Top.AxisPen.Color = Color.Yellow;
WebChart1.Chart.Axes.Top.Labels.Visible = false;
WebChart1.Chart.Axes.Right.AxisPen.Color = Color.Blue;
WebChart1.Chart.Axes.Right.Labels.Visible = false;
}
Best Regards,
Christopher Ireland / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Re: Bottom and Custom Vertical Axis Label Start Position
Thanks Christopher. I will try it.
Need your help to implement requirement of showing blank report. As per attached screenshot. We need to draw series for some date range and rest should be blank.
Need your help to implement requirement of showing blank report. As per attached screenshot. We need to draw series for some date range and rest should be blank.
- Attachments
-
- BlankChart.png (283.33 KiB) Viewed 17327 times
-
- Guru
- Posts: 1603
- Joined: Fri Nov 15, 2002 12:00 am
Re: Bottom and Custom Vertical Axis Label Start Position
Can you not simply set the bottom Axis's SetMinMax to a relevant value? Or is the situation more complex than this? If so, how?Priyanka wrote:Need your help to implement requirement of showing blank report. As per attached screenshot. We need to draw series for some date range and rest should be blank.
Best Regards,
Christopher Ireland / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Re: Bottom and Custom Vertical Axis Label Start Position
Hi Christopher,
SetMinMax function doesn't work. Below is the code I am using. However, it is not setting minimum to 0.2 and maximum to 200.
WebChart1.Chart[0].CustomVertAxis.Automatic = false;
WebChart1.Chart[0].CustomVertAxis.SetMinMax(0.2, 200);
WebChart1.Chart[0].CustomVertAxis.Labels.ValueFormat = "##0.##;{##0.##}";
Value format is also set. Not sure why the SetMinMax function is not working.
Need urgent help. Thanks.
SetMinMax function doesn't work. Below is the code I am using. However, it is not setting minimum to 0.2 and maximum to 200.
WebChart1.Chart[0].CustomVertAxis.Automatic = false;
WebChart1.Chart[0].CustomVertAxis.SetMinMax(0.2, 200);
WebChart1.Chart[0].CustomVertAxis.Labels.ValueFormat = "##0.##;{##0.##}";
Value format is also set. Not sure why the SetMinMax function is not working.
Need urgent help. Thanks.
-
- Guru
- Posts: 1603
- Joined: Fri Nov 15, 2002 12:00 am
Re: Bottom and Custom Vertical Axis Label Start Position
Hello!
This code:
gives me the following (depending on the random values of FillSampleValues, of course):
This code:
Code: Select all
protected void Page_Load(object sender, EventArgs e)
{
Chart chart = WebChart1.Chart;
chart.Aspect.View3D = false;
chart.Series.Add(typeof(Line)).FillSampleValues();
chart.Series.Add(typeof(Line)).FillSampleValues();
chart.Panel.MarginLeft = 30;
Axis axis = chart.Axes.Custom.Add();
axis.Horizontal = false;
axis.RelativePosition = -40;
axis.PositionUnits = PositionUnits.Percent;
axis.SetMinMax(200, 300);
chart[1].CustomVertAxis = axis;
}
Best Regards,
Christopher Ireland / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Re: Bottom and Custom Vertical Axis Label Start Position
Hi Christopher,
Please taka a look in the attached code.
Appreciate quick help.
Please taka a look in the attached code.
Appreciate quick help.
- Attachments
-
- SetMinMax.zip
- (63.83 KiB) Downloaded 567 times
Re: Bottom and Custom Vertical Axis Label Start Position
Hi Christopher,
Any updates on the issue?
Any updates on the issue?
-
- Guru
- Posts: 1603
- Joined: Fri Nov 15, 2002 12:00 am
Re: Bottom and Custom Vertical Axis Label Start Position
This is the result of running the code you sent:Priyanka wrote:Hi Christopher,
Any updates on the issue?
I'm afraid to say that I'm not entirely sure what the issue is you refer to. Could you please be more specific?
Best Regards,
Christopher Ireland / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Re: Bottom and Custom Vertical Axis Label Start Position
Hi Christopher,
Attached is the output of the code shared by me. Not sure why the below code is not working in case of custom vertical axis
WebChart1.Chart[0].CustomVertAxis.Automatic = false;
WebChart1.Chart[0].CustomVertAxis.SetMinMax(0.3, maxvalue);
Also, need inputs on setting chart resolution and exporting chart in binary format.
Appreciate your help.
Attached is the output of the code shared by me. Not sure why the below code is not working in case of custom vertical axis
WebChart1.Chart[0].CustomVertAxis.Automatic = false;
WebChart1.Chart[0].CustomVertAxis.SetMinMax(0.3, maxvalue);
Also, need inputs on setting chart resolution and exporting chart in binary format.
Appreciate your help.
- Attachments
-
- TrendMinMax.png (172.92 KiB) Viewed 17261 times
-
- Guru
- Posts: 1603
- Joined: Fri Nov 15, 2002 12:00 am
Re: Bottom and Custom Vertical Axis Label Start Position
It is working here. This code:Priyanka wrote:Hi Christopher,
Attached is the output of the code shared by me. Not sure why the below code is not working in case of custom vertical axis
WebChart1.Chart[0].CustomVertAxis.Automatic = false;
WebChart1.Chart[0].CustomVertAxis.SetMinMax(0.3, maxvalue);
Code: Select all
WebChart1.Chart[0].CustomVertAxis.Automatic = false;
WebChart1.Chart[0].CustomVertAxis.SetMinMax(maxvalue - (maxvalue / 10), maxvalue);
What help do you need, exactly?Priyanka wrote: Also, need inputs on setting chart resolution and exporting chart in binary format.
Best Regards,
Christopher Ireland / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |