Bar(IList<object>, IList<object>, IList<string>, string)

Draws bar chart in the component. Can be use with Line.

Declaration Syntax

public void Bar(IList<object> labels, IList<object> values, IList<string> colors, string key)

Parameters

labels(IList<object>)

The name of each bars. (x axis)

values(IList<object>)

The values of bars. (y axis)

colors(IList<string>)

The color of each bars. Color of the line. You can use "r" for red, "b" for blue, "g" for green, "m" for magenta, "c" for cyan, "y" for yellow, "k" for black and "w" for white. You can also specify the hexadecimal code : "#XXXXXX" with X between 0 and F. The two first number define the red component, the third and the fourth define the green component and the two last numbers define the blue component.

key(string)

Group name, if a group with the same name already exist this function will replace the old one.