Greetings,
I've been working using different IntervalMethods to change how a dataset is displayed. I've created a comboBox with EqualInterval, Geometrical, NaturalBeaks, Quantile, and StandardDeviation listed. The user selects the method and clicks a button to symbolize.
The application seems to work... somewhat. However, if the user selects EqualInterval, Geometrical, NaturalBeaks, or StandardDeviation the breaks are all exactly the same. The only IntervalMethod that has different breaks is Quantile. Are there EditorSettings that must be set dependent upon what IntervalMethod is applied?
I'm using the following code:
I've been working using different IntervalMethods to change how a dataset is displayed. I've created a comboBox with EqualInterval, Geometrical, NaturalBeaks, Quantile, and StandardDeviation listed. The user selects the method and clicks a button to symbolize.
The application seems to work... somewhat. However, if the user selects EqualInterval, Geometrical, NaturalBeaks, or StandardDeviation the breaks are all exactly the same. The only IntervalMethod that has different breaks is Quantile. Are there EditorSettings that must be set dependent upon what IntervalMethod is applied?
I'm using the following code:
var classification = getClassification();
System.Diagnostics.Debug.WriteLine("classification: " + classification);
myScheme.EditorSettings.IntervalMethod = classification;
myScheme.EditorSettings.NumBreaks = Convert.ToInt32(npClassCount.Value);
myScheme.EditorSettings.StartColor = Color.LightBlue;
myScheme.EditorSettings.EndColor = Color.DarkBlue;
myScheme.EditorSettings.IntervalRoundingDigits = 5;
myScheme.EditorSettings.FieldName = "POP2010";
myScheme.CreateCategories(fLayer.DataSet.DataTable);
fLayer.Symbology = myScheme;