You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How do you go about changing the a point's color and size when clicked (I'm using a scatter line chart)?
This is the function I've created:
canvas.onclick = function (evt) {
var activePoints = scatterChart.getElementsAtEvent(evt);
if (activePoints.length > 0) {
activePoints[0]._model.radius = 7;
activePoints[0]._model.backgroundColor = 'rgba(0,0,255,1)';
activePoints[0]._model.borderWidth = 5;
scatterChart.update();
}
}
When this function is executed, I notice that the point size does indeed change size and color, but it immediately goes back to the default size and color. How do I make the size/color changes permanent?
The text was updated successfully, but these errors were encountered:
How do you go about changing the a point's color and size when clicked (I'm using a scatter line chart)?
This is the function I've created:
When this function is executed, I notice that the point size does indeed change size and color, but it immediately goes back to the default size and color. How do I make the size/color changes permanent?
The text was updated successfully, but these errors were encountered: