how to specify custom color attribute in line chart?
gnuman opened this issue · 1 comments
gnuman commented
Hi
I am not sure this is a bug or enhancement, I am using multi series in Line chart and i want custom colors for each series.
I specify data as follows :-
data={[{
name: 'comments',
values: this.props.comments,
color: 'red'
}, {
name: 'likes',
values: this.props.likes,
color: 'blue'
}]}
However these values don't seem to get worked, can you please let me know how to specify custom color values?
yang-wei commented
Hi you can do that.
Looks at colorAccesor in this documentation