Page 1 of 1

Clearing Graph

Posted: Wed Jul 16, 2008 3:43 pm
by 7667581
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

Posted: Thu Jul 17, 2008 7:43 am
by narcis
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.

Posted: Thu Jul 17, 2008 6:18 pm
by 7667581
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