Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
175
How to make empty the DataChart
posted

Hi,

I have 10 SplineSeries in my DataChart. I would like to select for example 3 SplineSeries and display them on the DataChart.

1. I display the 10 SplineSeries

2. Select some SplineSeries

3. Reset DataChart

4. Display the selected SplineSeries in the same DataChart

How can i do the third step?

Thanks!

Zollie

Parents
  • 175
    posted

    Hi,

    It seems, that i found the solution:

    private void createUI() {

    updateButton.setOnClickListener(new OnClickListener() {
    public void onClick(View arg0) {

    categories.clear();

    column1.clear();

    column2.clear();

    for(Series series: dataChart.series()) {
    series.notifyDataReset();
    }
    }
    });

    But it wasn't unequivocal to me.

    That would be fine, to have a clean() method of the DataChart object also.

    Thanks

    Zoltán

Reply Children
No Data