ArtfulBits Forum
»
Custom Software Development
»
Android OS
»
setName() and getName() of ChartSeries is not working
 Rank: Member
Groups: Registered
Joined: 2/11/2013(UTC) Posts: 24 Location: Bangalore
|
Hello,
I am using setName() and getName() methods of chartSeries class as I want to modify the text but its not working. I tried aiChart jar v1.7 as well as v2.0 Beta. Please suggest.
Thanks.
|
|
|
|
 Rank: Member
Groups: Registered
Joined: 7/28/2009(UTC) Posts: 447 
|
Hi,
Try use ChartSeries.setLabel or ChartSeries.setLabelFotmat (this method will affect to points) methods.
Best regards, |
Volodymyr Baydalka Andriod development and support team |
|
|
|
 Rank: Member
Groups: Registered
Joined: 2/11/2013(UTC) Posts: 24 Location: Bangalore
|
Baydalka Volodymyr wrote:Hi,
Try use ChartSeries.setLabel or ChartSeries.setLabelFotmat (this method will affect to points) methods.
Best regards, Thanks, it works.
|
|
|
|
 Rank: Member
Groups: Registered
Joined: 2/11/2013(UTC) Posts: 24 Location: Bangalore
|
Hi,
I am using following method to change chart series name, but name is not changing in real time. Log is printing new value. I think problem is with refresh, which is not happening.
public static void setChartNameVisibility(boolean isChecked) {
if (isChecked){ ChartView.getSeries().get(0).setName("Second"); Log.i("if ", "Name: "+ChartView.getSeries().get(0).getName()); }else{ ChartView.getSeries().get(0).setName("NA"); Log.i("else ", "Name "+ChartView.getSeries().get(0).getName()); } }
Please suggest a solution ASAP.
Thanks, Rabish
|
|
|
|
 Rank: Member
Groups: Registered
Joined: 7/28/2009(UTC) Posts: 447 
|
Hi,
It's not updating on legend or points labels?
Best regards, |
Volodymyr Baydalka Andriod development and support team |
|
|
|
 Rank: Member
Groups: Registered
Joined: 2/11/2013(UTC) Posts: 24 Location: Bangalore
|
Hi,
It's not updating on legend.
Best regards, Rabish
|
|
|
|
 Rank: Member
Groups: Registered
Joined: 2/11/2013(UTC) Posts: 24 Location: Bangalore
|
|
|
|
|
 Rank: Member
Groups: Registered
Joined: 7/28/2009(UTC) Posts: 447 
|
Hi,
You may use workaround for this bug - reset items adapter. ChartLegend.setAdapter(new ChartLegendAdapter.SeriesItemsAdapter());
Best regards, |
Volodymyr Baydalka Andriod development and support team |
|
|
|
 Rank: Member
Groups: Registered
Joined: 2/11/2013(UTC) Posts: 24 Location: Bangalore
|
Hi,
ChartLegend.setAdapter(new ChartLegendAdapter.SeriesItemsAdapter());
Above code is not refreshing legend. I am changing the series name based on a check box selection.
Best Regards, Rabish
|
|
|
|
 Rank: Member
Groups: Registered
Joined: 2/11/2013(UTC) Posts: 24 Location: Bangalore
|
Hi,
Following set of code is working fine for me. Please verify.
chartLegend.setAdapter(new ChartLegendAdapter.SeriesItemsAdapter()); chartView.getLegends().remove(chartLegend); chartView.getLegends().add(chartLegend);
Best Regards, Rabish
|
|
|
|
 Rank: Member
Groups: Registered
Joined: 7/28/2009(UTC) Posts: 447 
|
Hi, Yep, it should works. Also we have fixed this bug. You may send request to sales@artfulbits.com to get fixed version. Best regards, |
Volodymyr Baydalka Andriod development and support team |
|
|
|
ArtfulBits Forum
»
Custom Software Development
»
Android OS
»
setName() and getName() of ChartSeries is not working
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.