Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    How to get only integer numbers on the Y-axis

    Hi Isomorphic,

    I am using SmartGWT Pro 12.0

    I am working on Facetchart with ChartType(BAR). When I get small numbers in my series then Y-Axis starts using floating numbers. How can I force it to only use integer numbers.

    Refer below attached image

    Click image for larger version

Name:	Graph.PNG
Views:	70
Size:	4.8 KB
ID:	255571

    Kindly let me know how to solve this issue

    Thank you.
    Last edited by vnathank; 17 Oct 2018, 05:58.

    #2
    See facetChart.gradationGaps.

    Comment


      #3
      Hi Isomorphic,

      Sorry for late reply

      I used "gradationGaps" property along with following properties.

      counterHistoryAreaChart.setLogScale(Boolean.TRUE);
      counterHistoryAreaChart.setUseLogGradations(Boolean.TRUE);
      counterHistoryAreaChart.setLogBase(2);
      counterHistoryAreaChart.setLogGradations( 1,2,3,4);

      I didn't get the exact result and gradationGaps property is taking float values.

      Kindly let me know how to solve this issue

      Thank you.


      Comment

      Working...
      X