Quinn-Curtis Forums
Quinn-Curtis Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Tools for Microsoft .Net & .Net Compact Framework
 SPC Control Chart Tools for .Net
 Changing Y Axis Title

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List

* Forum Code is ON
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]


T O P I C    R E V I E W
swbo101 Posted - 11 Feb 2011 : 16:28:33
I know that the AxisTitle class is used. but do you have any examples on how to implement to change that axis title?

9   L A T E S T    R E P L I E S    (Newest First)
blazermaniac Posted - 16 Dec 2016 : 11:27:57
That example worked and so did the Batch Individual Range chart example.

I found out what's happening. The following line is executed after my change and is effectively overwriting my change.

this.ChartData.GetCalculatedValueRecord(0).ValueDescription = "Average";

So I'm assuming this is the method of setting the Y axis label regardless of chart type?


quinncurtis Posted - 16 Dec 2016 : 10:00:41
We cannot tell what the problem is based on the information provided. Add your line

SPCControlChartData.DefaultMeanString = "XYZ";

as the top line in the InitializeChart method of the TimeVariableControlCharts.XBarRChart.cs example and then run it. What are the results. I see the XYZ under TIME in the leftmost column.
blazermaniac Posted - 15 Dec 2016 : 17:25:38
QC, I have tried your suggestion and it's not working for me.

I first tried,
SPCControlChartData.DefaultSampleValueString = "test";

That didn't work so I also tried the following and that didn't work either:
SPCControlChartData.DefaultMeanString = "XYZ";
SPCControlChartData.DefaultRangeString = "my range";

I am making this assignment before the call to,
this.InitSPCBatchVariableControlChart(SPCControlChartData.INDIVIDUAL_RANGE_CHART, numsamplespersubgroup, ds.Tables[0].Rows.Count);

Please tell me what I'm doing wrong.

quinncurtis Posted - 14 Feb 2011 : 11:33:58
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.
swbo101 Posted - 14 Feb 2011 : 11:26:23
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?

quinncurtis Posted - 14 Feb 2011 : 10:58:26
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
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.
swbo101 Posted - 14 Feb 2011 : 10:34:04
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


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();

quinncurtis Posted - 11 Feb 2011 : 19:23:11
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?

swbo101 Posted - 11 Feb 2011 : 17:01:19
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?


Quinn-Curtis Forums © 2000-2018 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07