Home Forums Chart Support The 10 First Elements

The 10 First Elements

Viewing 3 posts - 1 through 3 (of 3 total)
  • #32049

    Hi,
    I’m currently creating a bar Chart for my Top users.
    Can you tell me how i can only shwo the first 10(in terms of highest value) of the list i gave to my charts?
    I tried maxium on the AxeX but it doesn’t work ( The charts take 10 first values i give him)

    Thanks a lot and sorry if my questions is stupid i could not manage to find the solution on my own

    #32054

    Hi guys, still looking for an answer :)

    #32059

    @jsaispas,

    You can show just first 10 datapoints within the viewport by setting viewportMaximum property to 10 (when x-values are 1,2,3,…). If you are looking for showing top-10 (datapoints with highest y-values) to be shown, please take a look at this JSFiddle.

    If you are still finding difficulty in achieving what you are looking for, kindly create JSFiddle with your use-case and share it with us so that we can look into the sample data & the chart-options being used, understand the scenario better and help you out.


    Vishwas R
    Team CanvasJS

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.