MSChart自定义标签问题-以表格格式组织标签/左对齐

时间:2019-06-21 15:49:00

标签: asp.net data-visualization mschart

我们正在使用System.Web.UI.DataVisualization.Charting。我们的报告中有条形图。为此,我们使用CustomLabels。标签包含字符串和数字。当前,默认情况下,标签显示在左侧。

但是,我们的客户希望标签和编号以表格形式进行组织,或者至少使其对齐。但是,我们找不到任何方法吗?

我的图表如下所示 https://images.app.goo.gl/6D3Lt6Zop1f18thX6

我希望它看起来像这样 https://images.app.goo.gl/hcmSgZUCZZZdw1k78

elementLabel = ChartArea1.AxisX.CustomLabels.Add(elementCount - .5 - y, 
elementCount + .5 - y, fittedText);

 elementLabel.GridTicks = GridTickTypes.TickMark;



0 个答案:

没有答案