Search found 44 matches
- Sat Jun 29, 2013 8:52 am
- Forum: Java
- Topic: Put axis label above left axis?
- Replies: 7
- Views: 19372
Re: Put axis label above left axis?
Thanks. I have a feeling it won't work, like you say. I believe I tried this in the past. One problem is that I'd like my label to push down the axis from the top, so that it does indeed fit. This happens automatically when an axis label is present. In that case the entire axis is pushed to the righ...
- Wed Jun 26, 2013 11:46 am
- Forum: Java
- Topic: Put axis label above left axis?
- Replies: 7
- Views: 19372
Re: Put axis label above left axis?
There is no event or similar that I can hook into to position the label? Or should I simply call setAutoRepaint(true) and refreshControl() and then position the label?
- Sun Jun 23, 2013 3:37 pm
- Forum: Java
- Topic: Put axis label above left axis?
- Replies: 7
- Views: 19372
Re: Put axis label above left axis?
Thanks. But how do I position it at that exact location? At the time I instantiate my axis/arrow, they have no coordinates set!
- Sat Apr 27, 2013 12:23 pm
- Forum: Java
- Topic: Circular.adjustCircleMarks buggy for small screens
- Replies: 7
- Views: 19291
Re: Circular.adjustCircleMarks buggy for small screens
I believe this is a good trade-off:
Code: Select all
if (2 * tmpH >= rCircleRect.height) {
tmpH = rCircleRect.height / 10;
}
Code: Select all
if (2 * tmpW >= rCircleRect.width) {
tmpW = rCircleRect.width / 10;
}
- Sat Apr 27, 2013 10:56 am
- Forum: Java
- Topic: Circular.adjustCircleMarks buggy for small screens
- Replies: 7
- Views: 19291
Re: Circular.adjustCircleMarks buggy for small screens
Hmm. One way to produce the error I'm seeing is to disable localization (as described in another thread). If loading the "CharForHeight" string fails, the returned value will be 69 - a very high value which might produce zero-width pies in the end. This solved it for my localization hack: int tmpW =...
- Sat Apr 27, 2013 10:08 am
- Forum: Java
- Topic: Circular.adjustCircleMarks buggy for small screens
- Replies: 7
- Views: 19291
Re: Circular.adjustCircleMarks buggy for small screens
Can you please show the necessary changes so that I can apply it to my source code? My pies keep disappearing
- Sat Apr 27, 2013 10:04 am
- Forum: Java
- Topic: Vertical title not horizontally center-aligned
- Replies: 2
- Views: 10355
Re: Vertical title not horizontally center-aligned
I changed to the following in Axis.java: else if ((angle > 0) && (angle <= 90)) { // KD: // x -= delta * (n + 1); x -= delta * (n + 1) + delta / 4; tmpAlign = StringAlignment.CENTER; } Not sure if it's 100% correct, but it works for my chart. Clearly, there is some error at that particular line! :)
- Sat Apr 27, 2013 9:25 am
- Forum: Java
- Topic: Vertical title not horizontally center-aligned
- Replies: 2
- Views: 10355
Vertical title not horizontally center-aligned
More specifically, I would not consider the above to be center-aligned as the source code suggests. Is it a bug?
- Fri Apr 26, 2013 10:46 pm
- Forum: Java
- Topic: drawFace() should be protected
- Replies: 1
- Views: 8303
drawFace() should be protected
It is now private (in CircularGauge.java). I can't override it...
- Tue Mar 26, 2013 9:53 pm
- Forum: Java
- Topic: Put axis label above left axis?
- Replies: 7
- Views: 19372
Put axis label above left axis?
It's possible to put a (vertically centered) title on the left axis. It's also possible to add a label placed to the left, at the maximum value.
I want to place a label/title above the axis. Actually, I have an arrow at the top of the axis and I would like to put the label above that.
I want to place a label/title above the axis. Actually, I have an arrow at the top of the axis and I would like to put the label above that.
- Sun Mar 24, 2013 6:15 pm
- Forum: Java
- Topic: RECTGRADIENT color bug
- Replies: 1
- Views: 8053
RECTGRADIENT color bug
http://stackoverflow.com/questions/1392 ... s-intended
Can you please give me the lines of code that fix this issue?
Can you please give me the lines of code that fix this issue?
- Sun Mar 24, 2013 5:04 pm
- Forum: Java
- Topic: Disable gradient for legend items
- Replies: 1
- Views: 8117
Disable gradient for legend items
I have bars with gradients from e.g. white to yellow. In my legend, I don't want this gradient. It makes sense to simply use the second color (yellow) for the small squares. How do you disable the gradients for legend items? I tried cloning the chart's first series (to be set for the legend) and mod...
- Sat Mar 23, 2013 12:31 pm
- Forum: Java
- Topic: getImageMode() never called!
- Replies: 1
- Views: 8054
getImageMode() never called!
So how would you get a tiled/centered image on the panel/wall?
- Fri Mar 22, 2013 5:02 pm
- Forum: Java
- Topic: Different gradients for different bars?
- Replies: 6
- Views: 16885
Re: Different gradients for different bars?
"Just note that with this solution you'll have to add the values with XValue, otherwise, having three Bars with just a value will end on three values at XValue=0." Do you mean that you have to add values for x=0, x=1, x=2 for each bar? I see that values are added at index 0 even if I add x=1 or x=2....
- Wed Mar 20, 2013 8:12 pm
- Forum: Java
- Topic: Different gradients for different bars?
- Replies: 6
- Views: 16885
Re: Different gradients for different bars?
Thanks for clarification! I'll try this multi-bar approach. Actually, I did try this in your sample app but that results in Series0 becoming invisible when using gradients on the two series. Not sure if this is a bug in the sample app or in the core functions. I'll get back to you when I've tried yo...