Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
570
Set legend bounds on a composite chart
posted

I have a legend on a composite chart but the legend overlaps the the chart area. How do I fix it?

 var legend = new CompositeLegend();
 legend.ChartLayers.Add(layer);
 legend.Bounds = new Rectangle(5, 85, 80, 12);
legend.BoundsMeasureType = MeasureType.Percentage;
legend.PE.ElementType = PaintElementType.Gradient;
legend.PE.FillGradientStyle = GradientStyle.ForwardDiagonal;
legend.PE.Fill = Color.CornflowerBlue;
legend.PE.FillStopColor = Color.Transparent;
legend.Border.CornerRadius = 10;
legend.Border.Thickness = 1;
ultraChart.CompositeChart.Legends.Add(legend);

Parents Reply Children
No Data