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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

The metric of chart doesn't display

Thread ID:





120156 Sep 6,2015 06:43 AM UTC Sep 7,2015 11:01 AM UTC UWP 1
Tags: SfChart
Asked On September 6, 2015 06:43 AM UTC

Hi All,

After I set the theme of page to dark, the chart works fine but the metric doesn't play, please view the pic.


And here are the codes:

    mc:Ignorable="d" xmlns:syncfusion="using:Syncfusion.UI.Xaml.Controls">
    <Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
        <Charts:SfChart x:Name="cMainIO" Grid.Row="2">
                <Charts:CategoryAxis x:Name="Primaryx" LabelFormat="MM/dd" />
            <!--SecondaryAxis with range customization-->
                <Charts:NumericalAxis RangePadding="Round" StartRangeFromZero="False" />
            <Charts:ColumnSeries ItemsSource="{Binding}" XBindingPath="DataDate" YBindingPath="Value" Foreground='White' >
                            <Rectangle Fill="Red" Height="{Binding Height}" Width="{Binding Width}" Canvas.Left="{Binding RectX}" Canvas.Top="{Binding RectY}"></Rectangle>

using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices.WindowsRuntime;
using Windows.Foundation;
using Windows.Foundation.Collections;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Controls.Primitives;
using Windows.UI.Xaml.Data;
using Windows.UI.Xaml.Input;
using Windows.UI.Xaml.Media;
using Windows.UI.Xaml.Navigation;
// The Blank Page item template is documented at http://go.microsoft.com/fwlink/?LinkId=402352&clcid=0x409
namespace App1
    /// <summary>
    /// An empty page that can be used on its own or navigated to within a Frame.
    /// </summary>
    public sealed partial class MainPage : Page
        public MainPage()
            List<Modelx> ms = new List<Modelx>();
            ms.Add(new Modelx() { DataDate = DateTime.Now.AddDays(-1), Value = 10 });
            ms.Add(new Modelx() { DataDate = DateTime.Now, Value = 13 });
            ms.Add(new Modelx() { DataDate = DateTime.Now.AddDays(1), Value = 7 });
            cMainIO.DataContext = ms;

    class Modelx
        public DateTime DataDate { get; set; }
        public int Value { get; set; }


Rachel A [Syncfusion]
Replied On September 7, 2015 11:01 AM UTC

Hi William,
Thanks for contacting Syncfusion support.
We are able to reproduce the issue. Meanwhile you can change the RequestedTheme to Dark in App.Xaml instead of MainPage.Xaml .The fix for this issue will be available in our upcoming main release Vol 3 which is scheduled to be rolled out by the end of September 2015 tentatively.

Rachel. A


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon