如何使一系列标签,互不重叠,说明了什么? ASP.NET 4.0 [英] How to make series labels to show without overlapping each other? ASP.NET 4.0

查看:188
本文介绍了如何使一系列标签,互不重叠,说明了什么? ASP.NET 4.0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发一个图表(使用ASP.NET图表控件)约2或3系上。请看看它的样子吧。正如你所看到的,标签是相互重叠的,并没有看起来非常好。有没有什么办法可以解决这个问题,提高了图表的整体外观?

感谢。

我的code:

  series.ChartType = SeriesChartType.Line
series.YValueType = ChartValueType.Double
series.XValueType = ChartValueType.String
series.BorderWidth = 1
series.ShadowOffset = 1
series.IsValueShownAsLabel = TRUE
series.ToolTip = dtrow.ToString
series.LabelForeColor = Color.Grayseries.LabelToolTip = dtrow.ToStringChartRatings.Series.Add(系列)


解决方案

启用智能标签。

  Chart1.Series [系列1] SmartLabels.Enabled = TRUE。

看看这里智能标签

I am developing a chart (using ASP.NET CHART CONTROL) with about 2 or 3 series on it. Please look how it looks like now. As you can see, the labels are overlapping each other and it does not look very good. Is there any way I can solve this problem and improve the overall look of the chart?

Thanks.

My code:

series.ChartType = SeriesChartType.Line
series.YValueType = ChartValueType.Double
series.XValueType = ChartValueType.String
series.BorderWidth = 1
series.ShadowOffset = 1
series.IsValueShownAsLabel = True
series.ToolTip = dtrow.ToString
series.LabelForeColor = Color.Gray

series.LabelToolTip = dtrow.ToString

ChartRatings.Series.Add(series)

解决方案

Enable Smart Labels.

Chart1.Series["Series1"].SmartLabels.Enabled = true;

Take a look here SmartLabels

这篇关于如何使一系列标签,互不重叠,说明了什么? ASP.NET 4.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆