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! To enable all features please Login or Register.

Notification

Icon
Error

Options
View
Go to last post Go to first unread
ShowJeanne  
#1 Posted : Monday, January 30, 2012 9:06:21 AM(UTC)
ShowJeanne
Rank: Newbie

Groups: Registered
Joined: 1/30/2012(UTC)
Posts: 4
Location: Japan

Hello.
I am weak in English conversation.
If it is hard to understand it, I'm sorry.

Please teach it about one in "the screenshot" in question.
It is the third from "Image 2 of 16".

One X-axis does not understand a realization method of "ChartColumnType" indicating two values.

If there is a sample, would you show it?

In addition, can you realize the same thing in "ChartStackedColumnType"?
File Attachment(s):
Image1.bmp (286kb) downloaded 7 time(s).

You cannot view/download attachments. Try to login or register.
Baydalka Volodymyr  
#2 Posted : Monday, January 30, 2012 4:03:32 PM(UTC)
Baydalka Volodymyr
Rank: Member

Groups: Registered
Joined: 7/28/2009(UTC)
Posts: 447
Man

Hi,

There is example to display chart like that.

Code:
ChartView chartView = new ChartView(this);
ChartSeries s1 = new ChartSeries(ChartTypes.Column);
ChartSeries s2 = new ChartSeries(ChartTypes.Column);

for(int i = 0; i < 10; i ++)
{
   s1.getPoints().addXY(i, data[i]);
   s2.getPoints().addXY(i, data[i]);
}

chartView..getSeries().add(s1);
chartView..getSeries().add(s2);
chartView.getAreas().add(new ChartArea());


same for ChartStackedColumnType

Code:
ChartView chartView = new ChartView(this);
ChartSeries s1 = new ChartSeries(ChartTypes.StackedColumn);
ChartSeries s2 = new ChartSeries(ChartTypes.StackedColumn);

for(int i = 0; i < 10; i ++)
{
   s1.getPoints().addXY(i, data[i]);
   s2.getPoints().addXY(i, data[i]);
}

chartView..getSeries().add(s1);
chartView..getSeries().add(s2);
chartView.getAreas().add(new ChartArea());


Best regards,
Volodymyr Baydalka
Andriod development and support team
ShowJeanne  
#3 Posted : Tuesday, January 31, 2012 9:11:55 AM(UTC)
ShowJeanne
Rank: Newbie

Groups: Registered
Joined: 1/30/2012(UTC)
Posts: 4
Location: Japan

Thank you for an answer.

Please teach one.

In "ChartStackedColumnType", is the indication impossible with two sticks to 1 column aside?
In the same way as "ChartColumnType".
Baydalka Volodymyr  
#4 Posted : Tuesday, January 31, 2012 4:20:42 PM(UTC)
Baydalka Volodymyr
Rank: Member

Groups: Registered
Joined: 7/28/2009(UTC)
Posts: 447
Man

Hi,

Unfortunately, I do not clearly understand what do you try to do. Could you attach schematic picture with result that you expect?

Best regards,
Volodymyr Baydalka
Andriod development and support team
ShowJeanne  
#5 Posted : Wednesday, February 1, 2012 5:58:35 AM(UTC)
ShowJeanne
Rank: Newbie

Groups: Registered
Joined: 1/30/2012(UTC)
Posts: 4
Location: Japan

I am sorry to be incomprehensible.

It is as follows that I want to come out.

・ I want to use "ChartStackedColumnType"
・ I display two sticks in one X-axis

I attach an illustration of image.

Thanking you in advance.
File Attachment(s):
Image2.bmp (1,110kb) downloaded 4 time(s).

You cannot view/download attachments. Try to login or register.
Baydalka Volodymyr  
#6 Posted : Wednesday, February 1, 2012 2:27:20 PM(UTC)
Baydalka Volodymyr
Rank: Member

Groups: Registered
Joined: 7/28/2009(UTC)
Posts: 447
Man

Hi,

There is custom attribute - ChartStackedColumnType.STACK_GROUP. Check following exsample how to use it.

Code:

ChartView chartView = new ChartView(this);
ChartSeries s1 = new ChartSeries(ChartTypes.StackedColumn);
ChartSeries s2 = new ChartSeries(ChartTypes.StackedColumn);
ChartSeries s3 = new ChartSeries(ChartTypes.StackedColumn);
ChartSeries s4 = new ChartSeries(ChartTypes.StackedColumn);

for(int i = 0; i < 10; i ++)
{
   s1.getPoints().addXY(i, data[i]);
   s2.getPoints().addXY(i, data[i]);
   s3.getPoints().addXY(i, data[i]);
   s4.getPoints().addXY(i, data[i]);
}

s1.setAttribute(ChartStackedColumnType.STACK_GROUP, "groupd1")
s2.setAttribute(ChartStackedColumnType.STACK_GROUP, "groupd1")
s3.setAttribute(ChartStackedColumnType.STACK_GROUP, "groupd2")
s4.setAttribute(ChartStackedColumnType.STACK_GROUP, "groupd2")


chartView..getSeries().add(s1);
chartView..getSeries().add(s2);
chartView..getSeries().add(s3);
chartView..getSeries().add(s4);
chartView.getAreas().add(new ChartArea());



Best regards,
Volodymyr Baydalka
Andriod development and support team
ShowJeanne  
#7 Posted : Thursday, February 2, 2012 5:44:18 AM(UTC)
ShowJeanne
Rank: Newbie

Groups: Registered
Joined: 1/30/2012(UTC)
Posts: 4
Location: Japan

Hello.

Is this!
Could be achieved in the example you gave me.

Thank you.
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-2017 ArtfulBits. All rights reserved.