PDA

View Full Version : [Gauge] Minimum not correct when built in code behind.



joris.moonen
May 10, 2012, 11:08 AM
Hi,

When I create a gauge in code behind then is the minimum set to the same value as the steps property or vice versa. Depending on which value I set last.
Here's a simplification of my code. In this specific example the minimum is set to 1. If I switch .Steps and .Minimum the steps property is set to 60.


Chart = New Chart With {.ID = "ChartId", .Flex = 1, .StyleSpec = "background:#fff", .Border = False, .Legend = True}
GaugeAxis = New GaugeAxis With {.Minimum = 20, .Maximum = 100, .Steps = 1, .Margin = -10}
Chart.Axes.Add(GaugeAxis)
GaugeSeries = New GaugeSeries With {.AngleField = "Field", .ColorSet = {"#82B525", "#ddd"}, .ShowInLegend = True}
Chart.Series.Add(GaugeSeries)
Chart.Store.Add(Store)
Chart.AddTo(Panel)

Is this a bug? Or is it done on purpose?