Search found 106 matches

by DavidThi808
Wed Aug 17, 2016 1:05 pm
Forum: JFreeSVG
Topic: How do I set the width, height, & viewBox
Replies: 6
Views: 4736

Re: How do I set the width, height, & viewBox

I'll research that. I guess that if the units are specified then that will also need to be synchronised with a translation on the Graphics2D instance so that the drawing units are consistent. Or how do you see that working? No, I just need to set it at the end. I render the entire SVG using EMUs fo...
by DavidThi808
Tue Aug 16, 2016 11:05 pm
Forum: JFreeSVG
Topic: How do I set the width, height, & viewBox
Replies: 6
Views: 4736

Re: How do I set the width, height, & viewBox

david.gilbert wrote:I'll get this feature into the next release most likely.
Please consider adding the ability to set the width/height in units too.

thanks - dave
by DavidThi808
Sun Aug 14, 2016 3:08 pm
Forum: JFreeSVG
Topic: Why is Batik so much larger than JFreeSVG?
Replies: 2
Views: 3266

Why is Batik so much larger than JFreeSVG?

Hi all;

This is just curiosity. And I'm definitely not complaining. But why such a gigantic difference in size?

??? - thanks - dave
by DavidThi808
Sun Aug 14, 2016 3:03 pm
Forum: JFreeSVG
Topic: DEFS element unique names
Replies: 1
Views: 2635

DEFS element unique names

The documentation says: when an HTML page contains multiple SVG elements, the items within the DEFS element for each SVG element must have IDs that are unique across all SVG elements in the page. We auto-populate the defsKeyPrefix attribute to help ensure that unique IDs are generated. Is the best (...
by DavidThi808
Sun Aug 14, 2016 2:58 pm
Forum: JFreeSVG
Topic: Are there any limits I'm likely to hit?
Replies: 1
Views: 2652

Are there any limits I'm likely to hit?

Hi all; Our use case is we're creating a SVG file to embed in an HTML file. That is our only use, no Swing or anything else. We do need it to be self-contained (ie images are embedded in the SVG, not links to an external file). Everything seems to be fine so far but I figure better to ask. Any likel...
by DavidThi808
Sun Aug 14, 2016 2:55 pm
Forum: JFreeSVG
Topic: How do I set the width, height, & viewBox
Replies: 6
Views: 4736

How do I set the width, height, & viewBox

Hi all; How can I set the width & height in inches? And how can I set the viewBox? I want the <svg> element to have: width="2in" height="4in" viewBox="0 0 1828800 1828800" The reason I need this is I know the size of my SVG object. And I am passing all units for all renders in EMUs (914400/inch). So...
by DavidThi808
Thu Oct 15, 2009 9:26 pm
Forum: JFreeChart
Topic: How do I set the label position in a pie chart?
Replies: 3
Views: 1567

Re: How do I set the label position in a pie chart?

Just the standard Excel ones - near the center, middle, near the edge, & outside the edge.

Not a killer issue - just want to provide the functionality available.

thanks - dave
by DavidThi808
Tue Oct 13, 2009 4:04 pm
Forum: JFreeChart
Topic: get axis min/max/major/minor
Replies: 4
Views: 1898

Re: get axis min/max/major/minor

Does JFreeChart have the concept of minor (as opposed to major) tickmarks? It seems like it does not.

??? - thanks - dave
by DavidThi808
Mon Oct 12, 2009 4:34 am
Forum: JFreeChart
Topic: custom text & color for axis & data labels
Replies: 3
Views: 1624

Re: custom text & color for axis & data labels

To render the text for a tick label (ie for a number I may want $1 234,56) - is the best way to call setTickUnit(new NumberTickUnit(double, new MyFormatter()))?

thanks - dave
by DavidThi808
Mon Oct 12, 2009 4:23 am
Forum: JFreeChart
Topic: Suggested feature - AttributedString return for all...
Replies: 1
Views: 695

Suggested feature - AttributedString return for all...

label generators. I have a case where negative numbers should be read and positive black. So I can't set a single color for all data labels.

thanks - dave
by DavidThi808
Mon Oct 12, 2009 4:21 am
Forum: JFreeChart
Topic: How do I set the label position in a pie chart?
Replies: 3
Views: 1567

How do I set the label position in a pie chart?

It does not appear to have a setPositiveItemLabelPosition(), etc.

thanks - dave
by DavidThi808
Mon Oct 12, 2009 4:21 am
Forum: JFreeChart
Topic: What is the difference on set**LabelGenerator
Replies: 2
Views: 762

What is the difference on set**LabelGenerator

There's:
setBaseItemLabelGenerator()
setItemLabelGenerator()

What's is each for?

thanks - dave
by DavidThi808
Tue Sep 29, 2009 10:43 pm
Forum: JFreeChart
Topic: custom text & color for axis & data labels
Replies: 3
Views: 1624

Re: custom text & color for axis & data labels

thanks you!
by DavidThi808
Tue Sep 29, 2009 10:42 pm
Forum: JFreeChart
Topic: get axis min/max/major/minor
Replies: 4
Views: 1898

Re: get axis min/max/major/minor

That will work - we can draw to an off-screen bitmap to get it.

thanks - dave
by DavidThi808
Tue Sep 29, 2009 10:16 pm
Forum: JFreeChart
Topic: How much prettier over 1.0.1
Replies: 2
Views: 799

Re: How much prettier over 1.0.1

Your blog makes a good point - it can do more than the defaults but everyone lives with the defaults. I'll try to cobble something together to just build some charts under the new defaults and see how they look. thanks - dave ps - Did you every add that code I offered so you can create defaults in a...