Microsoft Chart Helper in Orchard

Topics: General, Troubleshooting
Sep 6, 2011 at 12:46 PM

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

See http://www.asp.net/webmatrix/tutorials/7-displaying-data-in-a-chart 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:

  ~/Themes/ExampleTheme/Views/Parts.Common.Body-ExamplePage.cshtml

Any help would be greatly appreciated.

Many thanks

Keith


 

Coordinator
Sep 8, 2011 at 11: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 1:59 PM

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

Regards,

Keith