ChartJS3Tools
Wisej.AI.Tools.ChartJS3Tools
Namespace: Wisej.AI.Tools
Assembly: Wisej.AI (3.5.0.0)
Represents a container for ChartJS3 tools, providing functionalities to manipulate and build charts.
public class ChartJS3Tools : ToolsContainer
This class is designed to work with ChartJS3 objects, allowing the AI to configure and build various types of charts.
Constructors
ChartJS3Tools(chart)

Initializes a new instance of the ChartJS3Tools class with the specified chart.
Throws:
ArgumentNullException Thrown when the provided chart is null.
Properties
Chart

ChartJS3: Gets or sets the ChartJS3 object associated with this tools container. (Default: null
)
Methods
build_chart(title, labels, dataSets)

Builds a chart with the specified title, labels, and datasets.
This method configures the chart's datasets and appearance based on the provided parameters.
get_dataset_schema(chartType)

Retrieves the dataset schema for the specified chart type.
Returns: Object. An object representing the dataset schema for the specified chart type.
GetDataSetSchema(chartType)

Retrieves the dataset schema for a given chart type.
Returns: Object. An object representing the dataset schema for the specified chart type.
TranslateColor(color)

Translates a color object into a Color instance.
Returns: Color. A Color instance representing the translated color.
TranslateColors(colors)

Translates an array of color objects into an array of Color instances.
Returns: Color[]. An array of Color instances representing the translated colors.
Implements
Represents a container for tools, providing access to a hub, adapter, and a collection of parameters.
Last updated