You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

SciChart v4.6.0 Mac端Drag/Rollover Modifier超出图表高度问题求助

求助:SciChart 4.6.0 Mac版中Drag/Rollover Modifier线条超出图表高度怎么解决?

我用SciChart 4.6.0版本开发了一款Mac应用,目前遇到两个问题:

  • Drag Modifier的绿色矩形会超出图表高度
  • Rollover Modifier的线条同样存在超出图表高度的情况

这两个问题在4.4.0版本中并未出现,附上参考截图:

  • 截图1:绿色矩形超出图表高度
  • 截图2:Rollover样式同样存在该问题

提前感谢各位的帮助!

我曾尝试回退到4.4.0版本,一切正常,但更倾向于使用最新的4.6.0版本——它支持Xcode 15且具备更多功能。

该示例应用基于Swift和SwiftUI环境开发,通过NSViewControllerRepresentable渲染SciChart图表。

以下是添加RollOver Modifier的代码:

SCIUpdateSuspender.usingWith(surface) {
    self.surface.xAxes.add(xAxis)
    self.surface.yAxes.add(yAxis)
    self.surface.renderableSeries.add(self.rSeries)
    self.surface.chartModifiers.add(items: SCIRolloverModifier())
}

添加Drag Modifier的代码:

SCIUpdateSuspender.usingWith(surface) {
    self.surface.chartModifiers.add(items: SCIZoomExtentsModifier(), SCIRubberBandXyZoomModifier())
}

内容的提问来源于stack exchange,提问作者Tommy

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.13 17:44:54