Quantcast
Channel: Our ComponentOne » All Posts
Viewing all articles
Browse latest Browse all 14170

Reply To: C1Chart color bars customization

$
0
0

Hello,

Kindly try the following code :

     C1Chart chartSL;
        void chart_ControlAvailable(object sender, ControlAvailableEventArgs e)
        {
            chartSL = (C1.Silverlight.Chart.C1Chart)e.Control;
            chartSL.Loaded += chartSL_Loaded;
        }

        void chartSL_Loaded(object sender, System.Windows.RoutedEventArgs e)
        {
            chartSL.BeginUpdate();
            chartSL.Data.Children[0].ConnectionFill = new System.Windows.Media.SolidColorBrush(Color.FromArgb(255, 247, 130, 67));
            chartSL.Data.Children[1].SymbolFill = new System.Windows.Media.SolidColorBrush(Color.FromArgb(255, 48, 96, 144));
            chartSL.EndUpdate();
        }

Regards


Viewing all articles
Browse latest Browse all 14170

Trending Articles