I am using SmartClient Version: v10.0p_2015-08-20/PowerEdition Deployment (built 2015-08-20) and FireFox ESR 24.3.0.
I'm developing Pie chart and Column chart, and want to change shadowing and lighting of the charts.
Following is a sample codes what I tried to test.
---------------------------------------------------
FacetChart pieChart = new FacetChat();
...
DrawSector pieSliceProperties = pieChart.getPieSliceProperties();
/* Change shadowing */
Shadow shadow = new Shadow();
shadow.setBlur(10);
pieSliceProperties.setShadow(shadow);
/* Change lighting */
SimpleGradient fillGradient = new SimpleGradient();
fillGradient.setDirection(45.0f);
fillGradient.setStartColor("#000000");
fillGradient.setEndColor("#ffffff");
pieSliceProperties.setFillGradient( fillGradient );
pieChart.setPieSliceProperties( pieSliceProperties );
...
pieChart.draw();
---------------------------------------------------
However, above codes didn't work.
Would you please advise me what I have to do?
Regards,
Ted.
I'm developing Pie chart and Column chart, and want to change shadowing and lighting of the charts.
Following is a sample codes what I tried to test.
---------------------------------------------------
FacetChart pieChart = new FacetChat();
...
DrawSector pieSliceProperties = pieChart.getPieSliceProperties();
/* Change shadowing */
Shadow shadow = new Shadow();
shadow.setBlur(10);
pieSliceProperties.setShadow(shadow);
/* Change lighting */
SimpleGradient fillGradient = new SimpleGradient();
fillGradient.setDirection(45.0f);
fillGradient.setStartColor("#000000");
fillGradient.setEndColor("#ffffff");
pieSliceProperties.setFillGradient( fillGradient );
pieChart.setPieSliceProperties( pieSliceProperties );
...
pieChart.draw();
---------------------------------------------------
However, above codes didn't work.
Would you please advise me what I have to do?
Regards,
Ted.
Comment