Search found 60 matches

by Jonathan
Wed Feb 23, 2011 11:23 pm
Forum: Java
Topic: bug on legend position Top with a long legend title
Replies: 5
Views: 12808

Re: bug on legend position Top with a long legend title

Hi Yeray, Thanks for your answers. However, I found 2 problems on the temp solution you provided for the Bug #1. Problem1) I can't set a hard code of '400' for the legend width because the legend title can vary. There should be a way to convert the legend string title to pixel. Problem 2) I can't se...
by Jonathan
Mon Feb 21, 2011 3:44 pm
Forum: Java
Topic: bug on legend position Top with a long legend title
Replies: 5
Views: 12808

Re: bug on legend position Top with a long legend title

1) Is there any workaround I can do now for the Bug #1 ?

2) The size of blue and orange images got a bit smaller when the position is top/bottom, when compared to left/right. I can even see the a little difference on the image you posted.

Thanks
by Jonathan
Thu Feb 17, 2011 11:06 pm
Forum: Java
Topic: bug on legend position Top with a long legend title
Replies: 5
Views: 12808

bug on legend position Top with a long legend title

Hi, Bug 1) I don't have a problem with a legend whose position is either Left or Right. When I change the legend position to either Top or Bottom with a long legend title, the width of the legend bounds isn't correctly rendered. In other words, the long legend title can't fit into the legend whose p...
by Jonathan
Mon Sep 27, 2010 9:27 pm
Forum: Java
Topic: custom marks on bar
Replies: 1
Views: 5417

custom marks on bar

Hi, I want to display custom marks of count and percent at the same time on each bars. When I use setLabels API, the custom label also replaces x label (in my example, A and B) as well. Is there a way not to replace the x label but display the custom labels/mark on bar series ? (In my example below,...
by Jonathan
Wed Sep 08, 2010 7:36 pm
Forum: Java
Topic: Histogram bars are shifted when x range is changed
Replies: 14
Views: 21851

Re: Histogram bars are shifted when x range is changed

Yeray,

It's been a long time ago. Sorry I don't remember why the Bar series was used for histogram. I guess the Bar series was the basic framework that had been done.
by Jonathan
Tue Aug 24, 2010 2:56 pm
Forum: Java
Topic: Histogram bars are shifted when x range is changed
Replies: 14
Views: 21851

Re: Histogram bars are shifted when x range is changed

I am using Elicpse 3.5.1 (Galileo)
by Jonathan
Fri Aug 20, 2010 1:57 pm
Forum: Java
Topic: Histogram bars are shifted when x range is changed
Replies: 14
Views: 21851

Re: Histogram bars are shifted when x range is changed

Yeray,

Yes, I tried it both cases you mentioned, and it doesn't work. I haven't tried the Histogram series because teeChart supporter told me long time ago that I could use "setBarWidthPercent(100)" in order to draw a histogram chart.
by Jonathan
Thu Aug 19, 2010 2:40 pm
Forum: Java
Topic: Histogram bars are shifted when x range is changed
Replies: 14
Views: 21851

Re: Histogram bars are shifted when x range is changed

Hi Marc,

Where should i put that code you mentioned for forcing a repaint? If I put it within the listener, there is infinite loop.
by Jonathan
Wed Aug 11, 2010 10:02 pm
Forum: Java
Topic: Histogram bars are shifted when x range is changed
Replies: 14
Views: 21851

Re: Histogram bars are shifted when x range is changed

Hi Yeray, Thanks for the help. However, I have an another issue. Once I added a paint listener, it works only after I make a mouse click on chart . Why is this so? Did I miss something? Is there a way to refresh the chart after the chart is painted? In this way, i don't have to make a mouse click to...
by Jonathan
Fri Jul 23, 2010 3:21 pm
Forum: Java
Topic: Histogram bars are shifted when x range is changed
Replies: 14
Views: 21851

Re: Histogram bars are shifted when x range is changed

Hi Yeray, 1. I can't comment the line b.setBarWidthPercent(100) since my plot is HISTOGRAM, not pareto. 2. What you suggested doesn't work. Here is similar codes as above for run as-is. In this code, I changed BottomMax=60, setCustomBarWidth=10, and set BottomIncrement=10(Optional, but it makes sens...
by Jonathan
Wed Jul 21, 2010 4:29 pm
Forum: Java
Topic: Histogram bars are shifted when x range is changed
Replies: 14
Views: 21851

Histogram bars are shifted when x range is changed

Hi, I found a bug on a histogram plot. Whenever the range on bottom axis is changed manually, the entire histogram bars are shifted and misaligned with marks any longer. In the following run as-is example, I set min and max value for the bottom axis. Then I see two problems/bugs. 1. Bars are shifted...
by Jonathan
Wed Jun 09, 2010 8:49 pm
Forum: Java
Topic: How to display marks with stacked100
Replies: 1
Views: 5326

How to display marks with stacked100

Hi, I have multiple bar series with stacked100 bar type. Is it possible to display marks on the top of each bar series? (like http://www.telerik.com/help/winforms/understandingtypesstackedbar100.html) If yes, how can I do that? If that is impossible with current TeeChart, how can I display all the m...
by Jonathan
Wed Apr 21, 2010 9:18 pm
Forum: Java
Topic: missing marks on bars with Transparent color
Replies: 3
Views: 8773

Re: missing marks on bars with Transparent color

FYI.. If I add the following code at the end of my code above, it works perfectly. int[] flag = new int[b.getCount()]; for(int i=0; i<flag.length; i++){ flag[i] = 0; } for (int i = chart.getSeries().size()-1; i >= 0 ; i--) { for (int j = 0; j < chart.getSeries(i).getCount(); j++) { if (chart.getSeri...
by Jonathan
Mon Apr 19, 2010 9:50 pm
Forum: Java
Topic: missing marks on bars with Transparent color
Replies: 3
Views: 8773

missing marks on bars with Transparent color

Hi, In the following code, I created a simple histogram chart with displaying total counts of 2 barSeries. If you run the code below, you will see that there are orange colors slightly on the top of the 2nd and 4th bars. This could misinform that there are data for series1 on 2nd and 4th bars. If I ...
by Jonathan
Thu Mar 11, 2010 5:43 pm
Forum: Java
Topic: missing X labels on multiple line series
Replies: 7
Views: 13082

Re: missing X labels on multiple line series

Hi, I read the thread, but no luck. I pasted the codes I tried. Pls. help me how to display "A", "D", "B", "C" on x axis on my chart. public static void main(String[] args) { JFrame frame = new JFrame(); JPanel panel = new JPanel(); panel.setSize(600, 600); TChart chart = new TChart(); panel.add(cha...