We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Chart control help

Nothing shows up...what am I missing?  Thanks.

xaml

<Charts:SfChart x:Name="chartMonthlySales">
                        <Charts:SfChart.Behaviors>
                            <Charts:ChartZoomPanBehavior/>
                        </Charts:SfChart.Behaviors>
                        <Charts:SfChart.PrimaryAxis>
                            <Charts:CategoryAxis PlotOffset="70" LabelFormat="mm">
                                <Charts:CategoryAxis.Header>
                                    <TextBlock FontSize="16" FontFamily="Segoe UI">Month</TextBlock>
                                </Charts:CategoryAxis.Header>
                            </Charts:CategoryAxis>
                        </Charts:SfChart.PrimaryAxis>
                        <Charts:SfChart.SecondaryAxis>
                            <Charts:NumericalAxis>
                                <Charts:ChartAxis.Header>
                                    <TextBlock FontSize="16" FontFamily="Segoe UI">Sales</TextBlock>
                                </Charts:ChartAxis.Header>
                            </Charts:NumericalAxis>
                        </Charts:SfChart.SecondaryAxis>
                        <Charts:SplineSeries XBindingPath="IsDate" YBindingPath="Data">
                            <Charts:SplineSeries.AdornmentsInfo>
                                <Charts:ChartAdornmentInfo Symbol="Ellipse" ShowLabel="True">
                                </Charts:ChartAdornmentInfo>
                            </Charts:SplineSeries.AdornmentsInfo>
                        </Charts:SplineSeries>
                    </Charts:SfChart >


vb code

Dim series1List As New List(Of MyClasses.MyChart3)
        Dim oct As New MyClasses.MyChart3(824703, "10/01/2013")
        Dim nov As New MyClasses.MyChart3(588922, "11/01/2013")
        series1List.Add(oct)
        series1List.Add(nov)

        Dim series1 As New SplineSeries()
        series1.XBindingPath = "IsDate"
        series1.YBindingPath = "Data"
        series1.ItemsSource = series1List

        Me.chartMonthlySales.Series.Clear()
        Me.chartMonthlySales.PrimaryAxis.ZoomFactor = 1
        Me.chartMonthlySales.SecondaryAxis.ZoomFactor = 1
        Me.chartMonthlySales.Series.Add(series1)


class:

Public Class MyChart3
        Public Property Data As Integer
        Public Property IsDate As Date
        Public Sub New(ByVal SetData As Integer, ByVal SetDate As Date)
            Data = SetData
            IsDate = SetDate
        End Sub
    End Class

4 Replies

JB Jacob Bohrtz May 28, 2013 01:45 PM UTC

So whats the best way to get support for the controls I purchased?


KV Karthikeyan V Syncfusion Team May 28, 2013 05:28 PM UTC

Hi Jacob,

Thanks for using Syncfusion products.

We have analyzed the provided code. We are not able to found any mistake of your code. We have prepared the sample of your code and its working fine. Please find the sample in the following location.

Please let us know if you have any concerns.

Regards,

Karthikeyan V.



App2_5bea0b98.zip


JB Jacob Bohrtz May 30, 2013 08:07 PM UTC

I found the reason, when in a scrollviewer control you must specify the width or nothing shows up.


KV Karthikeyan V Syncfusion Team May 31, 2013 10:43 AM UTC

Hi Jacob,

Thanks for the update. Please get back to us if any further assistance.

Regards,

Karthikeyan V.


Loader.
Live Chat Icon For mobile
Up arrow icon