Class Chart3DTooltipInfo
Represents the tooltip information for a 3D data point in a SfChart3D component.
Inherited Members
Namespace: Syncfusion.Blazor.Chart3D
Assembly: Syncfusion.Blazor.dll
Syntax
public class Chart3DTooltipInfo : Chart3DDataPointInfo
Remarks
The Chart3DTooltipInfo class extends Chart3DDataPointInfo and contains additional metadata required to render tooltips in 3D charts, including content formatting, tooltip position, and visual customization details.
Instances of this class are internally created by the charting engine whenever the user hovers, taps, or selects a data point. You can access this class through tooltip-rendering events to customize the appearance or behavior of tooltips.
Typical uses include:
- Customizing displayed tooltip text or formatting.
- Accessing the underlying data point associated with the tooltip.
- Modifying tooltip styling such as background color or header content.
- Determining interaction coordinates for advanced UI rendering.
Performance Note: Tooltip creation is event-driven and can occur frequently during mouse movement. Avoid heavy computations inside tooltip-rendering callbacks, especially with large datasets.
Examples
Demonstrates creating an instance of Chart3DTooltipInfo and assigning custom values.
var tooltipInfo = new Chart3DTooltipInfo();
// Set custom values (example, assuming these properties exist in the actual implementation)
tooltipInfo.Text = "Sales: 250";
tooltipInfo.SeriesName = "Revenue";
tooltipInfo.XValue = "January";
tooltipInfo.YValue = 250;
Constructors
Chart3DTooltipInfo()
Initializes a new instance of the Chart3DTooltipInfo class.
Declaration
public Chart3DTooltipInfo()
Remarks
This constructor initializes a tooltip information container with default values. The properties inherited from Chart3DDataPointInfo are also initialized to their default state, and additional tooltip-specific fields may be set internally by the chart engine during rendering.
Tooltip objects are generally created by the charting framework and not by user code, but advanced customization scenarios may require manual instantiation.
Examples
The following example manually creates a Chart3DTooltipInfo instance.
var tooltip = new Chart3DTooltipInfo();
// Assign properties as needed