This is a migrated thread and some comments may be shown as answers.

Can I use ValueAxis.title.rotation option?

2 Answers 74 Views
Chart
This is a migrated thread and some comments may be shown as answers.
kako
Top achievements
Rank 1
kako asked on 28 Dec 2017, 02:27 AM

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 Answers, 1 is accepted

Sort by
0
Alex Hajigeorgieva
Telerik team
answered on 28 Dec 2017, 10:32 AM
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.
0
kako
Top achievements
Rank 1
answered on 11 Jan 2018, 07:12 AM

Thanks!

I am looking forward to the issue being fixed.

Tags
Chart
Asked by
kako
Top achievements
Rank 1
Answers by
Alex Hajigeorgieva
Telerik team
kako
Top achievements
Rank 1
Share this question
or