Super 2d/3d Graph Library

Enhance your .NET application adding nice charts within minutes! Save time and money!


Example 21: Enabling hot-spots and tooltips

 

Hot-spots may be enabled with HotSpotsEnabled property. If set to true, when mouse is moved over the chart, tooltips may appear.

Default tooltips are the value associated with an element of the chart. These tooltips may be customized with ToolTips property or set with SeriesFactory as shown in this sample code.

You may customize look and feel of tooltips with the following properties:

 

  • HotSpotBackColor -- backcolor for tooltip
  • HotSpotColor  -- text color
  • HotSpotShowCross  -- show a cross centered on the tooltip
  • HotSpotCrossLineStyle  -- pen style for the cross
  • HotSpotNumericFormat  -- numeric format is default tooltip value is a number
  • HotSpotDateTimeFormat  -- date format if default tooltip value is a date

Please, refer to reference guide for details about each property.


Steps to run this sample:

1. Create a new Windows application project (VB.NET)

2. Add Super 2d/3d Graph Library to the toolbox pallete and drag a chart to Form1.

3. Copy and paste de following code:


Form Code


Imports
Super2d3dGraphLibrary

Public Class Form1

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

   Dim sf As New SeriesFactory

   For serieIndex As Integer = 0 To 1
  
   If serieIndex > 0 Then
         sf.NewSerie()
  
   End If
      For itemIndex As Integer = 0 To 3
         sf.AddValue(Rnd() * 10)
            sf.AddToolTip("Tooltip sample Serie=" & serieIndex & ", Item=" & itemIndex & " Value=$$")
      Next
   Next

   With Super2D3dGraph1
   .LicenseeIdentifier = "STAND"
   .Style = STYLE2D3D.STYLE2D_BAR
   .Title = "ToolTips Sample"
   .ValuesLocationStyle = STYLECAPTIONLOCATION.STYLECAPTIONLOCATION_INSIDE
   End With

   sf.ApplyTo(Super2D3dGraph1)

End Sub

End Class


 

Result:


 

 

License & Purchase Info


Current version: 14

Super 2d/3d Graph Library is available as:
-Standard License (99€)
-Premium License (149€)
-Enterprise License (299€)

Click here for more details & purchase

Contact Info


Feel free to contact us
for questions related to any of our products or custom .Net development. We usually respond in the same labor day.

Software Siglo XXI

Main support service: support@softwaresigloxxi.com

Sales and other enquiries: contact@softwaresigloxxi.com