Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
180
Create 2 line chart subtitle
posted

I'm trying to create a 2 line chart subtitle.  I can embed a linefeed in the title string and I get two lines.  The entire subtitle is centered in the graph but the first line is left justified.  Is there any way to horizontally center both lines.  I tried looking for a template I could modify but was unsuccessful.

Parents
No Data
Reply
  • 34810
    Offline posted

    Hello Bob,

    I believe this is happening because the Subtitle of the XamDataChart is a single TextBlock control that by default is horizontally centered. This does not include its text alignment though. It appears that you can change this by setting the attached TextBlock.TextAlignment property on the XamDataChart to “Center” like so:

    <ig:XamDataChart TextBlock.TextAlignment="Center">

    I hope this helps. Please let me know if you have any other questions or concerns on this matter.

Children