|
how to use Interactive Financial Chart in Asp.net MVC? |
Posted by Manisha on Jun-26-2015 20:40 |
|
Hi,
Can you please let me know how i can show Interactive Financial Chart in my asp .net mvc application I added a control in my toolbox called "WebChartViewer" but not getting how to use it in mvc, also can you please suggest the code as well.
Any help would be appreciable. |
Re: how to use Interactive Financial Chart in Asp.net MVC? |
Posted by Peter Kwan on Jun-27-2015 04:45 |
|
Hi Manisha,
There are many types of ASP.NET MVC. I believe the ASP.NET MVC 1 and 2 uses the ASPX
view engine, while ASP.NET MVC 3 or above can use Razor as well as ASPX view engines.
There are also a number of third party view engines available.
Sometime ago, I have tried to set up an ASP.NET MVC 4 project using a template download
from Microsoft uses Web Forms as the view engine (see attached image). I try several
sample charts in it, and found that the charts, tooltips and clickable hot spots, track
cursors and zooming and scrolling features all work properly. However, I have not specially
tried the Interactive Financial Chart sample code.
Because there are many types of MVC and their code are not compatible, and sometimes
you may need to port code from another framework to the MVC you are using. If you need
further help, would you mind to inform me which type of ASP.NET MVC you are using?
Regards
Peter Kwan
|
Re: how to use Interactive Financial Chart in Asp.net MVC? |
Posted by Manisha on Jun-29-2015 12:48 |
|
Hi Sir,
Thanks for your reply i am using razor view of Asp.net MVC so it is possible to use interactive financial chart in it. |
Re: how to use Interactive Financial Chart in Asp.net MVC? |
Posted by Peter Kwan on Jun-30-2015 06:12 |
|
Hi Manisha,
Yes, it is possible. I will port the code for you as an example. It should be available by
tomorrow.
Regards
Peter Kwan |
Re: how to use Interactive Financial Chart in Asp.net MVC? |
Posted by Peter Kwan on Jul-01-2015 00:02 |
|
Hi Manisha,
I have just attached an example using ASP.NET MVC with Razor as the view engine, and
without using any ASPX or WebForm controls.
For the standard WebForm controls (such as the drop down list boxes, check boxes, etc), I
just replace them with regular HTML controls. For the WebChartViewer, its purpose is to
display the chart. ChartDirector also supports other methods to display the chart, which is
described in the "ChartDirector Output Methods" section of the documentation. See:
http://www.advsofteng.com/doc/cdnet.htm#output.htm
The method in the example I attached is to directly stream the chart image to the browser.
In the ASP.NET MVC framework, a FileContent ActionResult can be used to achieve this.
Hope this can help;.
Regards
Peter Kwan
|
|