通过SymbolRendering可以设置
- public Flexchart()
- {
- InitializeComponent();
- flexChart.Series[0].SymbolRendering += Flexchart_SymbolRendering;
-
- }
- List<SolidColorBrush> brushs = new List<SolidColorBrush>() {
- new SolidColorBrush(Colors.Red),
- new SolidColorBrush(Colors.OrangeRed),
- new SolidColorBrush(Colors.Orange),
- new SolidColorBrush(Colors.Yellow),
- new SolidColorBrush(Colors.YellowGreen),
- new SolidColorBrush(Colors.GreenYellow)
- };
- private void Flexchart_SymbolRendering(object? sender, C1.WPF.Chart.RenderSymbolEventArgs e)
- {
-
- e.Engine.SetFill(brushs[e.Index]);
-
- }
复制代码 |