views:

30

answers:

0

I'm using Microsoft Chart Controls to generate some charts on a Webpage. I'm trying to use Templates to have a definition of the Chart an load it on request.

This is a sample of the template:

<Chart Palette="BrightPastel" 
Width = "100" Height="100" 
BackColor="Black" BackGradientStyle="TopBottom" 
...>
    <series>
        <series _Template_="All" ChartType="Spline" 
        BorderColor="180, 26, 59, 105" ...>
        </series>
    </series>

    <chartareas>
        <ChartArea _Template_="All" BackColor="Black" ...>
            <axisy LineColor="64, 64, 64, 64" TitleAlignment="Far" ArrowStyle="Triangle">
                <MajorGrid LineColor="64, 64, 64, 64" />
                <LabelStyle Font="Trebuchet MS, 8.25pt, style=Bold" IsEndLabelVisible="False"/>
            </axisy>
            <axisx LineColor="64, 64, 64, 64" TitleAlignment="Far" ArrowStyle="Triangle">
                <MajorGrid LineColor="64, 64, 64, 64" />
                <LabelStyle Font="Trebuchet MS, 8.25pt, style=Bold" IsEndLabelVisible="False"/>
            </axisx>
            <area3dstyle IsRightAngleAxes="False" .../>
        </ChartArea>
    </chartareas>
</Chart>

The template is taken from the samples. I changed the type of the chart in the series element but I can't get it to work.

Is it possible to define that in the template or am I restricted to colors and fonts?