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
s_pai  
#1 Posted : Monday, February 28, 2011 9:31:23 PM(UTC)
s_pai
Rank: Newbie

Groups: Registered
Joined: 2/21/2011(UTC)
Posts: 3

I ran into a problem trying to use the example charts in an existing project. If I download the sample Area Chart it works, but when I use the same XML in an existing project it fails with the following stack trace:

Code:
Caused by: java.lang.NumberFormatException: unable to parse 'FF589AF1' as integer
        at java.lang.Integer.parse(Integer.java:438)
        at java.lang.Integer.parseInt(Integer.java:422)
        at com.android.internal.util.XmlUtils.convertValueToInt(XmlUtils.java:122)
        at android.util.XmlPullAttributes.getAttributeIntValue(XmlPullAttributes.java:113)
        at com.artfulbits.aiCharts.Base.ChartPointAttributes.inflateAttributes(ChartPointAttributes.java:945)
        at com.artfulbits.aiCharts.Base.ChartSeries.inflateAttributes(ChartSeries.java:844)
        at com.artfulbits.aiCharts.Base.ChartElement.inflate(ChartElement.java:47)
        at com.artfulbits.aiCharts.Base.ChartElement.inflate(ChartElement.java:64)
        at com.artfulbits.aiCharts.Base.ChartEngine.<init>(ChartEngine.java:278)
        at com.heavylifters.android.ChartActivity$2.run(ChartActivity.java:119)
        at android.app.Activity.runOnUiThread(Activity.java:3707)
        at com.heavylifters.android.ChartActivity.displayChartWithInputStream(ChartActivity.java:117)
        at com.heavylifters.android.ChartActivity.onCreate(ChartActivity.java:52)
        at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627)


Any idea why this happens?

XML:

Code:
<?xml version="1.0" encoding="utf-8"?>
<ai:chart xmlns:ai="http://www.artfulbits.com/android/aiCharts">
	<ai:area />

	<ai:series name="Series1" legend="Legend1" type="Area" color="#FF589AF1"
	           points="82, 75, 96, 65, 87" />
	<ai:series name="Series2" legend="Legend2" type="Area" color="#FFE5B059"
	           points="37, 28, 43, 48, 56" />
	
	<ai:legend name="Legend1" dock="Right"/>
	<ai:legend name="Legend2" dock="Left"/>
</ai:chart>
Baydalka Volodymyr  
#2 Posted : Tuesday, March 1, 2011 1:56:52 PM(UTC)
Baydalka Volodymyr
Rank: Member

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

Hi,

Thank you for bug report. Please try to set series color via code (ChartSeries.setBackColor method) for now.

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.