Server-rendered chart

This sample demonstrates how arbitrary NPM modules can be invoked from .NET code.

In this case, we use node-chartist to render the following chart on the server. The output is identical to what you'd get if you used chartist.js on the client, except that in this example, we're not executing any client-side code at all.

@Html.Raw(ViewData["ChartMarkup"])