I use SubChartTool to show SubTChart over the main TChart via the code like this:
Code: Select all
Bar bar = new Bar();
bar.Marks.Visible = false;
bar.Add(5);
bar.Add(7);
MyTChart.Series.Add(bar);
SubChartTool subChartTool = new SubChartTool();
MyTChart.Tools.Add(subChartTool);
TChart subChart = subChartTool.Charts.AddChart(string.Empty);
subChart.Aspect.View3D = false;
subChart.Panel.Color = Colors.Transparent;
subChart.Walls.Visible = false;
subChart.Axes.Visible = false;
Pie subChartPie = new Pie();
subChartPie.Marks.Visible = false;
subChartPie.Add(10);
subChartPie.Add(6);
subChartPie.Brush.Color = Colors.Red;
subChart.Series.Add(subChartPie);
Code: Select all
MyTChart.Export.Image.XAML.Save(saveDialog.FileName);