How do I change the style of the legend in Flot?

It has changed names is all, the new class is legendLabel for the labels and legendColorBox for the color box.

It has changed names is all, the new class is legendLabel for the labels and legendColorBox for the color box. You can see this in jquery.flot.js. EDIT in response, it seems that the question is how do you style the whole table.

Assume your flot placeholder is something like this: Then you can define CSS like this: #foo > div. Legend > table { border: 2px red solid; } See it here in action: jsfiddle.net/ryleyb/YkDpG/1.

Sorry, I meant to type 'tableClass' rather than "labelClass" – ssi_bas Mar 30 at 20:19 @ssi_bas - I edited my answer to show some details on how to style the legend as a whole – Ryley Mar 30 at 20:40 thanks for the info, I tried it with FF and it works (though I have some other issues I need to deal with), however when I try it with IE6 (which is the target browser, unfortunately) there is no change to the legend style. Any ideas (apart from dumping IE6, that is)? – ssi_bas Mar 30 at 21:20 Oh, yes - you can't use the same CSS selectors in IE6, sadly... just get rid of both > in the CSS selector and just have single spaces instead (i.e.

#foo div. Legend table) – Ryley Mar 30 at 21:25 excellent! I am much obliged!

Thank you. – ssi_bas Mar 30 at 21:27.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions