Palette CreateUrbanRuralDivisionDynamicPalette() { CustomPalette palette = new CustomPalette(); palette.Colors.Add(Color.FromArgb(0xFF, 0xC5, 0x64, 0x50)); palette.Colors.Add(Color.FromArgb(0xFF, 0x5F, 0x8B, 0x95)); return(palette); }
Palette CreateInnerDoughnutPalette() { CustomPalette palette = new CustomPalette(); palette.Colors.Add(this.palette[10]); palette.Colors.Add(this.palette[11]); return(palette); }
Palette CreateOuterDoughnutPalette() { CustomPalette palette = new CustomPalette(); for (int i = 0; i < 10; i++) { palette.Colors.Add(this.palette[i]); } return(palette); }
private void BindingChartRejectRslt(DataTable _dtChartData) { try { if (this.pieDiagramRsltMain.Series.Count > 0) { this.pieDiagramRsltMain.Series.Clear(); } this.chartErrPrctPie.BeginInit(); // 차트 색 지정 (색상 수 : 7개) CustomPalette customPalette = new CustomPalette(); customPalette.Colors.Add(Colors.LightBlue); customPalette.Colors.Add(Colors.IndianRed); customPalette.Colors.Add(Colors.SteelBlue); customPalette.Colors.Add(Colors.Orange); customPalette.Colors.Add(Colors.OliveDrab); customPalette.Colors.Add(Colors.PapayaWhip); customPalette.Colors.Add(Colors.LightCoral); chartErrPrctPie.Palette = customPalette; this.g_Is3D = new PieSeries3D(); this.g_Is3D.ArgumentScaleType = ScaleType.Auto; this.g_Is3D.DataSourceSorted = false; this.g_Is3D.ArgumentDataMember = "Argument_str"; this.g_Is3D.ValueDataMember = "Value"; List <ChartDataPointMember> pies = this.GetGenerateDataCell(_dtChartData); this.g_Is3D.DataSource = pies; this.g_Is3D.LegendTextPattern = "{S} : {A:0}"; if (this.pieDiagramRsltMain.Series.Count > 0) { this.pieDiagramRsltMain.Series.Clear(); } this.pieDiagramRsltMain.Series.Add(this.g_Is3D); // 파이차트 마우스 회전 X this.pieDiagramRsltMain.RuntimeRotation = false; // 파이차트 Label this.g_Is3D.LabelsVisibility = true; this.g_Is3D.Label = new SeriesLabel(); this.g_Is3D.Label.TextPattern = "{A}: {VP:P0}"; PieSeries3D.SetLabelPosition(this.g_Is3D.Label, PieLabelPosition.TwoColumns); } catch { throw; } finally { this.chartErrPrctPie.EndInit(); this.g_Is3D = null; } }
private void Window_Initialized(object sender, EventArgs e) { colorEdit1.Palettes.Remove(colorEdit1.Palettes["Standard Colors"]); colorEdit1.Palettes.Remove(colorEdit1.Palettes["Theme Colors"]); colorEdit1.Palettes.Clear(); colorEdit1.Palettes.Add(CustomPalette.CreateGradientPalette("标准色", PredefinedColorCollections.Standard)); //colorEdit1.Palettes.Add( // new CustomPalette("Custom RGB Colors", // new List<Color>() { // Color.FromRgb(150, 18, 30), // Color.FromRgb(20, 40, 20), // Color.FromRgb(88, 73, 29) })); }
void SetPalettes() { CustomPalette palette = new CustomPalette(); palette.Colors.Add(Color.FromArgb(0xFF, 0x84, 0x96, 0x66)); foreach (Series series in cartesianChart.Series) { series.View.Palette = palette; ((ScatterLineSeriesView)series.View).StrokeStyle = new StrokeStyle() { Thickness = 2 }; } }
public MainPage() { InitializeComponent(); // Removes the 'Standard Colors' palette. colorEdit1.Palettes.Remove(colorEdit1.Palettes["Standard Colors"]); // Adds a custom gradient palette. colorEdit1.Palettes.Add(CustomPalette.CreateGradientPalette("Apex Colors", PredefinedColorCollections.Apex)); // Adds a new palette with three custom RGB colors. colorEdit1.Palettes.Add(new CustomPalette("Custom RGB Colors", new List <Color>() { Color.FromArgb(100, 150, 18, 30), Color.FromArgb(255, 20, 40, 20), Color.FromArgb(255, 88, 73, 29) })); }
public DarkTheme() { Palette = new CustomPalette { Primary = PRIMARY, PrimaryContrastText = "#FFFFFF", Secondary = PRIMARY, SecondaryContrastText = "#FFFFFF", AppbarBackground = BACKGROUND_DARK, Tertiary = TEXT, Footer = BACKGROUND_DARK, FooterDark = BACKGROUND_DARKEST, FooterText = TEXT, Black = BACKGROUND_DEFAULT, Background = BACKGROUND_LIGHT, BackgroundGrey = BACKGROUND_LIGHT, Surface = BACKGROUND_DEFAULT, DrawerBackground = BACKGROUND_DARK, DrawerText = TEXT, DrawerIcon = "rgba(255,255,255, 0.50)", AppbarText = TEXT, TextPrimary = TEXT, TextSecondary = TEXT, ActionDefault = "#adadb1", ActionDisabled = "rgba(255,255,255, 0.26)", ActionDisabledBackground = "rgba(255,255,255, 0.12)", Divider = "rgba(255,255,255, 0.12)", DividerLight = "rgba(255,255,255, 0.12)", TableLines = "rgba(255,255,255, 0.12)", TableHover = "rgba(255,255,255, 0.03)", TableStriped = "rgba(255,255,255, 0.06)", LinesDefault = "rgba(255,255,255, 0.12)", LinesInputs = "rgba(255,255,255, 0.3)", TextDisabled = "rgba(255,255,255, 0.2)" }; LayoutProperties = new LayoutProperties { DrawerWidthLeft = "260px" }; }
public Form1() { InitializeComponent(); // Loads a dashboard that contains a choropleth map with the default palette. Dashboard dashboard = new Dashboard(); dashboard.LoadFromXml(@"..\..\Data\Dashboard.xml"); // Gets the ValueMap object that provides data for coloring map shapes. ChoroplethMapDashboardItem map = (ChoroplethMapDashboardItem)dashboard.Items[0]; ValueMap populationMap = (ValueMap)map.Maps[0]; // Creates CustomPalette and CustomScale objects. CustomPalette customPalette = new CustomPalette(); CustomScale customScale = new CustomScale(); // Creates lists of custom colors and range stops. List <Color> customColors = new List <Color>(); List <double> rangeStops = new List <double>(); // Specifies that the absolute scale is used to define a set of colors. customScale.IsPercent = false; // Specifies custom colors and corresponding range stops. customColors.Add(Color.LightBlue); rangeStops.Add(100000); customColors.Add(Color.SkyBlue); rangeStops.Add(1000000); customColors.Add(Color.LightCoral); rangeStops.Add(10000000); customColors.Add(Color.Tomato); rangeStops.Add(100000000); customColors.Add(Color.Maroon); rangeStops.Add(1000000000); // Adds custom colors and range stops to a custom palette and corresponding custom scale. customPalette.Colors.AddRange(customColors); customScale.RangeStops.AddRange(rangeStops); // Specifies a custom palette and scale for the ValueMap object. populationMap.Palette = customPalette; populationMap.Scale = customScale; // Sets the customized dashboard as a currently opened dashboard. dashboardViewer1.Dashboard = dashboard; }
public LightTheme() { Palette = new CustomPalette { Primary = Colors.Red.Default, PrimaryContrastText = "#FFFFFF", Secondary = Colors.Orange.Accent3, SecondaryContrastText = "#FFFFFF", AppbarBackground = Colors.Red.Default, Tertiary = Colors.BlueGrey.Default, Footer = Colors.Red.Default, FooterDark = "#b9000a", FooterText = "#FFFFFF", Background = "#F1F1F1", }; LayoutProperties = new LayoutProperties { DrawerWidthLeft = "260px" }; }