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
palmut  
#1 Posted : Wednesday, June 9, 2010 7:03:27 PM(UTC)
palmut
Rank: Newbie

Groups: Registered
Joined: 11/9/2009(UTC)
Posts: 8
Location: Tashkent, Uzbekistan

Hello,

I have a chart with Price/Date stock information. The values array contains previous day price data and next day price data. I'm using AxisScale scale.setDateRange(startRange, endRange) function to show desired interval for user. When the startRange contains previous day time and endRange contains next day dime there is a big hole on chart with empty space. How to remove this empty space?

Thank you!
Baydalka Volodymyr  
#2 Posted : Wednesday, June 9, 2010 7:53:55 PM(UTC)
Baydalka Volodymyr
Rank: Member

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

Hi,

1) you may fill the empty space with the data computed manually. If you don't have data for some day just use "close" value from previous day.
2) you may set values of axis labels manually.

Code:

ChartSeries series = new ChartSeries(ChartTypes.CandleStick);

for (int i = 0; i < dates.length; i++)
{
	ChartPoint point = new ChartPoint(i, high[i], low[i], open[i], close[i]);
	point.setAxisLabel(dates[i].toString());
	series.getPoints().add(point);
}

chartArea.getDefaultXAxis().setLabelsMode(LabelsMode.SeriesLabels);


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