Devextreme-reactive: Need to customise value axis steps.

Created on 13 Nov 2019  路  4Comments  路  Source: DevExpress/devextreme-reactive

I am creating line chart, but I am facing a problem. My values varies from 0 to 5, and the graph values axis are in decimal points like _0,0.5,1,1.5,2_ and so on till 5. But I do not need these decimal points. I need simple value axis like _0,1,2,3,4,5._ Is there any way with which I can achieve this.

PS: When the value range is bigger like 0 to 10, then it works fine, like don't get decimal values, but when the range is small like in my case 0 to 5 then only I face this issue.

Here is screenshot of the issue https://prnt.sc/pw8592

Chart Awaiting customer response question

Most helpful comment

@simerdev You can filter grid lines using the gridComponent property like in the updated example.

All 4 comments

Hi @simerdev,

To avoid decimal labels, you can use the labelComponent property in the ValueAxis plugin like in the following example.

Ok Thanks @Krijovnick . But what if I want to remove the lines for decimals.

@simerdev You can filter grid lines using the gridComponent property like in the updated example.

This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

SferaDev picture SferaDev  路  3Comments

zcuric picture zcuric  路  3Comments

linuxhype picture linuxhype  路  3Comments

ccamusso picture ccamusso  路  3Comments

jesusgp22 picture jesusgp22  路  3Comments