I tried to add a cursorModifier and then modify the stroke color later. But the color changes don’t work. Anything wrong with my codes?
Add cursorModified:
let cursorModifier = new CursorModifier({
crosshairStroke: #fff,
crosshairStrokeThickness: 1,
showTooltip: true,
showAxisLabels: false,
tooltipContainerBackground: "transparent",
tooltipTextStroke: #fff,
});
sciChartSurfaceRef.chartModifiers.add(cursorModifier);
Change the stroke color:
let cursorModifier = sciChartSurfaceRef.chartModifiers.get(0);
if (cursorModifier) {
cursorModifier.crosshairStroke = #333;
cursorModifier.tooltipTextStroke = #333;
}
- Kelly Chan asked 11 months ago
- last active 11 months ago