Home Forums Chart Support Setting ticks for a histogram

Setting ticks for a histogram

Viewing 2 posts - 1 through 2 (of 2 total)
  • #29275

    I have the following histogram: https://jsfiddle.net/mfjbgoxp/

    I’d like to have two ways of setting ticks:

    1. Automatically set the ticks, such that they are evenly-spaced (i.e. 46, 49, 52, etc.), and each tick is at the center or at the left side of a bar (provided that the count is not zero, for that bin).

    2. Manually specify the names of the ticks.

    Thank you.

    • This topic was modified 4 years, 7 months ago by Plotter.
    • This topic was modified 4 years, 7 months ago by Plotter.
    #29280

    @plotter,

    Labels are rendered at a fixed interval on the axis and not to every dataPoint. However, if you like to show labels to dataPoint you can use label property instead of x-value. Please take a look at this updated JSFiddle for the same.


    Shashi Ranjan
    Team CanvasJS

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

You must be logged in to reply to this topic.