Sets the y value of dataPoint. It determines the position of dataPoint on Y Axis. Values can be positive or Negative
Default: nullvar chart = new CanvasJS.Chart("container",
{
.
.
data: [{
dataPoints: [
{ x:10, y: 5},
],
},
]
.
.
});
chart.render();
2 Comments
How to text in y-axis in stackedColumn chart.
my datapoint is like this
{x:’2015-12-01 ‘, y: ‘run’}
Dinesh,
You cannot set text directly to y. But it can be customized using labelFormatter as shown in this example