private Classifier createClassifier(QueryTable queryTable, IServerContext mapContext, IFeatureLayer featureLayer) { IDisplayTable dt = (IDisplayTable)featureLayer; ITable joinTable = dt.DisplayTable; int breaks = Convert.ToInt32(this.DropDownList2.SelectedValue); String classifierType = this.DropDownList3.SelectedValue; queryTable.calcFrequencies(); //queryTable.calcFrequencies(joinTable); double[] values = queryTable.getValues(); int[] counts = queryTable.getCounts(); Classifier classifier = new Classifier(mapContext, values, counts, classifierType, breaks); return classifier; }