Hello,
I’m experiencing a strange phenomenon in which the (in-)visibility of the MajorGridLines of the X-and Y-Axis is only realized in the GUI after the SciChartSurface containing the Axis has been manually resized.
The SciChartSurface is embedded in our GUI like any ordinary WPF-element.
The visibility of the MajorGridLines is controlled via a C#-property:
public virtual bool BackgroundGridVisibility { get { return m_yAxis.DrawMajorGridLines; } set { m_xAxis.DrawMajorGridLines = m_yAxis.DrawMajorGridLines = value; NotifyPropertyChanged(); } }
I tried various application of the UpdateLayout-Funktion after setting the visibility, but did not observe positive change.
Is there some other kind of “repaint”-function that can be used to update the visibility of the GridLines?
Thank you
- Marc Vahldieck asked 11 months ago
- last active 11 months ago
Hi there,
I am new to the SciChart. Could you please tell me what is the name of “x-Axis” in SciStockChart?
Since from your example, you used SciChartSurface. The Checkbox syntax shows below. The ElementName is xAxis.
CheckBox Margin=”3″ Content=”Draw Major Gridlines” IsChecked=”{Binding ElementName=xAxis, Path=DrawMajorGridLines, Mode=TwoWay}”/>
… …
s:SciChartSurface.XAxis>
s:DateTimeAxis x:Name=”xAxis” VisibleRangeChanged=”OnXVisibleRangeChanged”>
/s:SciChartSurface.XAxis>
But I can not find or change the name property in SciStockChart. Could you please tell me what ElementName should I use? Or if there are other ways to achieve this. Thank you very much!
- Dexin Wang asked 6 years ago
- last active 6 years ago
Hi, guys
My x axis is SCICategoryDateTimeAxis and i’m want to draw grid line with custom period. Let’s say every four hours for data with a period of thirty minutes. What is the best way for that?
Can i redifined axis’s tickCoordinatesProvider?
Can you provide some example?
Or it only possible with axes annotations ?
Best regards,
Sushynski Andrei
- Andrei Sushynski asked 7 years ago
- last active 7 years ago
Hi,
I want to limit the range of the grid lines of a graph. For example on the screenshot, I don’t want any gridlines on the marked area.
Is there way to do what I want?
I’m using version 3.60.0.7618
Thank you
- kewur asked 7 years ago
- last active 7 years ago
I made an example based on the “Vertically Stacked Axes” from SciChart Examples. The main difference is that I can add DataSeries / YAxes on the fly.
The problem is that when DrawMajorGridLines, DrawMinorGridLines are turned ON the are drawn only at the first trace.
- Jan Kaiser asked 9 years ago
- last active 9 years ago