iChart Methods
You can use scripting methods to return information from an SAP Manufacturing Integration and Intelligence (SAP MII) chart.
The following table lists common methods to use with charts:
Method | Use |
| Gets a reference to the underlying chart display object (the iChartComponent class) |
| Updates the chart contents. The parameter indicates whether to re-read the underlying data. This method differs from the |
| Displays a printable HTML page with a GIF representation of the current chart. |
| Gets the current number of tags in the chart and legend. |
| Determines if one of the 32 pen slots is assigned to a tag. |
| Gets the pen number that is selected in the chart legend. |
| Selects a pen number in the chart legend. |
| Gets the description for the pen. |
| Gets the tag name (or virtual tag name) for the pen. |
| Gets the pen name that is selected in the chart legend. |
| Gets additional data bound to the pen (usually done with tag queries). |
| Returns a string value that represents the datalink value for the item at the input index in the value list. |
| Returns the last tag selected in the chart menu. |
| Returns the index of the last selected point in the chart. |
| Gets the number of data values associated with the pen. |
| Gets the underlying y-axis data value for the pen and data item. |
| Gets the underlying x-axis value for the pen and data item. |
| Gets the current time interval, in milliseconds, for the chart. |
| Zooms the chart to its full range limits. |
| Zooms the chart to the selected cursor range which is defined by dragging your mouse over the area. |
| Zooms the chart to a percentage of the currently visible range or chart width. The center of the chart remains the same. To zoom one dimension, enter 100 percent for the range you do not want to zoom. The range for both parameters is 0 to 1000. |
| Scrolls the chart to a percentage of the currently visible range or chart width. The minimum and maximum ranges and chart width remain the same. To scroll one dimension, use zero percent for the range you do not want to scroll. The range for both parameters is -100.0 to 100.0. |
| Return the zoom minimum and maximum ranges for each of the axes. The default values are zero (minimum) and 100 (maximum). |
| Sets the zoom minimum and maximum ranges for each of the axes. The default values are zero (minimum) and 100 (maximum). This can be used to programmatically zoom and externally pan the chart. |
| Returns the minimum range value for the current view of the pen index. |
| Returns the maximum range value for the current view of the pen index. |