Ordering clusteredbarchart display in OWC 10 for asp

C

Charles Waterhouse

I have a page that generates a clusteredbarchart and then saves the chart as
a gif to display on a web page. Same issue, but annoying none the less. The
legend displays the items in the opposite order that the bars are displayed
on the graph. In other words the legend lists the items in the following
order:

Item1
Item 2

But the bars are displayed in the chart in this order:

Item 2
Item 1

Is there something I am missing that would allow me to order either the
legend or the bars so that they are in the same order?

Thanks in advance.
 
A

Alvin Bruney - MVP ASP.NET

the legend takes the order of the series, basically you just need to obtain
a reference to the legend object and re-order it. Two approaches are in the
black book to accomplish this. I don't have disposable code with me to show
you how but it shouldn't be that difficult.

If you can't buy the book, go to amazon.com and use the search inside the
book feature to search for the legend code - you should be able to find the
relevant code snippet.

--
Regards,
Alvin Bruney

Shameless Author Plug
[The Microsoft Office Web Components Black Book with .NET]
www.lulu.com/owc, Amazon, Barnes & Noble etc
Forth-coming VSTO.NET
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top