Misc. Issues with java graphs
Posted: Tue Sep 09, 2008 10:59 pm
I have uploaded a winzip file - tosteema.zip which contains my java project and jpg images generated as well as corresponding images created using your active x teechart software using VB6. The readme.txt file in the zip file contains my questions as follows:
I need assistance with the following - see zip file uploaded to website - tosteema.zip
1. Referring to TestInitialAllocation.jpg:
This is generated with the following call from Teechart.java which can be run as an application (see main).
teeChartWrapper.createAllocationPieChartGraph(jpgFileName, initAllocation, fund, additionalLegendTitle);
In teeChartWrapper.java, I am trying to underline the last line of the annotation before placing the sum of all the numbers and these 2 lines do not work:
if( i == allocAmounts.length - 1) {
tools[toolCount].getShape().getFont().setUnderline(true);
}
See VBpiechart.bmp for desired look and feel
2. Referring to TestInitialAllocation.jpg - noting the slice of the pie chart referred to in the Legend as JNL/Eagle Core Equity (light blue) - how do I get rid of the
"crooked line" as well as smoothing out other borders. I've also attached VBpiechart.bmp - which is the graph created from teechart active x version.
3. When I execute all 3 of these lines from teechart.java
// teeChartWrapper.createAllocationPieChartGraph(jpgFileName, initAllocation, fund, additionalLegendTitle);
teeChartWrapper.createPointLineGraph(jpgFileName, indexLinkedValueSelInc, additionalBenValueInc, indexLinkedValueMinInc, minimumValueInc, pointLineGraphNames);
// teeChartWrapper.createStackedBarGraph(jpgFileName, indexLinkedValueSelInc, MonAveInc, PointtoPointInc, MonSumInc, stackedBarGraphNames);
only the first jpg file comes out OK, the 2nd and 3rd have "leftovers" from the previous graphs, what code is used to "clear the canvas"?
This project is a stand-alone project generating the types of graphs that will be generated dynamically within a web app whereby numerous graphs will be created and
imbedded in a final pdf.
4, Referring to teststackedbarFIA.jpg and VBstackedbar.jpg
a. How do I get rid of the thick black borders on the legend to look more like the VB legend
b. How do I get rid of the lines which seem to be connecting the bars at the top?
c. On the left axis - the "yellow wall" needs to be more the color of the VB left axis wall. How do I do this? In the VB code, it didn't appear that they were overriding
this wall shade?
Thanks
I need assistance with the following - see zip file uploaded to website - tosteema.zip
1. Referring to TestInitialAllocation.jpg:
This is generated with the following call from Teechart.java which can be run as an application (see main).
teeChartWrapper.createAllocationPieChartGraph(jpgFileName, initAllocation, fund, additionalLegendTitle);
In teeChartWrapper.java, I am trying to underline the last line of the annotation before placing the sum of all the numbers and these 2 lines do not work:
if( i == allocAmounts.length - 1) {
tools[toolCount].getShape().getFont().setUnderline(true);
}
See VBpiechart.bmp for desired look and feel
2. Referring to TestInitialAllocation.jpg - noting the slice of the pie chart referred to in the Legend as JNL/Eagle Core Equity (light blue) - how do I get rid of the
"crooked line" as well as smoothing out other borders. I've also attached VBpiechart.bmp - which is the graph created from teechart active x version.
3. When I execute all 3 of these lines from teechart.java
// teeChartWrapper.createAllocationPieChartGraph(jpgFileName, initAllocation, fund, additionalLegendTitle);
teeChartWrapper.createPointLineGraph(jpgFileName, indexLinkedValueSelInc, additionalBenValueInc, indexLinkedValueMinInc, minimumValueInc, pointLineGraphNames);
// teeChartWrapper.createStackedBarGraph(jpgFileName, indexLinkedValueSelInc, MonAveInc, PointtoPointInc, MonSumInc, stackedBarGraphNames);
only the first jpg file comes out OK, the 2nd and 3rd have "leftovers" from the previous graphs, what code is used to "clear the canvas"?
This project is a stand-alone project generating the types of graphs that will be generated dynamically within a web app whereby numerous graphs will be created and
imbedded in a final pdf.
4, Referring to teststackedbarFIA.jpg and VBstackedbar.jpg
a. How do I get rid of the thick black borders on the legend to look more like the VB legend
b. How do I get rid of the lines which seem to be connecting the bars at the top?
c. On the left axis - the "yellow wall" needs to be more the color of the VB left axis wall. How do I do this? In the VB code, it didn't appear that they were overriding
this wall shade?
Thanks