开发者

Chart Problem, How to get the legend separated from the Chart?

I am working with the Chart Control for framework 3.5: http://weblogs.asp.net/scottgu/archive/2008/1开发者_Go百科1/24/new-asp-net-charting-control-lt-asp-chart-runat-quot-server-quot-gt.aspx

I cannot put the legend more separated from the chart, this is what I get:

Chart Problem, How to get the legend separated from the Chart?

Another problem I have, for the orange part (videoconferencia) I pass data only for the 18/05/2010 and the 25/05/1000, but it continues on 20/05/2010, a day where there is nothing. So that you can see it more clearly I erase the legend:

Chart Problem, How to get the legend separated from the Chart?


I have found the solution to my problems.

The first one is something easy and implemented with this control, I haven't realised.

You can define which is the space the chart is going to occupy with the node "position" inside the asp:ChartArea tag:

I have changed the Height percent to 60 so this does not occupy all the space available.

For the problem where I have data that extends along more days than I pass it. I use a workaround.

I pass a value of 0 to all the dates I am using (here from 18/05/2010 to 24/05/2010), and then I add the real data. Not a very subtle one, but it works.

The result is:

Chart Problem, How to get the legend separated from the Chart?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜