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

linechart panning issues Options · View
smartposter
#1 Posted : Sunday, September 23, 2012 9:03:09 AM
Rank: Member

Groups: Registered

Joined: 9/11/2012
Posts: 11
Location: beijing
I'm drawing two linechart with panning and zoom enabled. Xaxis is set as date.
The xaxis looks good when the view is created. But all lables and grid will disappear when user perform panning.
See attached pictures, ok.png is the look when created and error.png is after panning.
The code is as below:
long m_end = System.currentTimeMillis();
//set 1 hour
chartViewPulse.getAreas().get(0).getDefaultXAxis().getScale().setRange(m_end - 3600*1000, m_end);
chartViewPulse.getAreas().get(0).getDefaultXAxis().getScale().setInterval(10.0,ChartAxisScale.IntervalType.Minutes);
chartViewPulse.getAreas().get(0).getDefaultXAxis().setLabelFormat(new SimpleDateFormat("HH:mm:ss"));
chartViewPulse.getAreas().get(0).getDefaultXAxis().getScale().setZoom(m_end - 3600*1000, m_end);

chartViewSpo.getAreas().get(0).getDefaultXAxis().getScale().setRange(m_end - 3600*1000, m_end);
chartViewSpo.getAreas().get(0).getDefaultXAxis().getScale().setInterval(10.0,ChartAxisScale.IntervalType.Minutes);
chartViewSpo.getAreas().get(0).getDefaultXAxis().setLabelFormat(new SimpleDateFormat("HH:mm:ss"));
chartViewSpo.getAreas().get(0).getDefaultXAxis().getScale().setZoom(m_end - 3600*1000, m_end);

Is this a bug of aichart?
How to fix this bug?
Regards
smartposter attached the following image(s):
ok.png (14kb) downloaded 29 time(s).
error.png (9kb) downloaded 27 time(s).
Users browsing this topic
Guest (2)
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.