public LegendItems() { InitializeComponent(); flexChart.Binding = "Shipments"; flexChart.BindingX = "Name"; customSeries = new SeriesWithPointLegendItems() { ShowLegendNames = chbLegendNames.IsChecked.Value, ShowCustomIcons = chbLegendCustomIcons.IsChecked.Value, ShowLegendGroups = chbLegendGroups.IsChecked.Value, }; customSeries.SymbolRendering += VendorSeries_SymbolRendering; customSeries.SeriesName = "Shipments"; flexChart.Series.Add(customSeries); // for small displays (WindowsPhone), rearrange the page in a more vertical fashion // and reduce the size of legend fonts. if (IsWindowsPhoneDevice) { flexChart.LegendStyle = new ChartStyle() { FontSize = 10 }; flexChart.LegendGroupHeaderStyle.FontSize = 10; chbLegendCustomIcons.Margin = chbLegendGroups.Margin = chbLegendNames.Margin = chbPointsLegends.Margin = new Windows.UI.Xaml.Thickness(0); optionPanel.Orientation = Windows.UI.Xaml.Controls.Orientation.Vertical; } }
public LegendRanges() { InitializeComponent(); var recordsSeries = new SeriesWithPointLegendItems(); recordsSeries.SymbolRendering += RecordsSeries_SymbolRendering; flexChart.Series.Add(recordsSeries); }
public LegendItems() { InitializeComponent(); customSeries = new SeriesWithPointLegendItems() { ParentControl = this, ShowLegendNames = chbLegendNames.IsChecked.Value, ShowCustomIcons = chbLegendCustomIcons.IsChecked.Value, ShowLegendGroups = chbLegendGroups.IsChecked.Value, }; customSeries.SeriesName = "Shipments"; customSeries.SymbolRendering += VendorSeries_SymbolRendering; flexChart.Series.Add(customSeries); }
protected override void SetupChart() { this.flexChart1.Header.Content = "US : Highest Temperature recorded"; this.flexChart1.Header.Style.Font = StyleInfo.ChartHeaderFont; this.flexChart1.DataSource = DataService.GetUSStatesTemperature(); this.flexChart1.BindingX = "Name"; this.flexChart1.ChartType = ChartType.Scatter; var ser = new SeriesWithPointLegendItems { Binding = "Value" }; ser.SymbolRendering += Ser_SymbolRendering; this.flexChart1.Series.Add(ser); this.flexChart1.ToolTip.Content = "{x}\r\n{y}"; this.flexChart1.AxisY.Format = "0 °F"; this.flexChart1.Legend.Position = Position.Right; this.flexChart1.Legend.Title = "Temperature Ranges"; }
void SetupChart() { flexChart1.BeginUpdate(); flexChart1.Series.Clear(); flexChart1.DataSource = records; flexChart1.BindingX = "Place"; flexChart1.Binding = "High"; flexChart1.ChartType = ChartType.Scatter; flexChart1.Header.Style.Font = new Font(FontFamily.GenericSansSerif, 15); flexChart1.Header.Content = "U.S. State Record High Temperature"; flexChart1.AxisY.Min = 95; flexChart1.AxisY.Format = "#°F"; var recordsSeries = new SeriesWithPointLegendItems(); recordsSeries.SymbolRendering += RecordsSeries_SymbolRendering; flexChart1.Series.Add(recordsSeries); flexChart1.ToolTip.Content = "{x}\r\n{value}"; flexChart1.EndUpdate(); }
protected override void SetupChart() { this.flexChart1.Header.Content = "Top Smartphone Vendors"; this.flexChart1.Header.Style.Font = StyleInfo.ChartHeaderFont; this.flexChart1.DataSource = vendors; this.flexChart1.BindingX = "Name"; this.flexChart1.Binding = "Shipments"; _customSeries = new SeriesWithPointLegendItems { Name = "Shipments", ShowLegendNames = _chbLegendNames.Checked, ShowCustomIcons = _chbLegendCustomIcons.Checked, ShowLegendGroups = _chbLegendGroups.Checked, }; _customSeries.SymbolRendering += _customSeries_SymbolRendering; this.flexChart1.Series.Add(_customSeries); this.flexChart1.Legend.GroupHeaderStyle.Font = StyleInfo.AxisTitleFont; this.flexChart1.Legend.Position = Position.Right; this.flexChart1.ToolTip.Content = "{seriesName}\r\n{value}"; }
void SetupChart() { flexChart1.BeginUpdate(); flexChart1.Series.Clear(); flexChart1.DataSource = vendors; flexChart1.BindingX = "Name"; flexChart1.Binding = "Shipments"; flexChart1.Header.Style.Font = new Font(FontFamily.GenericSansSerif, 15); flexChart1.Header.Content = "Top Smartphone Vendors"; customSeries = new SeriesWithPointLegendItems() { ShowLegendNames = chbLegendNames.Checked, ShowCustomIcons = chbLegendCustomIcons.Checked, ShowLegendGroups = chbLegendGroups.Checked, }; customSeries.Name = "Shipments"; customSeries.SymbolRendering += VendorSeries_SymbolRendering; flexChart1.Legend.GroupHeaderStyle.Font = new Font(flexChart1.Font.FontFamily, 14f, FontStyle.Italic); flexChart1.Series.Add(customSeries); flexChart1.ToolTip.Content = "{seriesName}\r\n{value}"; flexChart1.EndUpdate(); }