I got few questions when trying the SPCChart. First, we found that SPCchart can display the sample data in tooltip when we click a plot on primary chart.But is it possible to customize the tooltip's contents? such as other production informations.
And second, can I customize the alarm message of a limit record or WE rule violate? for example: the default rule violated message looks like below:
2010-05-25 21:00:00 Primary Chart: WE Upper Limit Rule #4 Violation=0.000 Current Value=65.742
is it possible to customize above message with specified format or contents?
You cannot customize the data tooltips, for when you click on a data point. You can however add a note for a given sample interval. A notes tool tip is displayed when you click on the Notes field for a sample interval. See the example TimeVariableControlCharts.XBarRChart. Notes are added using one of the AddNewSampleRecord methods.
String notesstring = "This is a note"; this.ChartData.AddNewSampleRecord(timestamp, samples, notesstring);
You can change the alarm message string of a WE rule, but you cannot change the basic format. You can do the same with the SPC_LOWER_CONTROL_LIMIT_# limits.