ChartPaletteColorizerBase.Palette Property
Gets or sets a palette used by this class’ descendants.
Namespace: DevExpress.XtraCharts
Assembly: DevExpress.XtraCharts.v18.2.dll
Declaration
[TypeConverter(typeof(CollectionTypeConverter))]
[Browsable(false)]
public Palette Palette { get; set; }
Property Value
Type | Description |
---|---|
Palette | A Palette object. |
Example
To use the Range Colorizer, perform the following steps.
- Create a RangeColorizer object and assign it to the SeriesBase.Colorizer property.
- Populate the RangeColorizer.RangeStops collection.
- Specify the
ChartPaletteColorizerBase.Palette
property if you want to use a non-default palette to colorize chart. - In addition, it is possible to specify the RangeColorizer.ValueProvider property to customize the way used to provide floating point number values based on color data member values.
Note
A complete sample project is available at https://github.com/DevExpress-Examples/how-to-colorize-charts-using-the-range-colorizer-t232519
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace RangeColorizerExample {
static class Program {
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main() {
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form1());
}
}
}
See Also