简体   繁体   English

使用asp.net 3.5图表控件的列线图

[英]Column Line Chart using asp.net 3.5 chart control

I have created a sample column chart using asp.net 3.5 (visual studio 2008) chart control by binding values from database.It is working. 我已经通过绑定数据库中的值使用asp.net 3.5(Visual Studio 2008)图表控件创建了一个示例柱形图。 Now I want to show a line and column chart on y axis of same graph. 现在,我想在同一张图的y轴上显示折线图和柱形图。 Is it possible? 可能吗? I copied same code as like in the below link.But it shows nothing. 我复制了以下链接中的相同代码,但未显示任何内容。

https://www.experts-exchange.com/viewCodeSnippet.jsp?codeSnippetId=20-40238814-1 https://www.experts-exchange.com/viewCodeSnippet.jsp?codeSnippetId=20-40238814-1

You need to actually put the Chart object onto the screen. 您实际上需要将Chart对象放到屏幕上。 A simple docking would do the trick. 一个简单的对接就可以解决问题。

chart.Parent = this; 
chart.Dock = DockStyle.Fill;

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM