<asp:Chart ID="ctUtilizationBySM" runat="server" BackImageAlignment="TopRight"
PaletteCustomColors="IndianRed; DarkSeaGreen; 0, 192, 192; 128, 128, 255; CornflowerBlue; Gold"
Width="700px" BackColor="PapayaWhip" //the width of chart,the backcolor of chart
BackGradientStyle="TopBottom" BackImageTransparentColor="White"
BorderlineColor="Black">
<Legends>
<asp:Legend BackColor="Transparent" Name="Legend2" //legend means a tag,this tag is used notfiy column chart
DockedToChartArea="ChartArea1" Alignment="Far" Docking="Top"
IsDockedInsideChartArea="False" >
<Position Height="8.026756" Width="15.4154158" X="83.5" Y="3" /> //legend's position
</asp:Legend>
<asp:Legend BackColor="Transparent" Name="Legend1"
DockedToChartArea="ChartArea1" Alignment="Far" Docking="Top"
IsDockedInsideChartArea="False">
<Position Height="8.026756" Width="15.4154158" X="72.5" Y="3" />
</asp:Legend>
</Legends>
<BorderSkin SkinStyle="Emboss" /> //add emboss effect,backgroud effect
<Series>// histogram series
<asp:Series Name="Series1" Color="49,130,239" Legend="Legend1" LegendText="Pre Utl%"
IsValueShownAsLabel="True" Font="Microsoft Sans Serif, 6.5pt"
ChartArea="ChartArea1"
CustomProperties="DrawingStyle=Cylinder"> //histogrtam's style
</asp:Series>
<asp:Series Name="Series2" Color="255,174,49" Legend="Legend2" LegendText="Utl%"
IsValueShownAsLabel="True" ChartArea="ChartArea1"
Font="Microsoft Sans Serif, 6.5pt"
CustomProperties="DrawingStyle=Cylinder">
</asp:Series>
</Series>
<ChartAreas> //inner chart
<asp:ChartArea Name="ChartArea1" BackColor="OldLace" //inner chart's color
BorderColor="64, 64, 64, 64" ShadowColor="Transparent"
BackGradientStyle="TopBottom" BackSecondaryColor="White">
<AxisY IsLabelAutoFit="True" LineColor="64, 64, 64, 64">
<MajorGrid LineColor="64, 64, 64, 64" />
<LabelStyle Font="Verdana, 10pt" />
<ScaleBreakStyle LineColor="Transparent" />
</AxisY>// axis y
<AxisX IsLabelAutoFit="False" LabelAutoFitMaxFontSize="8"
LabelAutoFitMinFontSize="5" LineColor="64, 64, 64, 64">
<MajorGrid LineColor="64, 64, 64, 64" />
<LabelStyle Font="Verdana, 8pt" Interval="1"
IntervalOffset="Auto" IntervalOffsetType="Auto" IntervalType="Number"
IsStaggered="True"/>
<ScaleBreakStyle LineColor="Transparent" />
</AxisX> // axis x
<AxisX2 IsLabelAutoFit="False">
<MajorGrid Enabled="False" />
<MajorTickMark Enabled="False" /> // cursor
<LabelStyle Font="Microsoft Sans Serif, 5pt" />
</AxisX2>
<Position Height="77.16558" Width="89.43796" X="4.82481766" Y="16.0208549" /> //chart position
<InnerPlotPosition Height="86.9832" Width="90.5838" X="7.0000" Y="1.40178" /> //chart inner position
<Area3DStyle LightStyle="Realistic" WallWidth="2" />
</asp:ChartArea>
</ChartAreas>
</asp:Chart>
分享到:
相关推荐
vs2010下MFC中利用MSCchart画柱状图、折线图、饼状图,可以看完整类库,并可以整合为自己所用。
VC++ 利用MSchart输出柱状图、拆线图、饼图实例 MSChart是微软推出的基于图形显示的ActiveX控件,可以用来绘制各种数字统计图表。比如折线图、柱状图和饼状图等,本小例子就是VC++利用MSchart输出柱状图、拆线图等...
MSChar的例子,学习,MSChart的第一个例子,X坐标,Y坐标的设置,曲线加柱形图的绘制
MsChart画柱状图插件
软件介绍: VC++利用MSchart输出柱状图、拆线图、饼图实例04439392MSChart是微软推出的基于图形显示的ActiveX控件,可以用来绘制各种数字统计图表。比如折线图、柱状图和饼状图等,本小例子就是VC++利用MSchart输出...
MSChart 柱状图 图表 MSChart 柱状图 图表 MSChart 柱状图 图表 MSChart 柱状图 图表
这是用VC++编写的MFC柱状图、折线图、饼状图
MSChart绘制两条折线,可以随数据实时变化,效果不错 分别从两个串口读取数据,然后绘制成两条曲线,非常好
包含mschart的所有使用样例,超全!
DotNetCharting,ZedGraph,MSChart折线图,柱状图,饼图winform控件多个帮助文档和下载地址
MSChart分析图表vb源代码
如何利用VB中的Mschart控件动态完成制作折线图的源代码
绝对保质保量。 自己制作的一个3D效果可以实时变化的柱状图类。实现任意指定个数,随时删除或者增加,并自动计算柱状图位置及宽度,可以指定柱状图标题、颜色、高度等等。 静态效果与office中的柱状图表相同。
MSChart控件绘制曲线 示例代码 MSChart控件绘制曲线 示例代码
微软的MsChart控件使用示例,图表控件,很多新手朋友遇到过不会用的问题,这个实例很简单,可以帮助你更好的理解使用方法。
VB 柱状图生成的例子,看看,是不是很实用的图表效果,这种图表也叫做直方图表,这是纵向的,也有横向的柱状图.本柱状图的生成是使用了Vb内置的微软图表控件MSChart控件,因此可看作是此控件的应用范例.
VC++利用MSchart输出柱状图、拆线图、饼图实例源码.zip
MSChart分析图表vb源代码,MSChart分析图表vb源代码MSChart分析图表vb源代码MSChart分析图表vb源代码
MSChart控件for .net framework 3.5的C#和VB示例代码,还包括安装文件