图表控件的两个数据集条重叠 [英] Chart control two data set bars overlapping

查看:115
本文介绍了图表控件的两个数据集条重叠的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在研究一个ASP.NET项目,并且我有一个条形图,其中两个数据集彼此并排。

I am working on a ASP.NET project and I have a bar chart with two data sets alongside each other. How do I get them to over lap.

一项数据是储罐尺寸,另一项是当前水平。

One item of data is a tank size, the other is the current level.

推荐答案

<asp:Series ChartArea="ChartArea1" Font="MS Mincho, 8pt, style=Bold" 
            Legend="Legend1" Name="Tank Size" XValueMember="Serial" 
            YValueMembers="DeviceSize" ChartType="StackedColumn">
        </asp:Series>
        <asp:Series Legend="Legend1" Name="Current Level" XValueMember="Serial" 
            YValueMembers="DeviceLevel" YValuesPerPoint="2" 
            Font="Mangal, 8pt, style=Bold" ChartType="Column">

我将其中一个柱形图更改为ChartType,将柱形图更改为ChartType-这可能是一个肮脏的方式,但我的工作。那就是我所关心的全部。

I changed to the ChartType on one of the bars to column and one to stacked - this might be a dirty way but i works. Thats all I care about.

这篇关于图表控件的两个数据集条重叠的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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