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
780
Axis Label text truncated if same number of characters but greater length.
posted

In this chart, the axis label for "Southeast" gets truncated.  I think it's due to the fact that it's being measured as the same length as "Northwest" but takes a little more space due to the "S".

<igChart:XamWebChart x:Name="XamWebChart1" Grid.Row="0" >
 <igChart:XamWebChart.Series>
     <igChart:Series ChartType="Bar" Label="Hello" >
         <igChart:Series.DataPoints>
 <igChart:DataPoint Value="50" Label="Northwest"  />
 <igChart:DataPoint Value="40" Label="Southeast" />
         </igChart:Series.DataPoints>
     </igChart:Series>
 </igChart:XamWebChart.Series>
</igChart:XamWebChart>

Is there a way to pad the Label length so it has a little spare room to work with in these scenarios?  My data is dynamic, so I can't just handle this scenario.  If I put "Southeast " with a space at the end, it works, but if I try to add the " " to all label values ("Northwest "), then it still truncates the Southeast. 

Note, if the larger width label (Southeast) is first, this doesn't happen.  But since I can't control the data, this doesn't help either. 

Any ideas?  It seems like kind of a minor issue, but at the same time it makes the chart look bad for my client.  Thanks for any help!

- Keith

Parents
  • 28496
    Verified Answer
    Offline posted

    i logged this as a bug and fixed it.  the bug # is 17214 - feel free to contact Infragistics Developer Support at any time to inquire about when the fix will be released.

    as a temporary workaround, try switching to a monospace font.

    <igChart:XamWebChart.Axes>
                    <igChart:Axis AxisType="PrimaryY">
                        <igChart:Axis.Label>
                            <igChart:LabelGroup FontFamily="Courier" />
                        </igChart:Axis.Label>
                    </igChart:Axis>
                </igChart:XamWebChart.Axes>

Reply Children
No Data