Quinn-Curtis Forums
Quinn-Curtis Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Tools for Microsoft .Net & .Net Compact Framework
 Real-Time Graphics Tools for .Net (VB and C#)

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
carlao Posted - 15 Mar 2005 : 23:38:19
In the examples set we have two examples: ScrollingGroupPlotUserControl and LinePlotScrollBar. I copied the AxisTitle snippet code from the second example and inserted into the first one. Then, when I run the first example, now with a title, the Y title is not showed. To have the Y or X title showed need I use examples like the second?

4   L A T E S T    R E P L I E S    (Newest First)
blazermaniac Posted - 12 Jan 2016 : 11:03:45
Thank you so much!
quinncurtis Posted - 12 Jan 2016 : 10:48:15
This should have been posted under the QCSPCChart forum topic.

You can't arbitrarily add chart objects to the SPC Charts. That is because they are set up as templates, and already contain all of the chart objects they use. If you add others, they will be descarded in the first display update. So get rid of this code in your example:

CartesianCoordinates cc = new CartesianCoordinates();
LinearAxis yAxis = new LinearAxis(cc, ChartObj.Y_AXIS);

The y-axis title for the primary chart is tied to the description of what calculation is used to calculate each new data point, the "MEAN" by default. You can change the description using the following code:

this.ChartData.GetCalculatedValueRecord(0).ValueDescription = "Max Cell";

That will change the y-axis title.
blazermaniac Posted - 11 Jan 2016 : 19:09:37
I am unable to change the Y Axis Title Text. Following is an example of my code:

protected override void initChartType(DataSet ds, int numsamplespersubgroup)
int charttype = SPCControlChartData.INDIVIDUAL_RANGE_CHART;
numsamplespersubgroup = 1;
if (m_csp.m_NumDataPointsInView != 0)
numdatapointsinview = m_csp.m_NumDataPointsInView;
this.SecondaryChart.DisplayChart = true;
this.GraphStartPosX = 0.1;
if (clsGeneral.Instance().gReportType != frmReport.eReportType.None)
numsamplespersubgroup, ds.Tables[0].Rows.Count);
if (Properties.Settings.Default.Chart_ShowAllPoints)
numdatapointsinview = ds.Tables[0].Rows.Count;
numsamplespersubgroup, numdatapointsinview);
CartesianCoordinates cc = new CartesianCoordinates();
LinearAxis yAxis = new LinearAxis(cc, ChartObj.Y_AXIS);
AxisTitle yaxistitle = new AxisTitle(yAxis, this.Font, "Max Cell");

quinncurtis Posted - 16 Mar 2005 : 09:07:25
We don't see a problem. We added the axis title code below to the ScrollGroupPlotUserControl1 and the axes titles appeared as expected.

NumericAxisLabels yAxisLab2 = new NumericAxisLabels(yaxis2);

// ADD starting here

Font titleFont = new Font("Microsoft Sans Serif", 10, FontStyle.Bold);
AxisTitle yaxistitle = new AxisTitle( yaxis1, titleFont, "Magnitude");

AxisTitle xaxistitle = new AxisTitle( xaxis, titleFont, "Time");

// End of addition

scrollFrame1 = new RTScrollFrame(this, stockOpen1, pTransform1, ChartObj.RT_FIXEDEXTENT_MOVINGSTART_AUTOSCROLL);

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