Hi , I have two axis Y and Y2 , and I want to add scatter points based on Y2 axis,Now its plotting based on Y axis.
data: [{
lineThickness: 2,
type: "scatter",
name: "depth",
axisYIndex: 0,
dataPoints: gdepth[id],
markerSize: 4,
}, {
markerSize: 0,
lineThickness: 2,
name: "price",
type: "line",
color: "black",
axisYIndex: 2,
dataPoints: gprice[id],
}, {
fillOpacity: 0.1,
markerSize: 0,
lineThickness: 1,
axisYType: "secondary",
name: "volume",
type: "column",
color: "black",
dataPoints: gvolume[id],
}
]
and i add scatter dymnamically using following code
` gdepth[id].push({
toolTipContent: x.price + ” -> ” + quant,
x: xval[id],
y: x.price,
markerSize: size,
color: color,
markerBorderColor: markbcol,
markerType: “triangle”,
markerBorderThickness: borderthickness,
});`