c# - Using ASP.NET Charts in MVC -


I am able to create charts in MVC below, but the problem is that I can not add color, and much more Fancy things that can be done under ASP.Net Chart control. Is there an option to do this in chart type or MVC? Public Variation GetRainfallChart () {var key = New chart (width: 600, height: 400) (type "type": "bar", xValue: new [] {"January" , "M", "April", "May"}, yValues: new [] {"40", "10" "20", "20", "10"}) .AddTitle ("title" ). Type (); Return tap; }

If you want to use the ASP.NET chart control, you might add Can be a web form page (or page according to your app design etc.) in your project. Web form and MVC may be able to co-exist and there should be quite a few blog posts, around this SE question etc. It can also have a web form control on the same page, but I have never ever dump it myself, so can not comment on 100%.

The option is probably javascript based graphing library such as float (). So what you will do is something like this:

  1. Make your controller collect (or coordinate aggregate) all the proper data in the graph
  2. Render or otherwise place your view Data in
  3. Presenting the use of float (float also requires JQuery but this should not be a problem)

    I just mention Float because it One that I know; My personal experience is that doing so may be a bit difficult at YMMV.

    However, Nathan.

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -