Home › forums › Using CanvasJS › How to ignore the data values less than no 5
Tagged: #piechart #convasjs #formatvalues
This topic contains 1 reply, has 2 voices, and was last updated by Vishwas R 3 months ago.
i have a dynamic array it includes numbers from ZERO to thousands(0-1000x). and i display it in a pie chart. so i want to ignore all the values less than FIVE. then i have only (5-xxxxx) values to display.
thanks for your helps and time
You can parse through the dataPoints to check if the value is greater than 5 or not before passing it to chart options to achieve this. Please take a look at this JSFiddle.
You must be logged in to reply to this topic.