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

How to hide values hole Options · View
palmut
#1 Posted : Wednesday, June 09, 2010 5:03:27 PM
Rank: Newbie

Groups: Registered

Joined: 11/9/2009
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 09, 2010 5:53:55 PM
Rank: Developers Team


Groups: Registered, Administrators

Joined: 7/28/2009
Posts: 447
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.