# Plotting Functions

## Content



[C1Chart](/componentone/api/win/online-chart2d/dotnet-framework-api/C1.Win.C1Chart.4.8/C1.Win.C1Chart.C1Chart.html) 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](/componentone/api/win/online-chart2d/dotnet-framework-api/C1.Win.C1Chart.4.8/C1.Win.C1Chart.YFunction.html) 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](/componentone/api/win/online-chart2d/dotnet-framework-api/C1.Win.C1Chart.4.8/C1.Win.C1Chart.ParametricFunction.html) 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:

*   An interpretive string containing C# or VB source code
*   Events
*   A class which supports the C1.Win.C1Chart.ISimpleFunction interface

**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 Edito**r, see [FunctionBase Collection Editor](/componentone/docs/win/online-chart2d/designtimesupport/c1chartcollectionedi/functionbasecollecti).


> type=note
> **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](https://developer.mescius.com/forums/winforms-edition).

## See Also

[Using a Code String to Define a Function](/componentone/docs/win/online-chart2d/chartingdata/plottingfunctions/usingacodestringtode)

[Calculating the Value for Functions](/componentone/docs/win/online-chart2d/chartingdata/plottingfunctions/calculatingthevaluef)