Reverse Histogram cross at X Axis

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

1 Reply

MA Manohari Syncfusion Team 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



Loader.
Up arrow icon