Charting in Gtk / Gtk# - c#

i would like to create a simple charting system for stock in Gtk# (and C#), with the possibilities to draw inside it.
I don't know where to start: it's best to start from scratch ?
Or using something pre-made ?
Is it best to use Cairo ? Or System.Drawing ?
Are there some piece of code i can reuse ?
Thanks

Medsphere has some custom gtk# widgets and amongst them is a Graph, have a look here for the overview and here for the Graph documentation.

You can try
nplot :
NPlot includes controls for Windows.Forms, ASP.NET and a class for creating Bitmaps. A GTK# control is also available.

I had the same questions some time ago, and though it is certainly possible to use third party solutions, I researched how to do it myself, finally determining Mono's Cairo# was the way to go. It is possible to use the graphics primitives in Gdk.Window, but that seems to be obsolete.
About System.Drawing, that would be suitable for charting in Windows Forms.
I even developed a demo about charting in Gtk# in the process.
Hope this helps.

if you want to use free charts- use Microsoft Chart Controls
don't forget to vote up or mark as answer...

Related

C# Textbox placeholder transition in Windows Form

Is it possible to to these kind of textbox in windows form ? If yes, How? and can you give me a reference of that in order to achieve this. I've been a front end developer before and it's easy to do on web. I think i'm not the only one who want to know these. Thank you
I think to a certain extent you can get above animations but it will not be fast or extremely customizable like WPF here are my recommendations:
Bunifu framework
Syncfusion
Unfortunately both these are paid frameworks. If I do find a stable free framework I will update this answer.
Also Please Read up on more at How good can Winforms make a UI look using free resources only?

How to use XNA in WPF?

So... I want to make a game, and I want to write it in C#. In the past, I've made a mario clone using C++ and OpenGL. I quite like OpenGL, but I don't know how well it's supported inside C#/WPF. Also, it might be beneficial to use an actual game library? I guess XNA is the game library for C#, so maybe I'll invest a bit of time learning that.
However, I want to use WPF form controls for my level editor... is there any way that I can embed an XNA (DirectX?) window inside a WPF app?
Specifically, I don't need any buttons or things inside the XNA/DirectX widget, just around it, so no mixing required...just need to get a graphics widget in my WPF form.
Nick Gravelyn explains how to do it on his blog.
Although, if it's just for an editor, you may find using WinForms is easier and better supported.
First of all, you should ask this on gamedev.stackexchange.com. But I've seen a tutorial embedding XNA.
You should check this question and this page. They are on Windows Forms, but they'll help.
Also check this and this articles.
Keep in mind one thing. XNA is meant to be used for the whole game, integration would be useful on making level editors like you say, but not for a full game.
WPF uses DirectX, and you can do direct "interop" here is a codeProject article on the subject. Here is an article i dug up where the author is using win-forms and WPF controls in an XNA project. Might be worth a look for you.

How do I give professional look and feel to my .NET windows application?

I'm using WINFORMS not WPF.
I just know basic c# .net gui programming. I donot want the traditional windows look. I want to have my own custom look (eg. gtalk, antivirus softwares, media players, google chrome).
Actually I'm inspired by google's PICASA software. Its awesome. I want to do something like that.How can I do that? If there is something I should learn please point me.
Also I may have to write my own custom controls (like modified tree view etc..) I guess. Please give some good learning resources.
This article describes how to draw custom windows. The author also shows how to draw non-rectangular windows.
If you could use WPF instead of Windows Forms, this is a good article about customizing window drawing:
http://www.codeguru.com/csharp/.net/net_wpf/article.php/c16379/
There is also a question with some good answers here on SO:
Creating custom forms in WPF?
Update:
I think that skinning and custom drawing is fun to do from a programmers perspective, but I also think that there is almost no benefit for the user.
The creators of the platform you are developing for might have put a lot of effort into the design of their windowing toolkits.
If you just want to change some visual aspects of your application you also should take into account that you might miss some important other aspects of UI design:
consistency
accessibility
aesthetics (if you are overdoing
effects, gradients, ...)
internationalization
...
As you are developing for Windows, you also lose the skinning ability of the OS itself. And I think that some of the skins that come with newer versions of Windows are pretty good.
You can try any of the following:
telerik
Syncfusion
(source: componentsource.co.jp)
Or other components.
They do make your UI pretty.
Edit: if you want to study how they do it, you can buy the source code-- along with documentation and understand from there.
There are some commercial control libraries available.
I can recommend the Krypton Suite. It consists of the free Krypton Toolkit (which contains a lot of skinnable controls) and other non-free controls (Navigator, Ribbon, Docking, Workspace). It has some built-in palettes and renderers that allow you to make your UI look like Office 2010, Office 2007, Office 2003, ...
You want to look for +winforms +skinning. I haven't tried these, but the first hits don't look bad. Most decent skinning tools will be paid for.
From what you said, you want to develop your own custom controls. You have some frameworks for this like Qt which can use Direct3D for hardware accelerated graphics. It also have a Visual Studio plugin. There is a free LGPL version and a commercial version of it.
I remembered about Qt because you mentioned Picasa and as far as I remember, I heard the Picasa UI has been written through Qt.
You can try using "SetWindowRgn(..)" to set an arbitrary region for your window. This may range from giving a rounded rectangle shape to giving a weird looking shape to the form!
Check this out: Link.
There is another option if you are working in Vista(aero enabled), ie you can check out DwmExtendFrameIntoClientArea(..) function here: link text
You can set the form's border style to 'none' and go on to create your custom form! You then might have to create custom buttons to carry out tasks like close, minimise, maximise etc. You might even need to write code for drag and drop events..
For the background, you might need to have a look at the gradient fills to give a great effect, otherwise you can use great looking pictures as Background..! But the latter option isnt good unless you have really good pic.

C# financial charting library for Windows Forms?

I need a open-source/free C# tool or library that can do financial charting for a student project. It needs to be able to do a open-high-low-close chart, and be able to graph various technical indicators that I calculate, all from within a Windows form.
Any recommendations?
Try ZedGraph. You can do almost anything with that library.
Note: It's free and open source.
Microsoft has released a chart control for .NET 3.5. You can get support at this forum.
ChartFx from SoftwareFX is pretty good. They are not free but do offer a 30 day trial that might work for a student project.
It's not exactly open-source, but it is free (if you have a valid Office license). You can use Office Web Components to create almost any chart Excel can.
http://www.codeproject.com/KB/aspnet/owc11article.aspx
This may give you clear and simple idea how to use Charts with free source.
http://www.codeproject.com/KB/graphics/charting.aspx
We use StockChartX from www.modulusfe.com - there are COM, WPF and Silverlight versions. Also Flash, HTML5, etc.

What's a good f/oss GDI+ (System.Drawing) based graphing and charting component for .NET?

I want to create basic line, bar, pie and area charts for .NET 3.5 WinForms and I'm interested in finding a free, mature, open-source .NET (preferably C# based) project to help me accomplish that. I would consider a WPF based project, however I'm more comfortable in GDI+ so I'd rather it used System.Drawing and/or GDI interop as its base technology.
Thanks!
ZedGraph. 'Nuff said.
This one's quite nice: zed graph
Take a look at ZedGraph: http://zedgraph.org/wiki/index.php?title=Main_Page

Categories

Resources