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. Image for the cookie policy date
close icon

Start drawing at xAxis

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


1 Reply

VK Vishnu Kumar Syncfusion Team 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.



Loader.
Live Chat Icon For mobile
Up arrow icon