Quinn-Curtis Forums
Quinn-Curtis Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Tools for Microsoft .Net & .Net Compact Framework
 SPC Control Chart Tools for .Net
 Changing Y Axis Title
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

swbo101

14 Posts

Posted - 11 Feb 2011 :  16:28:33  Show Profile  Reply with Quote
I know that the AxisTitle class is used. but do you have any examples on how to implement to change that axis title?

Thanks

swbo101

14 Posts

Posted - 11 Feb 2011 :  17:01:19  Show Profile  Reply with Quote
Actually I found how to implement, but I am using a Mean Range control chart and the word "MEAN" is showing up next to the Y axis along with my new title. Can I remove that? how?

Thanks
Go to Top of Page

quinncurtis

1164 Posts

Posted - 11 Feb 2011 :  19:23:11  Show Profile  Reply with Quote
There a different options depending on what you actually want.

Describe what you did to display another y-axis title.

Since the chart values are the Mean, what string are you displaying instead?

The word MEAN also appears as the row header in the table display of mean values. Do you display this? Do you want to change that also?

Go to Top of Page

swbo101

14 Posts

Posted - 14 Feb 2011 :  10:34:04  Show Profile  Reply with Quote
To change the description on the Y Axis I did the following:

Axis y = this.PrimaryChart.YAxis1;
Font axisTitleFont = new Font("SansSerif", 12);
AxisTitle Ytitle = new AxisTitle(y, axisTitleFont, "Water");

Then I called

this.RebuildChartUsingCurrentData();
this.AddChartObject(Ytitle);

at the end.

The chart I'm displaying is the following:

int charttype = SPCControlChartData.MEAN_RANGE_CHART;

I don't want "MEAN" displayed anywhere and want to control the naming of the chart and Axis'.

I am not displaying the chart data table on top or any of the histograms, just this control chart. I was also able add the verbiage of "Water" on top of the graph by user this method..

ChartTitle FullTitle = new ChartTitle();
FullTitle.SetTextString("WATER");

Thanks!!
Go to Top of Page

quinncurtis

1164 Posts

Posted - 14 Feb 2011 :  10:58:26  Show Profile  Reply with Quote
What you did will probably be erased the first time you update the data of the chart, or scroll using the scrollbar.

Get rid of what you did and set the static property SPCControlChartData.DefaultMeanString with your string, BEFORE you call the InitSPCTimeVariableControlChart method.

SPCControlChartData.DefaultMeanString = "XYZ";
// Initialize the SPCTimeVariableControlChart
this.InitSPCTimeVariableControlChart(charttype,
numsamplespersubgroup, numdatapointsinview, timeincrementminutes);


If you aren't using a table, use the the UseNoTable method.

this.UseNoTable(true, true, true, "X-Bar R Chart with No Table");

See the TimeVariableControlCharts.XBarRNoTable example. You can specify the chart title using that method.
Go to Top of Page

swbo101

14 Posts

Posted - 14 Feb 2011 :  11:26:23  Show Profile  Reply with Quote
Worked great. Just wondering what those classes that I orginally use would be used for then? Without giving an actual code example, in what situations would they be applicable to?

Thanks
Go to Top of Page

quinncurtis

1164 Posts

Posted - 14 Feb 2011 :  11:33:58  Show Profile  Reply with Quote
They are some of the core QCChart2D routines. The QCSPCChart package is built on top of the QCChart2D software. You can build a wide variety of charts, not just SPC Charts, just using QCChart2D. See the QCChart2D manual.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Quinn-Curtis Forums © 2000-07 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07