What problem does this feature solve?
We are using dragable labels, so that a user can fine-tune his visualisation (esp. overlapping labels).
labelLayout: (params: any) => {
return {
align: 'left',
x: params.labelRect.x,
y: params.labelRect.y,
draggable: true
}
When we toggle between hide and show labels, the position of the labels is reset - and a user needs to drag the labels again.
Also, all labels are resetted when a new data point is added. This makes sense when the overall scale of the chart changes, but with fixed x-/y-axis there should be no harm keeping the label positions as well.
Thank you very much!
What does the proposed API look like?
?
What problem does this feature solve?
We are using dragable labels, so that a user can fine-tune his visualisation (esp. overlapping labels).
When we toggle between hide and show labels, the position of the labels is reset - and a user needs to drag the labels again.
Also, all labels are resetted when a new data point is added. This makes sense when the overall scale of the chart changes, but with fixed x-/y-axis there should be no harm keeping the label positions as well.
Thank you very much!
What does the proposed API look like?
?