![]() | Type | Description | ||
| X as Long | A Long expression that specifies the location of the chart's histogram ( client coordinate ) | |||
| Y as Long | A Long expression that specifies the location of the chart's histogram ( client coordinate ) | |||
| Width as Long | A Long expression that specifies the width of the chart's histogram. | |||
| Height as Long | A Long expression that specifies the height of the chart's histogram. |
For instance, you can use the Controls property of the /NET assembly to add new components inside the control, and using the HistogramBoundsChanged event you can control it so they will be displayed in the left part of the chart's histogram as show in the following screen shot:

The "Allocation/Overload, Color" panel is being added as a Panel component that belongs to the form, as shown in the following screen shot:

You can define your legend for the histogram by doing the following:
Add a Panel component to the form, in case you require multiple components being displayed in the chart's histogram.
Add all components to the panel, that you might want to use in the histogram.
Call the exgantt1.Controls.Add method to add the newly panel/ component as being a child of the control.
Handle the HistogramBoundsChanged event so you update the location and the size of the panel, with the new coordinates as follows:
private void exg2antt1_HistogramBoundsChanged(object sender, Rectangle Bounds)
{
panel1.Bounds = Bounds;
}