Re: Copying chart

2018-09-04 Thread Alain FAGOT BÉAREZ
Hi FD, The code has been merged by r1840076. It might appear in release 4.0.0 or 4.0.1 (we are currently busy with 4.0.0 RC1). Best regards, Alain > On 4 Sep 2018, at 00:27, Alain FAGOT BÉAREZ wrote: > > Hi FD, > > I think all you need is the following method on XSSFDrawing: > > ``` >

Re: Copying chart

2018-09-03 Thread Alain FAGOT BÉAREZ
Hi FD, I think all you need is the following method on XSSFDrawing: ``` /** * Imports the chart from the srcChart into this drawing. * * @param srcChart *the source chart to be cloned into this drawing. * @return the newly created chart. * @throws

Re: Copying chart

2018-08-24 Thread monnomiznogoud
Hi Alain, I'll paste some test code here. In my work we have a lot of restrictions when it comes to websites. Sorry I don't know how to format this code. Important: the chartModel.xlsx should contain a chart, preferably with no relations. After all you need the model to be copied to your

Re: Copying chart

2018-08-23 Thread Alain FAGOT BÉAREZ
Hi FD, Did you base your patch on 3.17 sources or on current GitHub mirror? Cloning a Chart in XSLF was not only a matter of cloning some XML hierarchy. Some magic was involved at the relationships level. Maybe with the introduction of the XDDF package some parts of the magic have been made

Re: Copying chart

2018-08-23 Thread Dave Fisher
Hi - You should create a Bugzilla and attach your patch. Regards, Dave > On Aug 23, 2018, at 2:29 PM, monnomiznog...@gmail.com wrote: > > Guys, > > You cannot ask even from advanced developers to create a chart from scratch > with java code or any other code type. > > Copying a chart from