ChartJS3Tools
Wisej.AI.Tools.ChartJS3Tools
Last updated
Wisej.AI.Tools.ChartJS3Tools
Last updated
Namespace: Wisej.AI.Tools
Assembly: Wisej.AI (3.5.0.0)
Represents a container for ChartJS3 tools, providing functionalities to manipulate and build charts.
This class is designed to work with ChartJS3 objects, allowing the AI to configure and build various types of charts.
Initializes a new instance of the class with the specified chart.
chart
The ChartJS3 object to be associated with this tools container.
Throws:
Thrown when the provided chart is null.
Builds a chart with the specified title, labels, and datasets.
title
The title of the chart.
labels
The labels for the chart's data points.
dataSets
The datasets to be included in the chart.
This method configures the chart's datasets and appearance based on the provided parameters.
Retrieves the dataset schema for the specified chart type.
chartType
The type of chart for which to get the dataset schema.
Retrieves the dataset schema for a given chart type.
chartType
The type of chart for which to retrieve the dataset schema.
color
The color object to translate.
colors
The array of color objects to translate.
Represents a container for tools, providing access to a hub, adapter, and a collection of parameters.
: Gets or sets the ChartJS3 object associated with this tools container. (Default: null
)
Returns: . An object representing the dataset schema for the specified chart type.
Returns: . An object representing the dataset schema for the specified chart type.
Translates a color object into a instance.
Returns: . A instance representing the translated color.
Translates an array of color objects into an array of instances.
Returns: . An array of instances representing the translated colors.