Set custom X-Axis category labels

@param customCategoryLabels Map containing category name -> label mappings
555376
public void setCustomCategoryLabels(Map<Object, Object> customCategoryLabels) {

    // get the first series
    AxesChartSeriesCategory axesChartSeries = getSeriesMap().values().iterator().next();
    // get the first categories, could be Number Date or String
    List<?> categories = (List<?>) axesChartSeries.getXData();

    Map<Double, Object> axisTickValueLabelMap = new LinkedHashMap<Double, Object>();
    for (Entry<Object, Object> entry : customCategoryLabels.entrySet()) {
      int index = categories.indexOf(entry.getKey());
      if (index == -1) {
        throw new IllegalArgumentException("Could not find category index for " + entry.getKey());
      }
      axisTickValueLabelMap.put((double) index, entry.getValue());
    }

    setXAxisLabelOverrideMap(axisTickValueLabelMap);
  }
944826
public void setLabels(List<String> labels) {
        if (labels.size() != this.labels.size()) {
            throw new IllegalArgumentException("You need to provide " + this.labels.size() + " labels.");
        }
        this.labels = labels;
        ((ArrayAdapter<String>) getAdapter()).notifyDataSetChanged();
    }
1024069
public void setJIRALabels(final String jiraLabels) {
        if (jiraLabels == null && this.jiraLabels == null) {
            return;
        } else if (jiraLabels == null) {
            removeChild(this.jiraLabels);
            this.jiraLabels = null;
        } else if (this.jiraLabels == null) {
            this.jiraLabels = new KeyValueNode<String>(CommonConstants.CS_JIRA_LABELS_TITLE, jiraLabels);
            appendChild(this.jiraLabels, false);
        } else {
            this.jiraLabels.setValue(jiraLabels);
        }
    }
1275585
protected void setDefaultCategory(String defaultCategory)
    {
        // If setDefaultCategory() method is invoked before macro initialization, this will make sure the macro will
        // have correct default category after initialization.
        this.defaultCategory = defaultCategory;

        // In case if setDefaultCategory() is invoked after macro initialization. Only works if the internal
        // MacroDescriptor is of type AbstractMacroDescriptor.
        if (getDescriptor() instanceof AbstractMacroDescriptor) {
            ((AbstractMacroDescriptor) getDescriptor()).setDefaultCategory(defaultCategory);
        }
    }
787343
public void setAdCategory(com.google.api.ads.admanager.axis.v201902.AdCategoryDto adCategory) {
        this.adCategory = adCategory;
    }
1317094
def set_xtick_labels(self, labels, style=None):
        
        self.ticks['xlabels'] = labels
        self.ticks['xlabel_style'] = style
786767
public void setCategories(int i, String v) { 
    if (GOMention_Type.featOkTst && ((GOMention_Type)jcasType).casFeat_categories == null)
      jcasType.jcas.throwFeatMissing("categories", "de.julielab.jules.types.GOMention");
    jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((GOMention_Type)jcasType).casFeatCode_categories), i);
    jcasType.ll_cas.ll_setStringArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((GOMention_Type)jcasType).casFeatCode_categories), i, v);}
411948
@SuppressWarnings("WeakerAccess")
  public UpdateInstanceRequest setAllLabels(@Nonnull Map<String, String> labels) {
    Preconditions.checkNotNull(labels, "labels can't be null");
    builder.getInstanceBuilder().clearLabels();
    builder.getInstanceBuilder().putAllLabels(labels);
    updateFieldMask(Instance.LABELS_FIELD_NUMBER);

    return this;
  }
284507
public void setLabels(List<Label> labels) {
        assertNotNull(labels);
        if (this.labels != null)
            this.labels.clear();
        for (Label l : labels) {
            addLabel(l);
        }
    }
49160
def set_axis_labels(self, x_var=None, y_var=None):
        """"""
        if x_var is not None:
            if x_var in self.data.coords:
                self._x_var = x_var
                self.set_xlabels(label_from_attrs(self.data[x_var]))
            else:
                # x_var is a string
                self.set_xlabels(x_var)

        if y_var is not None:
            if y_var in self.data.coords:
                self._y_var = y_var
                self.set_ylabels(label_from_attrs(self.data[y_var]))
            else:
                self.set_ylabels(y_var)
        return self
495962
@Override
	public void setLabeled(boolean labeled) {
		this.labeled = labeled;
		if (labeled) {
			eventBus.fireEvent(new LayerLabelShowEvent(this));
		} else {
			eventBus.fireEvent(new LayerLabelHideEvent(this));
		}
	}
87892
public void setLabels(java.util.Collection<Label> labels) {
        if (labels == null) {
            this.labels = null;
            return;
        }

        this.labels = new java.util.ArrayList<Label>(labels);
    }
551339
public void setXmlns(java.lang.String xmlns) {
        getStateHelper().put(PropertyKeys.xmlns, xmlns);
        handleAttribute("xmlns", xmlns);
    }
252471
public void setCategories(int i, Title v) { 
    if (Descriptor_Type.featOkTst && ((Descriptor_Type)jcasType).casFeat_categories == null)
      jcasType.jcas.throwFeatMissing("categories", "de.julielab.jules.types.wikipedia.Descriptor");
    jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((Descriptor_Type)jcasType).casFeatCode_categories), i);
    jcasType.ll_cas.ll_setRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((Descriptor_Type)jcasType).casFeatCode_categories), i, jcasType.ll_cas.ll_getFSRef(v));}
892271
public FiltersBuilder withLabels(Map<String, String> labels) {
        withFilter("label", labelsMapToList(labels).toArray(new String[labels.size()]));
        return this;
    }
971157
public void setCustomAmiList(java.util.Collection<CustomAmi> customAmiList) {
        if (customAmiList == null) {
            this.customAmiList = null;
            return;
        }

        this.customAmiList = new com.amazonaws.internal.SdkInternalList<CustomAmi>(customAmiList);
    }
708989
public final void setSelectionList(Object[] keys, Object[] labels)
    {
        selectionListKeys = keys;
        selectionListLabelMessages = createLabels(getId(), labels);
        combobox.setModel(new DefaultComboBoxModel(selectionListLabelMessages));
        selectItem(getValue());
    }