property Chart.LinksWidth as Long
Specifies the width, in pixels, of the pen used to draw the links between the bars. It also defines the sensitivity, which determines the size of the hit-test zone for the link essentially, how large the area is around the link that can be clicked by the user.

TypeDescription
Long The LinksWidth property uses a 16-bit value where:
  • The least significant byte (LSB) determines the width of the links in pixels, as 1 (default) indicates a line width of 1 pixel, 2 (default) indicates a line width of 2 pixels, 3 (default) indicates a line width of 3 pixels, and so forth.
  • The most significant byte (MSB) specifies the size of the clickable area around those links in pixels, as explained: 0 (default) specifies a 2-pixel clickable area around each link, 1 specifies a 1-pixel clickable area, and 2 specifies no clickable area around each link. Any number greater than 2 increases the clickable area surrounding each link
By default, the LinksWidth property is 1 pixel. Use the ShowLinks property to hide all links in the chart area. Use the LinksColor property to change the color of the links between bars. Use the AddLink method to link two bars. Use the AddBar method to add a new bar to an item. Use the AddItem method to add a new item. Use the Link(exLinkWidth) property to change the width of the pen that draws a specific link. Use the LinkStyle property to specify the style of the pen that draws the link. The ShowLinksColor property specifies the color to display the links when link starts from selected bar, ends on selected bar, or when it is not related to any of selected bars. The ShowLinksWidth property specifies the width to show the links when the link starts from selected bar, ends on selected bar, or when it is not related to any of selected bars. The ShowLinksStyle property specifies the width to show the links when the link starts from selected bar, ends on selected bar, or when it is not related to any of selected bars. The LinkFromPoint property retrieves the link from the point.

Example Value: 0x01 (1)

Links Width: 1 pixel wide (from the LSB).
Clickable Area: 2 pixels (from the MSB).
Interpretation: This configuration allows users to create thin links that are easier to click on, as the clickable area extends beyond the link itself (the dotted rectangle specifies the clickable region)

Example Value: 0x201 (513)

Links Width: 1 pixel wide (from the LSB).
Clickable Area: 0 pixels (from the MSB).
Interpretation: This configuration allows users to create thin links, but there is no additional clickable area, meaning users must click precisely on the link itself (the dotted rectangle specifies the clickable region)

Example Value: 0x102 (257)

Links Width: 2 pixels wide.
Clickable Area: 1 pixel.
Interpretation: Here, the links are slightly thicker, and the clickable area is reduced, still ensuring some padding for user interaction (the dotted rectangle specifies the clickable region)

Example Value: 0x03 (3)

Links Width: 3 pixels wide.
Clickable Area: 0 pixels.
Interpretation: In this case, the links are visually wider and the clickable area extends beyond the link itself (the dotted rectangle specifies the clickable region)

Example Value: 0x203 (515)

Links Width: 3 pixels wide.
Clickable Area: 0 pixels.
Interpretation: In this case, the links are visually wider, but there is no additional clickable area, meaning users must click precisely on the link itself (the dotted rectangle specifies the clickable region)

This property provides flexibility in customizing link appearances and interactions. By adjusting both the width of the links and their associated clickable areas, developers can optimize user experience and accessibility, ensuring that links are both visually appealing and easy to interact with, based on the specific needs of their application.