chart.setOnChartValueSelectedListener(this); chart.getDescription().setEnabled(false);
mSeekBarX.setOnSeekBarChangeListener(this); mSeekBarY.setOnSeekBarChangeListener(this); mChart.setOnChartValueSelectedListener(this);
@Override protected void initEvents() { mChart.setOnChartValueSelectedListener(this);
chart.setOnChartValueSelectedListener(new OnChartValueSelectedListener() { @Override public void onValueSelected(Entry e, Highlight h) {
chart.setOnChartValueSelectedListener(new OnChartValueSelectedListener() { @Override public void onValueSelected(Entry e, Highlight h) {
chart.setOnChartValueSelectedListener(new OnChartValueSelectedListener() { @Override public void onValueSelected(Entry e, Highlight h) {
barChart.setOnChartValueSelectedListener(new OnChartValueSelectedListener() { @Override public void onValueSelected(Entry e, Highlight h) {
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_apriori_result); appRoot = (View) findViewById(R.id.app_root); toolbar = (Toolbar) findViewById(R.id.toolbar); barChart = (BarChart) findViewById(R.id.apriori_data); setSupportActionBar(toolbar); // add back arrow to toolbar if (getSupportActionBar() != null) { getSupportActionBar().setDisplayHomeAsUpEnabled(true); getSupportActionBar().setDisplayShowHomeEnabled(true); } ViewTreeObserver viewTreeObserver = appRoot.getViewTreeObserver(); if (viewTreeObserver.isAlive()) { viewTreeObserver.addOnGlobalLayoutListener(new ViewTreeObserver.OnGlobalLayoutListener() { @Override public void onGlobalLayout() { Animatrix.circularRevealView(appRoot); if (Build.VERSION.SDK_INT < Build.VERSION_CODES.JELLY_BEAN) { appRoot.getViewTreeObserver().removeGlobalOnLayoutListener(this); } else { appRoot.getViewTreeObserver().removeOnGlobalLayoutListener(this); } } }); } barChart.setOnChartValueSelectedListener(this); drawChart(); }
super.onCreate(savedInstanceState); mChart.setOnChartValueSelectedListener(this);