You must be logged in to post your query.
Home › Forums › Chart Support › use label if x is null or empty
Tagged: dataPoints, datasource
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
@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
You must be logged in to reply to this topic. Login/Register