Codesandbox link: https://codesandbox.io/p/sandbox/vertically-stacked-axes-forked-pd3h7g?file=%2Fsrc%2FApp.tsx%3A133%2C25
I put the first box annotation to be from -5 to 6 and the x-axis range is from 0 to 10, so that mean some portion of the first box annotation is out of the chart. And there is a click event on the box annotation and console log whenever it is clicked on, and when I click outside of the chart box/square and align it to the box annotation, it is registering the click.
- Nung Khual asked 3 months ago
- last active 3 months ago
I am using FastLineRenderableSeries with DateTimeAxis for X-axis.
And, I’m using mouse event to get X-axis value use clicked by mouse.
I’m using code below.
Put vertical line at chart where nearest X value exists, when mouse button clicked
But sometimes MouseButtonEventArgs.GetPosition takes time.
Code like this.
private void chartSurface_PreviewMouseDown(object sender, MouseButtonEventArgs e)
{
if (isInitialized == false) return;
PerformanceAnalyzer.Start("chartSurface_PreviewMouseDown");
// Get mouse point
var mousePoint = e.GetPosition(chartSurface);
PerformanceAnalyzer.Check("e.GetPosition(chartSurface)");
}
Normally.
Performance analyze start:2021/09/09 10:55:47 chartSurface_PreviewMouseDown
Performance analyze check:2021/09/09 10:55:47 elapsed:00:00:00.0027280 e.GetPosition(chartSurface)
When slow
Performance analyze start:2021/09/09 10:55:48 chartSurface_PreviewMouseDown
Performance analyze check:2021/09/09 10:55:48 elapsed:00:00:00.4303424 e.GetPosition(chartSurface)
Is there any good way to get more good and stable performance?
- Hiroyuki Seki asked 3 years ago
- last active 3 years ago
Hello,
I am currently using a rollover modifier to display tooltip values on the trend. Whenever a data point is clicked however, the trend stretches so this point is along the right hand axis, and it pans so this point is along the x-axis. Is there a way to disable this feature?
Here are my modifier declarations:
<SciChart:SciChartSurface.ChartModifier>
<SciChart:ModifierGroup>
<SciChart:RubberBandXyZoomModifier IsXAxisOnly="False"/>
<SciChart:XAxisDragModifier/>
<SciChart:CursorModifier ShowAxisLabels="False"/>
<SciChart:RolloverModifier ReceiveHandledEvents="False" ShowTooltipOn="Always" ShowAxisLabels="True" UseInterpolation="True" SnapsToDevicePixels="False" TooltipLabelTemplate="{StaticResource RolloverLabelTemplate}"/>
</SciChart:ModifierGroup>
</SciChart:SciChartSurface.ChartModifier>
Thanks,
Andrew
- Andrew Moghadam asked 9 years ago
- last active 9 years ago