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

two values in one X-axis Options · View
ShowJeanne
#1 Posted : Monday, January 30, 2012 7:06:21 AM
Rank: Newbie

Groups: Registered

Joined: 1/30/2012
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).
Baydalka Volodymyr
#2 Posted : Monday, January 30, 2012 2:03:32 PM
Rank: Developers Team


Groups: Registered, Administrators

Joined: 7/28/2009
Posts: 447
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 7:11:55 AM
Rank: Newbie

Groups: Registered

Joined: 1/30/2012
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 2:20:42 PM
Rank: Developers Team


Groups: Registered, Administrators

Joined: 7/28/2009
Posts: 447
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 01, 2012 3:58:35 AM
Rank: Newbie

Groups: Registered

Joined: 1/30/2012
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).
Baydalka Volodymyr
#6 Posted : Wednesday, February 01, 2012 12:27:20 PM
Rank: Developers Team


Groups: Registered, Administrators

Joined: 7/28/2009
Posts: 447
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 02, 2012 3:44:18 AM
Rank: Newbie

Groups: Registered

Joined: 1/30/2012
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-2016 ArtfulBits. All rights reserved.