Skip to content

Instantly share code, notes, and snippets.

@azcoov
Created January 21, 2011 22:24
Show Gist options
  • Save azcoov/790548 to your computer and use it in GitHub Desktop.
Save azcoov/790548 to your computer and use it in GitHub Desktop.
MVC View for rendering sparklines
<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>
<%@ Import Namespace="Sparkline.Helpers" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
Spark Line Example
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<h2>Hello Sparkline</h2>
<p>
<%= Html.DrawSparkline("150x30", new List<Int32?>() {1,3,5,2,7,9,4})%>
</p>
</asp:Content>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment