I have take over some code froma nother developer and need some help formatting a gauge. I have a gauge that has red/yellow/green. I would like the gauge to be gradient from the red to the yellow. I have tried using the gradient fill, but it never looks right.
Here is what I have now.
Here is what I want:
Here is the definition:
BackColor="Transparent"
Width="195px" >
<DeploymentScenario FilePath="DesktopModules\Dentscape\GaugeImages" ImagePipeURL="" />
<Gauges>
<igGaugeProp:RadialGauge Bounds="0, 25, 0, 0" Square="False">
<dial endangle="380" innerextent="-12" startangle="160">
<BrushElements>
<igGaugeProp:BrushElementGroup><BrushElements>
<igGaugeProp:SimpleGradientBrushElement StartColor="DarkGray" EndColor="DimGray" RelativeBounds="0, 0, 100, 100" RelativeBoundsMeasure="Percent"></igGaugeProp:SimpleGradientBrushElement>
<igGaugeProp:SimpleGradientBrushElement StartColor="64, 64, 64" EndColor="LightGray" RelativeBounds="2, 2, 96, 96" RelativeBoundsMeasure="Percent"></igGaugeProp:SimpleGradientBrushElement>
<igGaugeProp:SimpleGradientBrushElement StartColor="White" EndColor="Black" RelativeBounds="3, 3, 94, 94" RelativeBoundsMeasure="Percent"></igGaugeProp:SimpleGradientBrushElement>
</BrushElements>
</igGaugeProp:BrushElementGroup>
<StrokeElement>
<igGaugeProp:RadialGradientBrushElement SurroundColor="237, 241, 245" CenterPoint="73, 52" FocusScales="0.92, 0.92"></igGaugeProp:RadialGradientBrushElement>
</StrokeElement>
</dial>
<overdial bounds="0, 0, 0, 70" boundsmeasure="Percent" cornerextent="0" innerextent="-26">
<StrokeElement Thickness="0"></StrokeElement>
</overdial>
<scales>
<igGaugeProp:RadialGaugeScale StartAngle="160" EndAngle="380">
<MajorTickmarks StartWidth="2" StartExtent="64" EndExtent="70">
<StrokeElement Color="DimGray">
<igGaugeProp:SolidFillBrushElement Color="Transparent"></igGaugeProp:SolidFillBrushElement>
</MajorTickmarks>
<MinorTickmarks StartWidth="2" Frequency="0.25" StartExtent="68" EndExtent="71">
</MinorTickmarks>
<Labels Orientation="Horizontal" SpanMaximum="20" Extent="82" Font="Franklin Gothic Medium, 20px">
<Shadow Depth="2">
<igGaugeProp:SolidFillBrushElement></igGaugeProp:SolidFillBrushElement>
</Shadow>
</Labels>
<Markers>
<igGaugeProp:RadialGaugeNeedle MidExtent="52" EndExtent="61" StartWidth="2" MidWidth="3" WidthMeasure="Percent" Value="40">
<Anchor Radius="14" RadiusMeasure="Percent" SpokeDepth="99">
<igGaugeProp:SimpleGradientBrushElement GradientStyle="BackwardDiagonal" StartColor="Silver" EndColor="White"></igGaugeProp:SimpleGradientBrushElement>
<StrokeElement Thickness="0" Color="64, 64, 64"></StrokeElement>
</Anchor>
<BackAnchor Radius="20" RadiusMeasure="Percent">
<igGaugeProp:SimpleGradientBrushElement GradientStyle="BackwardDiagonal" StartColor="DimGray" EndColor="White"></igGaugeProp:SimpleGradientBrushElement>
<StrokeElement Thickness="2">
<igGaugeProp:SolidFillBrushElement Color="DimGray"></igGaugeProp:SolidFillBrushElement>
</BackAnchor>
<igGaugeProp:SolidFillBrushElement Color="60, 60, 60"></igGaugeProp:SolidFillBrushElement>
<igGaugeProp:SimpleGradientBrushElement GradientStyle="BackwardDiagonal" StartColor="White" EndColor="White"></igGaugeProp:SimpleGradientBrushElement>
</igGaugeProp:RadialGaugeNeedle>
</Markers>
<Ranges>
<igGaugeProp:RadialGaugeRange InnerExtentStart="0" InnerExtentEnd="0" OuterExtent="94" StartValue="0" EndValue="33.3">
<igGaugeProp:SolidFillBrushElement Color="238, 0, 0"></igGaugeProp:SolidFillBrushElement>
<StrokeElement Thickness="0" Color="180, 180, 180"></StrokeElement>
</igGaugeProp:RadialGaugeRange>
<igGaugeProp:RadialGaugeRange InnerExtentStart="0" InnerExtentEnd="0" OuterExtent="94" StartValue="33.4" EndValue="66.6">
<igGaugeProp:SolidFillBrushElement Color="254, 212, 0"></igGaugeProp:SolidFillBrushElement>
<igGaugeProp:RadialGaugeRange InnerExtentStart="0" InnerExtentEnd="0" OuterExtent="94" StartValue="66.7" EndValue="100">
<igGaugeProp:SolidFillBrushElement Color="47, 141, 0"></igGaugeProp:SolidFillBrushElement>
<igGaugeProp:RadialGaugeRange InnerExtentStart="0" InnerExtentEnd="0" StartValue="0" EndValue="100">
<igGaugeProp:RadialGradientBrushElement CenterColor="150, 255, 255, 255" SurroundColor="Transparent" CenterPoint="90, 31"></igGaugeProp:RadialGradientBrushElement>
</Ranges>
<Axes>
<igGaugeProp:NumericAxis EndValue="100" TickmarkInterval="0"></igGaugeProp:NumericAxis>
</Axes>
</igGaugeProp:RadialGaugeScale>
<igGaugeProp:RadialGaugeScale StartAngle="180" EndAngle="360">
<MajorTickmarks>
<Labels SpanMaximum="20" Extent="70" Font="Arial, 18px, style=Bold, Italic">
<igGaugeProp:SolidFillBrushElement Color="White"></igGaugeProp:SolidFillBrushElement>
</scales>
<strokeelement thickness="0"></strokeelement>
</igGaugeProp:RadialGauge>
<igGaugeProp:SegmentedDigitalGauge Bounds="12, 25, 0, 0" CornerExtent="10" Digits="3"
BoundsMeasure="Pixels"
Margin="40, 62, 40, 26, Percent" Mode="FourteenSegment" Square="True" Text="93.4">
<unlitbrushelements>
</unlitbrushelements>
<fontbrushelements>
<igGaugeProp:SolidFillBrushElement Color="Black"></igGaugeProp:SolidFillBrushElement>
</fontbrushelements>
<igGaugeProp:SimpleGradientBrushElement GradientStyle="BackwardDiagonal" StartColor="White" EndColor="Gainsboro"></igGaugeProp:SimpleGradientBrushElement>
<igGaugeProp:SolidFillBrushElement Color="150, 150, 150"></igGaugeProp:SolidFillBrushElement>
</igGaugeProp:SegmentedDigitalGauge>
</igGauge:UltraGauge>
Hi FierceMuppet,
Is igGauge a third part component ??
how could have access to it... excuse me for such simple question.. new to gauge chart.
Thanks.
Tanya
igGauge refers to the Infragistics Gauge control. To have access to it, you need to download and install Infragistics NetAdvantage for Asp.Net.