Can I use ValueAxis.title.rotation option?

3 posts, 0 answers
  1. kako
    kako avatar
    22 posts
    Member since:
    Mar 2015

    Posted 27 Dec 2017 Link to this post

    Hi.

    I know that the ValueAxis.title.rotation option is available in the Kendo UI jQuery library.

    I think that there is no option to use it in ASP.NET MVC wrapper, but how do I use this option?

  2. Alex Hajigeorgieva
    Admin
    Alex Hajigeorgieva avatar
    386 posts

    Posted 28 Dec 2017 Link to this post

    Hello, Kako,

    Thank you very much for bringing the Kendo UI Chart axis title rotation in the context of the UI for ASP.NET MVC wrappers.

    I had a look through the code and it looks like we have missed this property out. I have now logged this issue for fixing and you may follow its progress at:

    https://github.com/telerik/kendo-ui-core/issues/3878

    Once the issue is fixed, you should be able to use the Razor syntax as below:

    .ValueAxis(axis => axis
      .Logarithmic()
      .Title(t =>
      {
        t.Position(ChartAxisTitlePosition.Center);
        t.Text("comeon");
        t.Rotation(60); 
      })

    Meanwhile, you may get the Kendo UI Chart instance, set its options with JavaScript and call its refresh() method:

    <script>
     $(document).ready(function () {
      var chart = $("#chart").data("kendoChart");
      chart.options.valueAxis.title.rotation = 60;
      chart.refresh();
     });
    </script>

    As a token of appreciation for helping us improve, I have also updated your Telerik points. Please accept my apologies for any inconvenience caused.

    Kind Regards,
    Alex Hajigeorgieva
    Progress Telerik
    Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
  3. kako
    kako avatar
    22 posts
    Member since:
    Mar 2015

    Posted 11 Jan in reply to Alex Hajigeorgieva Link to this post

    Thanks!

    I am looking forward to the issue being fixed.

Back to Top