日期:2014-05-19  浏览次数:20582 次

像彩票那样走势图要怎么做啊。。
给个思路。。或是简单说一下

------解决方案--------------------
每两个数之间确定一条直线...

多分几个点,然后连上线行了.
------解决方案--------------------
我以前用VML
感觉不错
只是他只能在IE下工作
------解决方案--------------------
Dundas.Chart.ASP.NET.Enterprise.4.1.rar

------解决方案--------------------
彩票也有走势啊,那东西能算出来吗
------解决方案--------------------
http://www.51aspx.com/CV/WebChart
------解决方案--------------------
可以用owc
------解决方案--------------------
http://www.wave12.com

图表组件wsChart4.6(DLL版)



------解决方案--------------------
这是我以前写的一个画图的

用的是owc

输入参数是两个炼表
以其中之一作说明 MutiaxesX
MutiaxesX里面包含多个Arraylist
每一个记录了一条曲线的横轴的坐标
MutiaxesY同理,分别记录了这几条曲线的Y坐标
mapwidth可以设为800
高可以设为400

剩下两个word是图的title
show——mode对你来说没用

public class ChartDrawing : System.Web.UI.Page
{
ArrayList MutiaxesX;
ArrayList MutiaxesY;
ArrayList Mutinodelist;
int map_width;
int map_height;
int chart_width;
int chart_height;
Point leftup;
Point rightdown;
string[] keyword;
int max;
const int margin = 75;
const int pointadius = 3;
const int axesXcount = 4;
const int axesYcount = 6;
const int stringwidth = 30;
const int stringheight = 12;
float expandrate = 0.1F;
int legendareaX;
int legendareaY;
string showmode;
string strkeyword;

ArrayList lengendword;

Color[] pointcolor ={
Color.Blue,
Color.Red,
Color.Green,
Color.Purple
};


public ChartDrawing(ArrayList MutiaxesX, ArrayList MutiaxesY, int mapwidth, int mapheight, string word,string _mode)
{

max = findmax(MutiaxesY);
map_width = mapwidth;
map_height = mapheight;
chart_width = map_width - margin * 2;
chart_height = map_height - margin * 2;
leftup = new Point(margin, margin);
rightdown = new Point(leftup.X + chart_width, leftup.Y + chart_height);
legendareaX = margin + chart_width - 50;
legendareaY = 25;
this.Mutinodelist = new ArrayList();
this.MutiaxesX = MutiaxesX;
//this.axesY = new ArrayList();
this.MutiaxesY = MutiaxesY;
this.keyword = word;
this.showmode = _mode;
int maxY = max + Convert.ToInt32(max * expandrate);
lengendword = new ArrayList();


for (int i = 0; i < keyword.Length; i++)
if (keyword[i] != " ") lengendword.Add(keyword[i]);

for (int j = 0; j < MutiaxesX.Count; j++)
{
ArrayList nodelist = new ArrayList();
ArrayList axesX = (ArrayList)MutiaxesX[j];
ArrayList axesY = (ArrayList)MutiaxesY[j];