I have a SfCartesianChart with a TrackballBehavior. I would like to have a custom marker, put a widget instead.
From what I tested you can update some parameters (size, border, shape, ...), but you can't pass a completely custom widget.The onMarkerRender does not return a widget either, it returns void.
An example of what I would like (see attachment).
By doing something like this :
onMarkerRender: (MarkerRenderArgs markerArgs) {
Measure measure = listMeasuresSelected[markerArgs.seriesIndex];
return Container(
decoration: BoxDecoration(
shape: BoxShape.circle,
border: Border.all(
color: AppColors.mapMeasureBorderColor[measure],
width: 1
),
),
child: Padding(
padding: EdgeInsets.all(10),
child: Container(
width: 12,
height: 12,
decoration: BoxDecoration(
shape: BoxShape.circle,
border: Border.all(
color: AppColors.mapMeasureBorderColor[measure],
width: 2
)
),
),
),
);
},
Did I miss something? Would it be possible to integrate it in the near future?
Thanks in advance