Click here to Skip to main content
15,888,908 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i need to create one windows application ..... in that i need to add some charts.... that should use D3 charts. is it possible to add d3 charts in windows form application... if yes please give me 1 simple example...

Thanks & Regards
Nitheesh Peter
Posted
Comments
Sergey Alexandrovich Kryukov 19-Nov-15 3:07am    
Doesn't it look pointless? If this is a JavaScript library, why not using it for a usual browser-based application? What would be the role of System.Windows.Forms, just to limit the widest cross-platform repertoire of JavaScript? :-)
If you have a good reason to use .NET and forms, talk about this reason first, as this is the most important thing in your issue...
—SA

1 solution

It could be possible if you implement a web browser control inside the form and then display a website i.e. javascript / D3.
However, there maybe some compatibility issues that you will need to work out.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 19-Nov-15 11:31am    
Come to think about, it would be the only realistic approach. Or nearly so. My 5.
I would question the whole idea of coupling .NET and JavaScript for this purpose, but I can understand where it comes from. Both .NET and JavaScript+D3 are very powerful, but the flimsy link would be binding between them. Passing data to JavaScript could be done by generating some script code on the fly. I guess, generating and passing JSON data would be of great help, as JSON is implemented on both sides.
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900