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

Styling labels in cartesian chart

1 Answer 38 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Alberto
Top achievements
Rank 1
Alberto asked on 08 Nov 2013, 11:46 PM
Hi,

I have a window with one or more charts, sometimes i need the window to be in a small size so the charts have also a small size and the value labels are overlaped as you can see in the first image (overlaped.png).
I saw in another post that there is a property called IntelligentLabelsEnabled for Reporting controls, is there something similar in WPF? Or is there a way to accomplish this?

In the same project when I increase the size of the window the chart also look larger but value labels and axis labels remain the same size, is there a way to resize not only the chart but also the labels?

Finally I would like to know if there is a way to change the color of value labes, axis labels and axis lines, is it possible?

(chart1.png)

I am creating the bar series dynamically in the code behind.

Thanks in advance.

Alberto

1 Answer, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 13 Nov 2013, 01:03 PM
Hi Alberto,

May I propose another solution. You can render your chart at normal size and apply scale transform to it when you want to minimize it. This way it will be faster, more easier to implement and better looking. Here is how:
<telerik:RadCartesianChart.RenderTransform>
   <ScaleTransform ScaleX=".25" ScaleY=".25" />
</telerik:RadCartesianChart.RenderTransform>

I have made a small demo for you that demonstrates how to keep the chart small and maximize it when the mouse is over it.

Regards,
Yavor
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
ChartView
Asked by
Alberto
Top achievements
Rank 1
Answers by
Yavor
Telerik team
Share this question
or