Forums

Find answers, ask questions, and connect with our
community all around the world.

Home Forum Omnis General Forum Format y axis tick labels in graph2 kG2xyScatter

  • Format y axis tick labels in graph2 kG2xyScatter

    Posted by maxperique on September 25, 2025 at 1:32 pm

    Hi.

    I’ve got a kG2xyScatter plot with y-axis values usually within [1000000,100000000].

    I’d like to format the y-axis tick labels setting thousand separator as a dot so that, for example, 12000000 has a tick label of 12.000.000 (definitely more readable).

    I’ve tried to do (under On evPreLayout)

    Do $cinst.$objs.MY_GRAPH.$getyaxis() Returns locYaxis
    Do locYaxis.$labelformat.$assign(“(value|0.,)”)

    and many other options such as “{value|0.,}” or $setdatalabelformat(), etc. But nothing worked so far.

    Any suggestion?

    Many thanks.

    • This discussion was modified 6 days, 15 hours ago by  maxperique.
    maxperique replied 5 days, 17 hours ago 2 Members · 2 Replies
  • 2 Replies
  • Götz Krija

    Member
    September 26, 2025 at 7:32 am

    Hi,

    You can use $setlabelformat() instead of $setdatalabelformat() in evPreLayout:

    On evPreLayout
    Do $cinst.$objs.MY_GRAPH.$getyaxis() Returns iYAxisObject
    Do iYAxisObject.$setlabelformat(‘{value|.,}’)

  • maxperique

    Member
    September 26, 2025 at 11:44 am

    Hi Götz.

    Perfect thank you!!!

Log in to reply.