ASE Home Page Products Download Purchase Support About ASE
ChartDirector Support
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  xAxis to be INTEGER numbers only
Posted by icm63 on Mar-28-2019 09:57
I would like the xAxis and the yAxis to be integers only.

How can make this happen.

My code for the attached xAxis chart attached

note: calculated range is xAxisMin and xAxisMax etc

        mainXYChart1.xAxis().setLinearScale(xAxisMin, xAxisMax)
        mainXYChart1.yAxis().setLinearScale(yAxisMin, yAxisMax)


  Re: xAxis to be INTEGER numbers only
Posted by Peter Kwan on Mar-28-2019 14:48
Hi icm63,

You may use Axis.setMinTickInc.

For example:

' Tick increment must be at least 1

Hope this can help.

Peter Kwan