Hukam
Hukam

Reputation: 1026

Silverlight charts with x and y axis label

I have a columnseries chart and its working fine,But i would like to add Month as Master Label in x -axis and No of Issue as Master Label in y - axis.

    <toolkit:Chart  Title="Issue Occurrence Trend">
        <toolkit:ColumnSeries ItemsSource="{Binding}" AnimationSequence="Simultaneous"   IndependentValueBinding="{Binding Month}"  DependentValueBinding="{Binding NoIssue}"  >
        </toolkit:ColumnSeries>
    </toolkit:Chart>

Need help on this.

Upvotes: 0

Views: 2294

Answers (1)

Slyvain
Slyvain

Reputation: 1732

Like this ?

<toolkit:Chart  Title="Issue Occurrence Trend">

<toolkit:Chart.Axes>
<toolkit:CategoryAxis Title="Month" Orientation="X" />
<toolkit:CategoryAxis Title="No of Issue" Orientation="Y" />
</toolkit:Chart.Axes>

<toolkit:ColumnSeries ItemsSource="{Binding}" AnimationSequence="Simultaneous"   IndependentValueBinding="{Binding Month}"  DependentValueBinding="{Binding NoIssue}"  >
</toolkit:ColumnSeries>
</toolkit:Chart>

Upvotes: 3

Related Questions