We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Start drawing at xAxis

Thread ID:

Created:

Updated:

Platform:

Replies:

71163 Jan 18,2008 11:23 AM UTC Jan 24,2008 09:10 AM UTC WinForms 1
loading
Tags: Chart
Johnny
Asked On January 18, 2008 11:23 AM UTC

Dear Support,

How can I fix line chart to starting drawing at start of the XAxis and end at the end of XAxis point?

Is it possible?

Regards,
Jonnny


Vishnu Kumar [Syncfusion]
Replied On January 24, 2008 09:10 AM UTC

Hi Johnny,

I regret for the delayed response.

How can I fix line chart to starting drawing at start of the XAxis and end at the end of XAxis point?

You can draw the chat at start of the XAxis and end at the end of the XAxis point by setting the range of chart. Please refer the below code snippet which illustrates this:


[c#]
this.ChartWebControl1.PrimaryXAxis.RangeType = ChartAxisRangeType.Set;
this.ChartWebControl1.PrimaryXAxis.Range =new MinMaxInfo(0, 100, 20);

this.ChartWebControl1.PrimaryYAxis.RangeType = ChartAxisRangeType.Set;
this.ChartWebControl1.PrimaryYAxis.Range = new MinMaxInfo(0, 250, 50);


Please refer the sample in the below link which illustrates the above:

http://websamples.syncfusion.com//samples/Chart.Web/6.1.0.34/71163/main.htm

Please try running the above sample and let me know if this helps.

Regards,
Vishnu.



CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;