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

use label if x is null or empty

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

    Dears,
    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:”” },

    thanks

    #24722

    @sa-jasbana,

    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.