通过函数参数更改图表y轴

时间:2018-01-16 12:31:09

标签: r plotly r-plotly

我正在尝试根据某些条件更改函数中编码的绘图散点图中的y轴参数。但是,Plotly将其作为字符串而不是列名。

public void autoSearch(View view) {
        //auto search complete for comunity list
        this.context = context;

        String array1[] = firebaseComunityListArr.toArray(new String[firebaseComunityListArr.size()]);
        AutoCompleteTextView txt = (AutoCompleteTextView) view.findViewById(R.id.myAutoComplete);
        txt.addTextChangedListener((TextWatcher) getView());
        txt.setAdapter(new ArrayAdapter<String>(getContext(), android.R.layout.simple_dropdown_item_1line, array1));
        txt.setTextColor(Color.GREEN);
        txt.setAdapter(adapter);
    }


   @Override
    public void beforeTextChanged(CharSequence charSequence, int i, int i1, int i2) {

    }

    @Override
    public void onTextChanged(CharSequence charSequence, int i, int i1, int i2) {

    }

    @Override
    public void afterTextChanged(Editable editable) {

    }

0 个答案:

没有答案
相关问题