Skip to main content
1-Visitor
December 5, 2015
Question

How to set x axis label width for chart ?

  • December 5, 2015
  • 2 replies
  • 5503 views

I am using label chart with Horizontal chart orientation. X-axis field is string (length more than 100) field names are truncated as you can see due to this . How to adjust the label width ? please refer screenshot for reference.

LabelChart.png

    2 replies

    1-Visitor
    December 5, 2015

    I have the labels overwritten when the chart orientation is vertical. With horizontal orientation, the labels are truncated on the left too.

    LabelChartVertical.png

    1-Visitor
    June 21, 2017

    Hi,

    Did you found a solution for your chart labels display?

    I'm very interested about it.

    1-Visitor
    June 21, 2017

    Hi, no, I just modify the label to fit in. Maybe the new widget Custom Chart handles this better.

    1-Visitor
    June 26, 2017

    I finally found a solution. The Custom Chart Widget extensions have issues, so:

    1. Go to the Composer and click on your Label Chart
    2. In the properties panel, Reset all X axis format properties
      1. XAxisStyle
      2. XAxisFormat
      3. XAxisLabelType
      4. XAxisLabelRotation
    3. Save then reload your mashup
    4. Labels are displayed without overrides. In some cases there is no space between labels but it's readable.
      Some labels are suppressed automatically to be able to have a correct display.
    1-Visitor
    June 27, 2017

    It still doesn't work for me.

    1-Visitor
    June 27, 2017

    Hum, yes I see.
    But in your example you have a small number of very long labels.

    In my case I have a bug number of quite short labels.

    I don't have much more information, I tried from a new default Label chart, and with a very fiew settings, it worked.
    I suppose the main problem was for the XAxis style. May be the Tick settings or whatever else solve my problem (I'm afraid, I don't want to edit it ^^).

    I created another case, but PTC closed it without giving me more informations...