Hello Claire,
You need to add to colors like this:
private class CustomPalette : ChartPalette
{
public CustomPalette()
{
var color1 = Color.Purple;
var color2 = Color.CornflowerBlue;
var color3 = Color.DarkBlue;
var color4 = Color.LawnGreen;
var color5 = Color.Red;
var color6 = Color.Pink;
var color7 = Color.Black;
var color8 = Color.Orange;
GlobalEntries.Add(color1, color1);
GlobalEntries.Add(color2, color2);
GlobalEntries.Add(color3, color3);
GlobalEntries.Add(color4, color4);
GlobalEntries.Add(color5, color5);
GlobalEntries.Add(color6, color6);
GlobalEntries.Add(color7, color7);
GlobalEntries.Add(color8, color8);
}
}
The first argument specifies the fill color, the second the border color which is used for the line.
I hope this helps. Should you have any other questions, do not hesitate to ask.
Regards,
Dimitar
Progress Telerik
Get
quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers.
Learn More.