Microsoft Chart Helper in Orchard

Topics: General, Troubleshooting
Sep 6, 2011 at 11:46 AM

Hello, I'm looking to use the Microsoft Chart Helper in my Orchard project.

See for details.

I've added the package reference and can successfully render a full page chart image. I'm now looking to create a separate cshtml file ("ExampleChart.cshtml") to render the chart image within a custom template. I'd like to reference the chart logic using the syntax:

  <img src="ExampleChart.cshtml"/>

However, it doesn't render the image. I've tried a few alternative paths. The custom template I'm using is in the following location:


Any help would be greatly appreciated.

Many thanks



Sep 8, 2011 at 10:36 PM

The src need to be the full URL where the image can be reached, it's can't be a relative URL like this.

Sep 9, 2011 at 12:59 PM

Many thanks, I'll take a look at mvc routing.