2D Chart for WinForms | ComponentOne
Charting Data / Plotting Functions
In This Topic
    Plotting Functions
    In This Topic

    C1Chart has a built-in engine for plotting functions. As there are various types of functions used for different applications. C1Chart provides the various types of functions needed to create many applications.

    There are two types of supported functions:

    1. One-variable explicit functions
      • One-variable explicit functions are written as y=f(x) (see the YFunction class).
      • A few examples include: rational, linear, polynomial, quadratic, logarithmic, and exponential functions.
      • Commonly used by scientists and engineers, these functions can be used in many different types of finance, forecasts, performance measurement applications, and so on.
    2. Parametric functions
      • The function is defined by a pair of equations, such as y=f1(t) and x=f2(t) where t is the variable/coordinate for functions f1 and f2.
      • Parametric functions are special types of function because the x and y coordinates are defined by individual functions of a separate variable.
      • They are used to represent various situations in mathematics and engineering, from heat transfer, fluid mechanics, electromagnetic theory, planetary motion and aspects of the theory of relativity, to name a few.
      • For more information about the parametric function (see the ParametricFunction class).

    In C1Chart, a code string can be used to calculate Y Functions and Parametric Functions.

    To use a code string to calculate Y Function and Parametric Function you must implement one of the following:

    C1Chart includes a FunctionBase Collection Editor that is accessible through C1Chart's properties at design time. The FunctionBase Collection Editor consists of a windows form which conveniently allows the users to edit/create their functions. Using the editor, the user can add/remove one or many multiple functions, select what type of function (either a Y function or Parametric function), specify the code type and code language, just to name a few. For more information on the FunctionBase Collection Editor, see FunctionBase Collection Editor.

    Note: For a complete sample that demonstrates how to create Y functions and Parametric functions, see the sample, FExplorer located on https://developer.mescius.com/forums/winforms-edition.

    See Also