X and Y Axis should come with Integer value

3 posts, 0 answers
  1. Sam
    Sam avatar
    11 posts
    Member since:
    Apr 2020

    Posted 20 Apr 2020 Link to this post

    I am using Kendo scatter chart by default x and y axis data are coming decimal. i want integer only. i don't want to use Majorunit because it has to be calculated based on series.

    <kendo-chart-series-item type="scatter" [data]="graphData" xField="inc_margin_amt" yField="inc_sales_amt">
    <kendo-chart-x-axis-item [min]="graph.xModel.min" [max]="graph.xModel.max">
    <kendo-chart-y-axis-item [min]="graph.yModel.min" [max]="graph.yModel.max">

    Attaching the image for your reference .

  2. Dimiter Topalov
    Dimiter Topalov avatar
    1285 posts

    Posted 21 Apr 2020 Link to this post

    Hello Sam,

    The axis item labels.format option can be used to set the preferred formatting for the labels:



    Here is an example, demonstrating this approach:


    I hope this helps.

    Dimiter Topalov
    Progress Telerik

    Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
    Our thoughts here at Progress are with those affected by the outbreak.
  3. Sam
    Sam avatar
    11 posts
    Member since:
    Apr 2020

    Posted 22 Apr 2020 in reply to Dimiter Topalov Link to this post

    Thank you so much.. appreciate your efforts.
Back to Top