To obtain complete control of the Yfunction calculation, a class inheriting from ISimpleFunction can be implemented and instantiated. After the CustomFunction property is set to an instance of such a class object, the chart will plot the user-defined YFunction with the appropriate styles and legend entry.