Spotfire ScatterPlot Set Color By Category (C#, IronPython)
var coloring = scatterPlot.ColorAxis.Coloring;
coloring.Clear();
coloring.DefaultColor = Color.White;
var categoricalColorRule = coloring.AddCategoricalColorRule();
var colorKeys = categoricalColorRule.GetExplicitCategories();
scatterPlot.ColorAxis.Coloring.SetColorForCategory(colorKeys[0], Color.ForestGreen);
scatterPlot.ColorAxis.Coloring.SetColorForCategory(colorKeys[1], Color.Blue);
scatterPlot.ColorAxis.Coloring.SetColorForCategory(colorKeys[2], Color.Orange);
Comments
Post a Comment