I am creating several jpg files at one time and looking for the java equivalent to the VB ocx code below
With TChart1
.ClearChart
Here are snippets of my java code
public static void main(String args[])
TeeChart demo = new TeeChart();
TeeChartWrapper teeChartWrapper = new TeeChartWrapper();
String jpgFileName = "TestInitialAllocation.jpg";
teeChartWrapper.createAllocationPieChartGraph(jpgFileName, initAllocation, fund, additionalLegendTitle);
jpgFileName = "TestPointLineFIA.jpg";
teeChartWrapper.createPointLineGraph(jpgFileName, indexLinkedValueSelInc, additionalBenValueInc, indexLinkedValueMinInc, minimumValueInc, pointLineGraphNames);
return;
}
In my TeeChartWrapper.java source file, I have:
protected TChart myChart = new TChart();
public void createAllocationPieChartGraph(String jpgFileName, int[] allocAmounts, String[] legendNames, String additionalLegendTitle) {
and
public void createPointLineGraph(String jpgFileName, int[] line1Values, int[] line2Values, int[] line3Values,int[]line4Values, String[]legendNames) {
If I only execute one of these functions from main - everything is fine - but if I execute 2 - there are leftovers from my first graph.
Thanks
Clearing Graph
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi cathy,
I'm afraid those are not TeeChart methods. Could you please send us a simple example project or a code snippet we can run "as-is" to reproduce the problem here?
You can either post your files at news://www.steema.net/steema.public.attachments newsgroup or at our upload page.
Thanks in advance.
I'm afraid those are not TeeChart methods. Could you please send us a simple example project or a code snippet we can run "as-is" to reproduce the problem here?
You can either post your files at news://www.steema.net/steema.public.attachments newsgroup or at our upload page.
Thanks in advance.
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
![]() ![]() ![]() ![]() ![]() ![]() |
Instructions - How to post in this forum |
Ok - let me clean up my test project and post the code. The VB6 corresponding code uses the tchart method
ClearChart
everytime they build a graph image (we build several at a time and put them into separate jpg files.
I quickly wanted know the java equivalent.
I have a couple of other graph issues with my piechart for which you will need my code anyway.
Cathy
ClearChart
everytime they build a graph image (we build several at a time and put them into separate jpg files.
I quickly wanted know the java equivalent.
I have a couple of other graph issues with my piechart for which you will need my code anyway.
Cathy