I am trying to control the field being used in a ClassBreaksRenderer...no luck so far
I tried to write a value to a variable and then set the FIELD: someVariable
As you see below I am hardcoding the field name...but I want this to be dynamic based on a value that I choose from a drop down....
On the event listener of the drop down I want to update the Field that is being referenced by the ClassBreaksRenderer....
Anyone have any thoughts or examples? Thank you in Advanced.
var rendererPolygon = new ClassBreaksRenderer({
type: "class-breaks",
// attribute of interest
field: "Field4"
});
// All features with magnitude between 0 - 4.0
rendererPolygon.addClassBreakInfo({
minValue: 0,
maxValue: 1,
symbol: {
type: "simple-fill",
color: [65,105,225,.5], // Light Blue
style: "solid",
outline: {
width: 0.1,
color: "gray"
}
}
});