tags:

views:

33

answers:

1

How to set colors of all series in flot as same?

+1  A: 

When you're providing the data, give them the same color property or index.

For example:

[ { color: 0, label: "Foo", data: [ [10, 1], [17, -14], [30, 5] ] },
  { color: 0, label: "Bar", data: [ [11, 13], [19, 11], [30, -7] ] } ]

In this case they'd both get color #0 in the auto-generated color array Flot has.

Nick Craver