protected override void SetupChart() { var sunburst = this.Chart as C1.Win.Chart.Sunburst; sunburst.Binding = "Value"; sunburst.BindingName = "Year,Quarter,Month"; sunburst.ChildItemsPath = "Items"; sunburst.DataLabel.Position = PieLabelPosition.Center; sunburst.DataLabel.Content = "{name}"; sunburst.ToolTip.Content = "In {name} Sales : {value}\nShare : {P:0}%"; sunburst.DataSource = HierarchicalDataSource.GetSunburstData(); sunburst.Header.Content = "Sales over the years"; sunburst.Header.Style.Font = StyleInfo.ChartHeaderFont; }
protected override void SetupChart() { var sunburst = this.Chart as C1.Win.Chart.Sunburst; sunburst.Binding = "Value"; sunburst.BindingName = "Year,Quarter,Month"; sunburst.ChildItemsPath = "Items"; sunburst.DataLabel.Position = PieLabelPosition.Center; sunburst.DataLabel.Content = "{name}"; sunburst.ToolTip.Content = "{name} Sales : {value}\nShare : {P:0}%"; sunburst.DataSource = HierarchicalDataSource.GetSunburstData(); sunburst.SelectionMode = ChartSelectionMode.Point; sunburst.SelectedItemPosition = Position.Left; sunburst.SelectedItemOffset = 0.2; sunburst.SelectedIndex = 0; sunburst.Header.Content = "Sales over the years"; sunburst.Header.Style.Font = StyleInfo.ChartHeaderFont; sunburst.Rendered += (s, e) => { _udOffset.Value = (decimal)sunburst.SelectedItemOffset; }; }