I recently read the excellent book "Next-Generation Business Intelligence Software with Silverlight 3"
http://www.amazon.com/Next-Generation-Business-Intelligence-Software-Silverlight/dp/1430224878
I am trying to incorporate some of things i learned into my existing application. Much of the sample code was against Silverlight Toolkit and not Telerik charts. I am trying to port some of the styles from toolkit to telerik. I have figured out many of them but not all.
Basically the chart is a word sized, sparkline that contains 2 line series. I am hoping someone can share the xaml for:
1. Set the StrokeThickness, Opacity and StrokeDashArray of a line series definition
2. Turn off showing datapoints.
3. For x axis, set the height and opacity.
4. for the Y axis, set opacity, min, max.
5. have the chart background be equal to whatever container it is in. In my case, the chart is within a cell within a datagrid.
Below my signature, i have pasted the Silverlight Toolkit xaml for the styles.
Dan
<!--Hide the border edges-->
<chartingToolkit:Chart.Template>
<ControlTemplate TargetType="chartingToolkit:Chart">
<chartingPrimitivesToolkit:EdgePanel x:Name="ChartArea">
<Grid Canvas.ZIndex="-1"></Grid>
</chartingPrimitivesToolkit:EdgePanel>
</ControlTemplate>
</chartingToolkit:Chart.Template>
<!--Format the axes for a sparkline-->
<chartingToolkit:Chart.Axes>
<chartingToolkit:DateTimeAxis Orientation="X" MaxHeight="1" Opacity="0"/>
<chartingToolkit:LinearAxis Orientation="Y" Opacity="1" Minimum="0" Maximum="10"/>
</chartingToolkit:Chart.Axes>
<!--DataPointStyle-->
<chartingToolkit:LineSeries.DataPointStyle>
<Style TargetType="Control">
<!---->
<Setter Property="Visibility" Value="Collapsed"/>
<!---->
<Setter Property="Background" Value="Black"/>
</Style>
</chartingToolkit:LineSeries.DataPointStyle>
<!--use dashes for reference line-->
<chartingToolkit:LineSeries.PolylineStyle>
<Style TargetType="Polyline">
<!---->
<Setter Property="Opacity" Value="0.75"/>
<!---->
<Setter Property="StrokeDashArray" Value="2"/>
<!---->
<Setter Property="StrokeThickness" Value="0.75"/>
</Style>
</chartingToolkit:LineSeries.PolylineStyle>
<!--DataPointStyle-->
<chartingToolkit:LineSeries.DataPointStyle>
<Style TargetType="Control">
<!---->
<Setter Property="Visibility" Value="Collapsed"/>
<!---->
<Setter Property="Background" Value="Black"/>
</Style>
</chartingToolkit:LineSeries.DataPointStyle>
<!--use dashes for reference line-->
<chartingToolkit:LineSeries.PolylineStyle>
<Style TargetType="Polyline">
<!---->
<Setter Property="StrokeThickness" Value="0.75"/>
</Style>
</chartingToolkit:LineSeries.PolylineStyle>