Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

Selfmade chart

$
0
0

Hi, I need to create a chart with specific nods behaviour. It's should groups particular way and provide rich context help. So, the WPF Toolkit is a powerful thing, but not suitable to me like other commercial solutions. I'm realized I need to create it by myself and it is strange... You can find a tons of example of anything in WPF, even how to build a Spaceship, but here is no such thing like examples of code for the simple charts, like with lines and nods in 2 dimensions.

So, to do chart I have a two ways. First is to use Canvas with fixed coordinates. I can draw lines, nods and put a labels there, which is just perfect for fixed size window. But my window is sizable and I assume there will be some problems with scaling. The other way is to use grid. I can separate it to the columns with another grid inside of each of it. Each of this grid I can divide to 3 rows where 1st and 3rd with *-size and 2nd in the middle with fixed side for each node. in this case I have perfectly spraded nods, but have no idea, how to connect it with lines.

As result I need something like this simple chart.

http://www.spreadsheetconverter.com/samples/charts/images/line-chart-web.png

I do understand, the main question is why to invent the wheel? Believe me, Im the first one, who is voting  for the developed solutions and I do use WFP Toolkit already. But some time you need really something extraordinary and have to reinvent the basis. Could you advise me the appropriate way for creation the static (drawn at once with no live addings nods), resizable chart with lines and nods? Im not really strong in mathematics, and appreciate something easier than based on trigonometry Spaceship program. Thanks.


Aleksey





Viewing all articles
Browse latest Browse all 18858

Trending Articles