[FIXED] [#923] [3.2.1] Charts: ChartLabel.Font issue

  1. #1

    [FIXED] [#923] [3.2.1] Charts: ChartLabel.Font issue

    Hello,

    ChartLabel.Font doesn't work. Code below
    @using Ext.Net;
    @using Ext.Net.MVC;
    
    @{
        Layout = null;
        
        var X = Html.X();
    }
    
    @functions
    {
        private IEnumerable<object> GetData()
        {
            return new List<object>
            {
                new { X = 1, Y = 1 },
                new { X = 2, Y = 2 }
            };
        }
    }
    
    <!DOCTYPE html>
    
    <html>
    <head>
        <title>Test</title>
    </head>
    <body>
        @(Html.X().ResourceManager().Theme(Theme.CrispTouch))
    
    @(X.Panel()
        .Layout("fit")
        .Width(500)
        .Height(500)
        .Items(
            X.CartesianChart()
                .Store(X.Store()
                    .Fields(
                        X.ModelField().Name("X"),
                        X.ModelField().Name("Y")
                    )
                    .Data(GetData())
                )
                .Axes(
                    X.NumericAxis()
                        .Position(Position.Left)
                        .Fields("Y")
                        .Grid(true)
                        .Label(X.ChartLabel()
                            .Font("600 20px sans-serif")
                            //.FontFamily("sans-serif")
                            //.FontSize("20px")
                            //.FontWeight("600")
                        ),
    
                     X.CategoryAxis()
                         .Position(Position.Bottom)
                         .Fields("X")
                         .Grid(true)
                )
                .Series(
                    X.AreaSeries()
                        .XField("X")
                        .YField("Y")
                )
        )
    )
    
    
    </body>
    </html>
    Last edited by fabricio.murta; Apr 23, 2016 at 6:21 PM.
  2. #2
    Hi Yury,

    Thank you for the report!

    Created an Issue:
    https://github.com/extnet/Ext.NET/issues/923
  3. #3
    Hello!

    This issue is no longer actual in upcoming Ext.NET 4.1.0!
    Fabrício Murta
    Developer & Support Expert

Similar Threads

  1. Rendering Two Charts
    By carlesi in forum 2.x Help
    Replies: 0
    Last Post: Mar 31, 2015, 8:57 PM
  2. Replies: 3
    Last Post: Mar 02, 2015, 2:45 PM
  3. [CLOSED] How to change font style and font size of ext:TextArea?
    By aditya in forum 2.x Legacy Premium Help
    Replies: 1
    Last Post: Mar 27, 2014, 9:39 AM
  4. MVC Charts
    By Iguion in forum 2.x Help
    Replies: 1
    Last Post: Nov 28, 2012, 9:40 AM

Posting Permissions