Community & Support
Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WPF > Chart > rotate series label

Not answered rotate series label

Feed from this thread
  • Posted on Jul 19, 2009 (permalink)

    Hi,

    Is it possible to rotate a series label 90 degrees?

    Kevin.

    Reply

  • Paul Ezerski avatar

    Posted on Jul 20, 2009 (permalink)

    chart.DefaultView.ChartArea.AxisX.LabelRotationAngle = 90;

    Reply

  • Q1 Webinar Week
  • Posted on Jul 20, 2009 (permalink)

    Sorry, I mean the data point label so for a bar chart each value is vertical across the bar

    Reply

  • Vladimir Milev Vladimir Milev admin's avatar

    Posted on Jul 21, 2009 (permalink)

    Hi Kevin,

    Unfortunately this is not supported yet out of the box yet. You can achieve this by overriding the SeriesItemLabel template using a custom style. Here is the default template shipped with RadChart:

    <Setter Property="Template" > 
        <Setter.Value> 
            <ControlTemplate TargetType="telerikCharting:SeriesItemLabel"
                <Canvas> 
                    <TextBlock x:Name="PART_TextContainer" 
                        Canvas.Top="{TemplateBinding TextContainerCanvasTop}" 
                        Canvas.Left="{TemplateBinding TextContainerCanvasLeft}" 
                        VerticalAlignment="Stretch" 
                        TextAlignment="Center" 
                        Text="{TemplateBinding Content}" 
                        Foreground="{TemplateBinding Foreground}" /> 
                </Canvas> 
            </ControlTemplate> 
        </Setter.Value> 
    </Setter> 

    In WPF you can apply a rotate transform to rotate the textblock by 90 degrees.

    Best wishes,
    Vladimir Milev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.

    Reply

  • Posted on Jul 21, 2009 (permalink)

    can this be done in C#?

    K

    Reply

  • Giuseppe Giuseppe admin's avatar

    Posted on Jul 22, 2009 (permalink)

    Hi Kevin,

    Unfortunately as my colleague noted this is not supported out-of-the-box yet. We will forward your inquiry to our developers for further consideration so this can be added for one of the future releases of the control.


    Best wishes,
    Manuel
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.

    Reply

  • Marcel avatar

    Posted on Mar 8, 2010 (permalink)

    Hi,

    Is there already a way to transform the data point label of the bar to be vertical in c# or vb-code?

    Thanks
    Marcel

    Reply

  • Giuseppe Giuseppe admin's avatar

    Posted on Mar 11, 2010 (permalink)

    Hi Marcel,

    We have extended the label positioning API and added smart positioning algorithm for the Q1 2010 release but unfortunately it is still not possible to rotate the label with C# code only. This feature request is also added to our our public issue tracking system.


    Best wishes,
    Freddie
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.

    Reply

  • Q1 Webinar Week

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WPF > Chart > rotate series label
Related resources for "rotate series label"

WPF Chart Features  |  Documentation  |  Demos  |  Telerik TV  |  Self-Paced Trainer  ]