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

Reverse Histogram cross at X Axis

Thread ID:

Created:

Updated:

Platform:

Replies:

74951 Jul 4,2008 12:37 PM UTC Jul 15,2008 03:59 AM UTC WinForms 1
loading
Tags: Chart
Administrator [Syncfusion]
Asked On July 4, 2008 12:37 PM UTC

Hi

(See Attached File Image )In the image folder there is 2 images image1 and image 2 what happens When User enter 10 the Graph will made according image2 .This fuctionality is Alresdy working in excel is this possible in Syncfusion.In Excel Format Axis->Scale->Category at X axis crosses at :10 Given by then the graph will made According to image 2



Images_439e5f6e.zip

Manohari [Syncfusion]
Replied On July 15, 2008 03:59 AM UTC

Hi Navtej,

We regret very much for the delayed response and Thanks for the screenshot.

It is possible to move the Primary X axis to the Specified Y axis value as given in the screenshot using the chartControl1.PrimaryXAxis.Location property in the LayoutComplete event as follows.

Sample Code:

void chartControl1_LayoutCompleted(object sender, EventArgs e)
{
chartControl1.PrimaryXAxis.LocationType = ChartAxisLocationType.Set;
chartControl1.PrimaryYAxis.Range = new MinMaxInfo(-100, 100, 20);
float RequiredAxisPosition = this.chartControl1.PrimaryYAxis.GetCoordinateFromValue(300); // Gets the location at Y
axis value 300.
chartControl1.PrimaryXAxis.Location = new PointF(chartControl1.PrimaryXAxis.Location.X, RequiredAxisPosition );
}

I have attached the sample illustrating the same in the below link.

http://websamples.syncfusion.com/samples/Chart.Windows/I74944/main.htm

Kindly let us know if this meets your requirements. Thanks for your patience.

Regards,
Manohari.R



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

;