Developing .NET image graph

3/1/2007 11:00:00 AM

Yesterday i did get some experience using drawing class and creating some graph images.

My first example is a line graph which is getting a int array input and parse into some line points, the ends of the line is the average of the total input numbers.

Check out the current line graph here

http://dnohr.dk/dev/LineGraph.ashx
http://dnohr.dk/dev/LineGraph.ashx?point=10,20,5,9,16,12
http://dnohr.dk/dev/LineGraph.ashx?x=random

The first image is a line graph where i creates some random input numbers. Second picture is it possible to set your own input numbers, change change the numbers in the URL The last picture is a debug i did create to play with the line graph.

It creates 100 lines and mix the directions using the image cordinates, quite random lines :D I will develop more on this, because there is a height bug, if the input number is too high, I will need to create a algoritm for that.



Kommentarer

Der er ingen kommentarer skrevet

Tilføj en kommentar

Navn
Email (Bliver ikke vist på siden)
Hjemmeside
Hvad er 3 + 1?
Kommentar
 
Copyright © 2005 - 2010 Daniel Nøhr. All rights reserved