Styling labels in cartesian chart

2 posts, 0 answers
  1. Alberto
    Alberto avatar
    26 posts
    Member since:
    Nov 2012

    Posted 08 Nov 2013 Link to this post


    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?


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

    Thanks in advance.

  2. Yavor
    Yavor avatar
    401 posts

    Posted 13 Nov 2013 Link to this post

    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:
       <ScaleTransform ScaleX=".25" ScaleY=".25" />

    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.

    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 >>
  3. DevCraft banner
Back to Top