whitespace COMPANY whitespace SERVICES whitespace PRODUCTS whitespace PURCHASE whitespace SUPPORT whitespace CONTACTS whitespace Home whitespace Contact Us whitespace Site Map whitespace
whitespace
SUPPORT
whitespace
FORUM
whitespace
FAQS
whitespace
SUBSCRIPTION
whitespace
REQUEST ON-LINE
whitespace
whitespace

Technical Support Forum

Welcome Guest Search | Active Topics | Log In | Register

Chart Title and legends? Options · View
Ivan
#1 Posted : Tuesday, March 08, 2011 4:33:43 PM
Rank: Member

Groups: Registered

Joined: 3/7/2011
Posts: 25
Location: Albis
Hi Support,

I know this must be a very stupid question but:

How do I add a title to the chart programmatically (not using XML). I cannot find the way to do it.

Also how to activate the legends and choose where to place them on the chart?

Thanks
Ivan

Baydalka Volodymyr
#2 Posted : Tuesday, March 08, 2011 4:39:48 PM
Rank: Developers Team


Groups: Registered, Administrators

Joined: 7/28/2009
Posts: 447
Hi,

1) Please, check the ChartTitle class and ChartView.getTitles() collection.
2) Try add at least one instance of ChartLegend class to ChartView.getLegends() collection. Also check ChartLegend.setDock method to set legend position.

Best regards,
Volodymyr Baydalka
Andriod development and support team
Ivan
#3 Posted : Tuesday, March 08, 2011 4:54:26 PM
Rank: Member

Groups: Registered

Joined: 3/7/2011
Posts: 25
Location: Albis
Hi,

Thanks... I got the ChartLegends to work... but there is something I need... I would like the legend to show only a NAME for the Series and not a DOT for every column I have at this moment the legend is showing me

6 dots one for each column I have with the label(value) of this column... how can I do to get only 1 dot for the series I have created the legend with a chosen name...?

Thanks for the instant support
Ivan
Ivan
#4 Posted : Tuesday, March 08, 2011 6:03:02 PM
Rank: Member

Groups: Registered

Joined: 3/7/2011
Posts: 25
Location: Albis
hi Again,

I have found how to show only the name using the SeriesItemProvider()

now I have another issue:

How to make the legend show horizontally instead of one below the other...

As you can see in the screenshot ... the NT and HT are like in a list ... but I want them to be like on the same line.... how can I do that?

Another thing is: why is NT showing in ORANGE when it should be showing in GREEN? or at least that is what it should be showing...

Thanks
Ivan
Ivan attached the following image(s):
aichartsLegend00.png (22kb) downloaded 31 time(s).
Baydalka Volodymyr
#5 Posted : Wednesday, March 09, 2011 4:38:09 PM
Rank: Developers Team


Groups: Registered, Administrators

Joined: 7/28/2009
Posts: 447
Hi,

Check following thread - http://www.artfulbits.co....aspx?g=posts&t=290

Best regards,
Volodymyr Baydalka
Andriod development and support team
Users browsing this topic
Guest
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.

Company | Services | Practices | Technologies | Career | Contacts | Privacy
© 2005-2016 ArtfulBits. All rights reserved.