Six Stars

tLineChart issue

Hi Team,

Can you please help to solve this issue with tLineChart:

 

xception in component tLineChart_1
org.jfree.data.general.SeriesException: X-value already exists.
at org.jfree.data.xy.XYSeries.add(XYSeries.java:363)
at org.jfree.data.xy.XYSeries.add(XYSeries.java:324)
at org.jfree.data.xy.XYSeries.add(XYSeries.java:305)
at projectname.stats_recharge_charting_0_1.Stats_Recharge_Charting.tMysqlInput_1Process(Stats_Recharge_Charting.java:1175)
at projectname.stats_recharge_charting_0_1.Stats_Recharge_Charting.runJobInTOS(Stats_Recharge_Charting.java:1467)
at projectname.stats_recharge_charting_0_1.Stats_Recharge_Charting.main(Stats_Recharge_Charting.java:1332)

 

I used the tBarChart it's OK , but when i try to use tLineChart i get this error.

 

Thank you in advance

2 ACCEPTED SOLUTIONS

Accepted Solutions
Ten Stars

Re: tLineChart issue

did you check data format?
are you using multiple txxxChart in the same job?

Francois Denis

Don't forget to tag when it's "solved"!

Six Stars

Re: tLineChart issue

 

I

t's working now even if i didn't change nothing, i have just restart talend soft.

 

thank you for your support.

10 REPLIES
Ten Stars

Re: tLineChart issue

check your data you have the same value two time for the x axis.

Francois Denis

Don't forget to tag when it's "solved"!

Six Stars

Re: tLineChart issue

Hi fdenis,

Thank you for your feedback, but i double check my data i found that is OK. and i  tested again with tBarChart it's working fine.

 

 

Ten Stars

Re: tLineChart issue

did you check data format?
are you using multiple txxxChart in the same job?

Francois Denis

Don't forget to tag when it's "solved"!

Six Stars

Re: tLineChart issue

 

I

t's working now even if i didn't change nothing, i have just restart talend soft.

 

thank you for your support.

Twelve Stars

Re: tLineChart issue

@hbensaid,can you check the configuration of tLineChart.

 

if you are not sure how to configure the tLineChart ,check the below link.

 

 

https://help.talend.com/reader/hCrOzogIwKfuR3mPf~LydA/PO6IA3I8Jdf2rZQYBPn7rQ

Manohar B
Twelve Stars

Re: tLineChart issue

@hbensaid,still do you have issue?

Manohar B
Six Stars

Re: tLineChart issue

Hi,

It's OK now.

Thx.

Twelve Stars

Re: tLineChart issue

Please accept the solution,which one is useful.
Manohar B
Six Stars

Re: tLineChart issue

Hi Team,
I have one problem usint tLinechart again,
my input file have this format:

Date(yyyyMMdd as integer);total(integer)
20180630;8456320
20180701;9876879
20180702;8876879
20180703;8276879
20180704;8576879
20180705;9076879
20180706;9276879
20180707;9476879
20180708;8876879
20180709;7976879
20180710;9176879
20180711;9506879
20180712;9676879
20180713;9276879
20180714;9376879
20180715;8876879
20180716;9876879

when i use the tLinechart to display stats evolution i get this issue.

 

thank you in advance



Ten Stars

Re: tLineChart issue

hi,
when you convert date to integer you are loosing linearity.
try to convert in number of day since 06.30.2018.
Regards.

Francois Denis

Don't forget to tag when it's "solved"!