We are using Tererik's RadHtmlChart in sparkline layout mode with a single line series. I am trying to figure out how to display the vertical line in the tooltip as demonstrated on the MEAN TEMP chart via https://demos.telerik.com/aspnet-ajax/htmlchart/examples/charttypes/sparklinechart/defaultcs.aspx. I need to accomplish this via server-side C#, not ASCX markup (I am configuring all 14 sparkline controls on our web page via a single C# method to minimize the amount of duplicate ASCX code). I suspect the vertical line may be controlled by the unusual background settings within the sparklines-wrapper CSS style but I can find no documentation on this specific feature to help guide me.
Thanks for your time and attention.
Troy
My ASCX:
<div class="sparklineWrapper">
<telerik:RadHtmlChart ID="RadHtmlChart_Sales" runat="server" Layout="Sparkline" class="sparkline" />
</div>
My C#:
protected void ConfigureSparklineControl(string id)
{
RadHtmlChart sparkline = this.FindControl(id) as RadHtmlChart;
// turn off transitions so there's no flicker when the graph is repainted with new data
sparkline.Transitions = false;
// hide the Legend area to prevent displaying the clickable 1-pixel link
sparkline.Legend.Appearance.Visible = false;
// ... other configuration code here
}
Thanks for your time and attention.
Troy
My ASCX:
<div class="sparklineWrapper">
<telerik:RadHtmlChart ID="RadHtmlChart_Sales" runat="server" Layout="Sparkline" class="sparkline" />
</div>
My C#:
protected void ConfigureSparklineControl(string id)
{
RadHtmlChart sparkline = this.FindControl(id) as RadHtmlChart;
// turn off transitions so there's no flicker when the graph is repainted with new data
sparkline.Transitions = false;
// hide the Legend area to prevent displaying the clickable 1-pixel link
sparkline.Legend.Appearance.Visible = false;
// ... other configuration code here
}