CHART

From iMath
Revision as of 19:22, 8 July 2017 by Jrheinlaender (talk | contribs) (Created page with "{{Keyword|1= <code>CHART ( string , expression , expression , expression , expression , integer , string )</code> <code>CHART ( string , sym...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Syntax

CHART ( string , expression , expression , expression , expression , integer , string )

CHART ( string , symbol = expression , expression , equation , expression , integer , string )

CHART ( string , symbol = expression , expression , expression , expression , integer , string )

Implemented in iMath since version 2.2.0 or earlier.

Explanation

Update or create data in a chart with the Office object name given in the first string (in other words, the chart must already exist in the document).

  • X values: The first expression must be a vector of values or an relation assigning a vector of values to a variable.
  • Units of X values: If the x-values contain units, they must be given in the second expression. In other words, after dividing the x-values by the units, a vector of numbers must result.
  • Y values: The third expression must be either a vector of values or an equation or an equation label. If you specify an equation or a label, the vector of x-values will be substituted into the equation to produce a vector of y-values. This will only work if you specified the x-values as a relation!
  • Units of Y values: If the y-values contain units, they must be given in the fourth expression.
  • Chart series: The fifth argument is the index of the chart series. It is assigned by iMath and should not be changed.
  • Series name for the legend: The last argument gives the series name for the legend, because specifying it through the Office chart dialog does not work properly.

Please always use the iMath menu when creating charts or adding a series to a chart. Otherwise, it is not guaranteed that the communication between iMath and the Office chart object works properly.

Example

See also