Home forums Chart Support use label if x is null or empty

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

    Is there way to make charts use label value if x value is null or empty
    like this

    data: [
    type: “column”,
    dataPoints: [

    { y: 71, label: “cat 1”, x:null },
    { y: 55, label: “cat 2″, x:”” },




    When x-value is null it cannot be represented over a mathematical scale and as a result, the dataPoints won’t be rendered in the chart. In this case, using labels without x-values for all the dataPoints should work fine.

    If this doesn’t fulfill your requirements, kindly create JSFiddle with your use-case and share it with us so that we can understand it better and help you out.

    Shashi Ranjan
    Team CanvasJS

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

You must be logged in to reply to this topic.