Determine actual calculated baseUnit when set to 'fit'?

3 posts, 1 answers
  1. Raido Valgeväli
    Raido Valgeväli avatar
    26 posts
    Member since:
    May 2008

    Posted 15 May 2013 Link to this post

    How-to question in the title.
    Thanks.
     Raido
  2. Raido Valgeväli
    Raido Valgeväli avatar
    26 posts
    Member since:
    May 2008

    Posted 15 May 2013 Link to this post

    Supplementing  the question: hot to determine actual value in case baseUnit is not set in configuration?
  3. Answer
    T. Tsonev
    Admin
    T. Tsonev avatar
    2831 posts

    Posted 16 May 2013 Link to this post

    Hi,

    The actually chosen values are accessible through the live axis instance:

    var chart = $("#chart").data("kendoChart");
    var axis = chart._plotArea.categoryAxis;

    var baseUnit = axis.options.baseUnit;
    var baseUnitStep = axis.options.baseUnitStep;

    Note that properties with underline are considered "private", i.e. subject to change. This includes the axis implementation as well.

    That said, these in particular are pretty safe to use.

    Greetings,
    Tsvetomir Tsonev
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top