Jump to content
Software FX Community

diplaying labels for linear gauges by code


Recommended Posts

hi I amtring to generate linear gauges by pure coding and set its values can anybody tell me how to set label values of its marker by code.I mean if I add a marker in horizontal guage I want to set its label values by code so that that values should appear on the browser

i give u example of my code

Public Sub displayguage(ByVal combinationclassobject As Combinationclass, ByVal minvalue As Integer, ByVal maxvalue As Integer) Dim Hguage As New ChartFX.WebForms.Gauge.HorizontalGauge

Hguage.Width = 900

Hguage.MainIndicator.Value = 100

Hguage.Scales(0).Min = minvalue

Hguage.Scales(0).Max = maxvalue

Dim m1 As New ChartFX.WebForms.Gauge.Marker

m1.Color = Drawing.Color.Red

m1.VerticalPosition = IndicatorVerticalPosition.BehindTickmarks


m1.Text = "SalesTyPharmacy"

m1.Value = combinationclassobject.salesTyPharmacyvalue

m1.Visible =



Dim m2 As New ChartFX.WebForms.Gauge.Marker

m2.Color = Drawing.Color.Green

m2.Text =


m2.Value = combinationclassobject.GrossprofitTyPharmacyvalue

m2.Visible =


m2.VerticalPosition = IndicatorVerticalPosition.BehindTickmarks


end sub

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...