Clearing Graph

TeeChart for Java (NetBeans, Eclipse, Android Studio, etc)
Post Reply
cathy
Newbie
Newbie
Posts: 8
Joined: Tue Mar 11, 2008 12:00 am

Clearing Graph

Post by cathy » Wed Jul 16, 2008 3:43 pm

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

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Thu Jul 17, 2008 7:43 am

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

cathy
Newbie
Newbie
Posts: 8
Joined: Tue Mar 11, 2008 12:00 am

Post by cathy » Thu Jul 17, 2008 6:18 pm

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

Post Reply