Search found 10 matches

by crni
Fri Dec 28, 2012 9:13 am
Forum: Java
Topic: TeeChart for Java very slow on Android
Replies: 20
Views: 46657

Re: TeeChart for Java very slow on Android

I had similar problems with performance on Android 2.3 and lower. It turned out the problem was not in TeeCharts but in SimpleDateFormat. Since dates are often used on charts, this might be the reason for TeeCharts to appear slow. It actually turned out that creating a new instance of SimpleDateForm...
by crni
Thu Dec 27, 2012 8:20 am
Forum: Java
Topic: Monthly time step repeats some months
Replies: 7
Views: 18724

Re: Monthly time step repeats some months

Thank you, that solved the problem.

It would be nice to have this solution built in - anyone using custom labels would want it and it would've been a paint to do this on my own.
by crni
Wed Dec 19, 2012 8:23 am
Forum: Java
Topic: Monthly time step repeats some months
Replies: 7
Views: 18724

Re: Monthly time step repeats some months

With this solution I am now facing a different problem: the custom labels are always displayed, they are not automatically hidden when they overlap.

So as the chart is zoomed out, the labels are all over each other. Any solution to this?
by crni
Tue Dec 18, 2012 2:00 pm
Forum: Java
Topic: Monthly time step repeats some months
Replies: 7
Views: 18724

Re: Monthly time step repeats some months

I tried your solution now, well, a version of it. It actually fixed the problem. I simply used the method getCustomLabels and added each date in the same loop where I am adding the actual values chart.getSeries(0).add(new DateTime(dataStore.getDataDatetime().getTime()), dataStore.getDoubleValue()); ...
by crni
Tue Dec 18, 2012 1:11 pm
Forum: Java
Topic: Monthly time step repeats some months
Replies: 7
Views: 18724

Re: Monthly time step repeats some months

The problem is in spacing between labels. Labels tend to fall behind the values on the y axis. Each label falls a bit further back from the actual value, althoug all the values are placed on 1th of every month. So every 4th or so label gets displayed twice. I didnt really test the solution you provi...
by crni
Fri Dec 14, 2012 2:53 pm
Forum: Java
Topic: Monthly time step repeats some months
Replies: 7
Views: 18724

Monthly time step repeats some months

I am having problems with displaying monthly time step. I have 12 values on the chart and each of them is started on the first day of month, but for some reason some months are displayed twice in a row. This is the code used the set the time step: series.getXValues().setDateTime(true); chart.getAxes...
by crni
Fri Dec 14, 2012 8:20 am
Forum: Java
Topic: Right axis not visible
Replies: 2
Views: 9522

Re: Right axis not visible

That was it, works fine now.
Thank you.
by crni
Thu Dec 13, 2012 3:04 pm
Forum: Java
Topic: Right axis not visible
Replies: 2
Views: 9522

Right axis not visible

I cant get the right axis to be displayed. Left axis works fine using this: chart.getAxes().getLeft().setVisible(true); chart.getAxes().getLeft().getGrid().setVisible(false); But on right axis I tried all combinations of the following, still nothing appears: chart.getAxes().getRight().setVisible(tru...
by crni
Thu Nov 15, 2012 2:45 pm
Forum: Java
Topic: Animation example on Android
Replies: 3
Views: 11957

Re: Animation example on Android

I see.

How about panning - can I get some demo code on that? I tried this, but doesnt help:

Scroll scroll = new Scroll(chart.getChart());
scroll.setAllow(ScrollMode.BOTH);
chart.setPanning(scroll);
by crni
Tue Nov 13, 2012 12:27 pm
Forum: Java
Topic: Animation example on Android
Replies: 3
Views: 11957

Animation example on Android

Hello, I am trying to get animation working on my Android charts. I just need a simple grow animation on bar charts, but I cant find any example or tutorial on that. This is what I came up with, but it doesnt do anything: SeriesAnimation seriesAnimation = new SeriesAnimation(); seriesAnimation.setAc...