Can i render chart not throw SWT/AWT/Swing widget but directly to image?
I want use RAP ( https://www.eclipse.org/rap/ ) and need ready image only
Strange quetion
Re: Strange quetion
Hello,
I haven't tried it, but have you tried to export your chart as an image and use it in your RAP application?
I haven't tried it, but have you tried to export your chart as an image and use it in your RAP application?
Best Regards,
![]() | Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) |
![]() ![]() ![]() ![]() ![]() ![]() |
Please read our Bug Fixing Policy |
Re: Strange quetion
hmmm
example pls
now new TChart(Composite , style)
but I want render chart without parent composite
How to do it?
example pls
now new TChart(Composite , style)
but I want render chart without parent composite
How to do it?
Re: Strange quetion
Hello,
I can create a TChart without a parent and export it to an image with TeeChart Java Swing, so I guess you could do a similar thing in your RAP application:
If you still find problems with it, please try to arrange a simple example project we can run as-is to reproduce the problem here.
I can create a TChart without a parent and export it to an image with TeeChart Java Swing, so I guess you could do a similar thing in your RAP application:
Code: Select all
import java.io.IOException;
import com.steema.teechart.TChart;
import com.steema.teechart.styles.Bar;
public class Test {
public static void main(String args[]) {
TChart Chart1 = new TChart();
Bar bar1 = new Bar(Chart1.getChart());
bar1.fillSampleValues();
try {
Chart1.getExport().getImage().getPNG().save("E://tmp//SwingTest.png");
} catch (IOException e) {
e.printStackTrace();
}
}
}
Best Regards,
![]() | Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) |
![]() ![]() ![]() ![]() ![]() ![]() |
Please read our Bug Fixing Policy |
Re: Strange quetion
thank you
run to realize
run to realize
Re: Strange quetion
How set size for export chart?
chart1.setSize(800, 600) is not working;
chart1.setSize(800, 600) is not working;
Re: Strange quetion
close last question
PNGFormat png = chart1.getExport().getImage().getPNG();
png.setWidth(parentTab.getSize().x - 10);
png.setHeight(parentTab.getSize().y - 100);
PNGFormat png = chart1.getExport().getImage().getPNG();
png.setWidth(parentTab.getSize().x - 10);
png.setHeight(parentTab.getSize().y - 100);