Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
70
Individual bar colors in igx-category chart
posted

Given a data set as such

const usaMedals: any = [
{ Year: "1996", UnitedStates: 148 },
{ Year: "2000", UnitedStates: 142 },
{ Year: "2004", UnitedStates: 134 },
{ Year: "2008", UnitedStates: 131 },
{ Year: "2012", UnitedStates: 135 },
{ Year: "2016", UnitedStates: 146 }
];
this.data = [ usaMedals ];
How is ti possible to have induvidual colors for each of the bars?
Example: 1996 -> Red, 2000 -> Blue etc.
An example for the above would also be nice.
Thanks in advance