Enable/Disable 3D property of a chart programatically

BoskoBosko Belgrade, Serbia
edited 9:37PM in FastReport .NET
Can I do this?

For example, I want to put CheckBox on windows form, and when it is checked, 3D will be enabled in a chart, in a "column type" series.

I tried something like:
FastReport.MSChart.MSChartObject chart1 = (FastReport.MSChart.MSChartObject)report1.FindObject("MSChart1");

but beyond that, I didn't found property to enable/disable 3D in a chart...

Comments

  • edited 9:37PM
    MSChartObject has "Chart" property - it's a Microsoft Chart control. To enable 3D, do the following:

    chart1.Chart.ChartAreas[0].Area3DStyle.Enable3D = true;

    For further information, refer to MS Chart control documentation.

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.