本身可以通过C1Chart上的Theme和Palette设置内置的其他方案,调整外观。
如果要自定义,参考如下代码:- this.c1Chart1.Palette = ColorGeneration.Default;
- Brush[] customBrushes = new Brush[5] { Brushes.Blue, Brushes.Orange, Brushes.Yellow, Brushes.Red,Brushes.Purple };
- this.c1Chart1.CustomPalette = customBrushes;
复制代码 |