Sparkline Charts using Visifire
adminIn this blog I’ll show how to create Sparkline Charts using Line charts from Visifire.
Let me start by showing a sample of the sparkline chart: ![]()
The following XML is a bare bone XML required to create sparkline charts:
<vc:Chart xmlns:vc="clr-namespace:Visifire.Charts;assembly=Visifire.Charts"
AnimationEnabled="False" Padding="1" BorderThickness="0" Watermark="False">
<vc:AxisX Enabled="False"/>
<vc:AxisY Enabled="False" StartFromZero="False"/>
<vc:DataSeries RenderAs="Line" LabelEnabled="False" MarkerEnabled="False" >
.
.
.
</vc:DataSeries>
</vc:Chart>
Highlighting of the various points has to be done by selecting the color for the marker.
To highlight any point you have to enable the marker for the point and set the color. If color is not selected then default color will be applied. Also set the marker size as per requirement. Have a look at the example below, it shows how to highlight the start and end points.
<vc:Chart xmlns:vc="clr-namespace:Visifire.Charts;assembly=Visifire.Charts" Theme="Theme1"
AnimationEnabled="False" Padding="1" BorderThickness="0" Watermark="False">
<vc:AxisX Enabled="False"/>
<vc:AxisY Enabled="False" StartFromZero="False"/>
<vc:DataSeries RenderAs="Line" LabelEnabled="False" MarkerEnabled="False"
MarkerSize="5" LineThickness="0.5" Color="Black">
<vc:DataPoint YValue="44.01" MarkerEnabled="True" Color="Blue" />
.
.
.
<vc:DataPoint YValue="44.5" MarkerEnabled="True" Color="Blue" />
</vc:DataSeries>
</vc:Chart>
Any point can be highlighted to show its importance
The screen shot below shows a HTML table containing Visifire sparkline charts, click on the image below to see silverlight example:
The code for this example can be downloaded from the here.
Visifire sparkline charts support all events that are supported by line charts and hence can be easily used for creating drill down charts.

Comments(11)
I tried this using silverlight.
chart.AxisX.Enabled = false;
I get a null exception on AxisX.
Can you post a Silverlight example?
Hi Doug,
I am happy to help you, but in order to attach the sample managed code, could you please post the question on Visifire forums, as files cannot be attached to comments.
[...] Supported by: Nuby on Rails, Any Chart, JQuery plugin, Flex , and two more ones for Flex at Microcharts and Birdeye, Google API, Visifire for Silverlight [...]
[...] Supported by: Nuby on Rails, Any Chart, JQuery plugin, Flex , and two more ones for Flex at Microcharts and Birdeye, Google API, Visifire for Silverlight [...]
mm.. nice ))
[...] Supported by: Nuby on Rails, Any Chart, JQuery plugin, Flex , and two more ones for Flex at Microcharts and Birdeye, Google API, Visifire for Silverlight [...]
how to make like a http://www.fusioncharts.com/widgets/Gallery/SparkLine1.html and other?
[...] ความสามารถ นี้ทำได้โดย: Nuby on Rails, Any Chart, JQuery plugin, Flex , and two more ones for Flex at Microcharts and Birdeye, Google API, Visifire for Silverlight [...]
[...] Supported by: Nuby on Rails, Any Chart, JQuery plugin, Flex , and two more ones for Flex at Microcharts and Birdeye, Google API, Visifire for Silverlight [...]
[...] ความสามารถนี้ทำได้โดย: Nuby on Rails, Any Chart, JQuery plugin, Flex , and two more ones for Flex at Microcharts and Birdeye, Google API, Visifire for Silverlight [...]
[...] Visifire » Sparkline Charts using VisifireIn this blog I’ll show how to create Sparkline Charts using Line charts from Visifire. … The following XML is a bare bone XML required to create sparkline charts: … The screen shot below shows a HTML table containing Visifire sparkline charts, click on the image below to see silverlight example: [...]