Forum Replies Created by Tony Antony

Viewing 2 posts - 1 through 2 (of 2 total)
  • in reply to: How to set labels inside each bar #43267

    @MMOWTSTM,

    You can place the axis labels inside each bar/column by setting labelPlacement property of axisX to inside as shown in the code snippet below:

    axisX: {
        labelPlacement: "inside"
    }

    Please take a look at this gallery page for an example on the same.

    Bar Chart with Label Placed Inside Axis


    Tony Antony
    Team CanvasJS

    in reply to: Remove Axis Label altogether #43232

    Jake,

    You can prevent the chart to reserve space for the hidden axes by setting negative values to the axis margin as shown in this code snippet below,

    axisY:{
        title: "",
        tickLength: 0,
        lineThickness:0,
        margin:-4,
        labelFormatter: function(e) {
          return "";
       }

    If the solution suggested doesn’t fulfill your requirement, kindly create a JSFiddle with your use case so that we can understand your scenario better and help you out with an appropriate solution.


    Tony Antony
    Team CanvasJS

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