# Y-axis Labels on Apex charts not getting properly displayed

**URL:** <https://forum.inductiveautomation.com/t/y-axis-labels-on-apex-charts-not-getting-properly-displayed/82311>\
**Category:** Ignition\
**Created:** [November 24, 2023, 12:52am UTC](https://forum.inductiveautomation.com/t/y-axis-labels-on-apex-charts-not-getting-properly-displayed/82311 "2023-11-24T00:52:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bharat\_Krishnan](https://avatars.discourse-cdn.com/v4/letter/b/2acd7d/32.png) [@Bharat\_Krishnan](https://forum.inductiveautomation.com/u/Bharat_Krishnan)\
**Post date:** [November 24, 2023, 12:52am UTC](https://forum.inductiveautomation.com/t/y-axis-labels-on-apex-charts-not-getting-properly-displayed/82311/1 "2023-11-24T00:52:16Z")

</div>

I am trying to display the y-axis labels using the formatter function since i require the defects for the day to be displayed in the y-axis following is the screenshot of the view how i have obtained it. from the pic you can see the labels for y =0 not being displayed even though there is a poin on the graph.

 ![1](https://us1.discourse-cdn.com/inductiveautomation/original/3X/9/5/95c83fef30fba7a131cd9a4008a185cfb8a16b05.png)

````auto
def transform(self, value, quality, timestamp):

    defects = []
    lengths = []
    for row in value:
        defects.append(row['RESULT'])

    # get unique defects only
    defects = set(defects)
    # convert set back to list
    defects = list(defects)

    # create string to be returned
    listStr = "["
    for defect in defects:
        lengths.append(len(defect.strip()))
        # split strings so they get displayed on new lines
        if len(defect.strip()) >= 40:
            listStr += "'" + str(defect.strip().encode('ascii').split(' ', 2)) + "',"
        else:
            listStr += "'" + defect.strip().encode('ascii') + "',"
    listStr += "]"

    funcStr = 'function (val) {\
        var defects = ' + listStr + ';\
        return defects[val]\
        }'

    return funcStr```
````
