Ticket T616023
Visible to All Users

How to initialize the scale range using the target value

created 7 years ago

Hi!
I add range scale this way… in gaugedashboarditem…
- but, the scale is calculated over "ACTUAL VALUE"…
- but I need over TARGET VALUE…

what I need change?
thanks!

Dim range1a As New ArcScaleRange
                            range1a.AppearanceRange.ContentBrush = New SolidBrushObject(cor1)
                            If percent <> "True" Then
                                range1a.StartValue = valor1
                                range1a.EndValue = valor2
                            Else
                                range1a.StartPercent = valor1 / 100
                                range1a.EndPercent = valor2 / 100
                            End If
                            range1a.Name = Trim(i)
                            i = i + 1
                            gauge.Scales(0).Ranges.AddRange(New DevExpress.XtraGauges.Core.Model.IRange() {range1a})

Show previous comments (5)

    I say "aspxdashboardviewer" !!!

    not " "aspxpivotgridview""

    thanks!!

      If solution is in aspx javascript…
      I already have this…

      for (var i = 0; i < gauges.length; i++) {
                                  var roundValue = (gauges[i].option("scale.endValue"));

      How I get this 3 informations… in this case:
        If Gauge.Markers.Count > 0 Then meta = Gauge.Markers(0).Value

      If Gauge.Needles.Count > 0 Then atual = Gauge.Needles(0).Value
                  If Gauge.Scales.Count > 0 Then max = Gauge.Scales(0).MaxValue

      DevExpress Support Team 7 years ago

        Hi Ario,

        From what I gather, you have completed the GaugeControl range initialization routine in a WinForms application.

        As for the Gauge layout customization in a Web application, use the client-side API to accomplish this task (see a similar approach described in the Web dashboard - change needle color or show different colored ranges in gauge ticket). In your example, the "roundValue" variable is initialized using the actual scale endValue property value.

        Unlike the GaugeControl for WinForms, Circular Gauge Indicator elements (markers, needles) are customized using the valueIndicator option. If you need further assistance, let me know.

        Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

        Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.