I have a strange margin in the end of the chart. But AxisMarkerAnnotations don’t have this margin. Only series and HorizontalLineAnnotation. Look at the picture:
Where did it come from?
And maybe I can add margins to max and mix values?
- Iliya Mashin asked 3 years ago
- last active 3 years ago
Hi
I have multiple SciChartSurfaces aligned using the HorizontalGroupHelper. I also need to have multiple y-axes in the charts. I was hoping to use set the margin on each y-axis, but when I do, the upper axis is drawn outside the window. Is there a work-around?
Example.
<Window x:Class="ScichartTest.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:s="http://schemas.abtsoftware.co.uk/scichart"
Title="MainWindow"
Width="800"
Height="450">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition />
<ColumnDefinition />
</Grid.ColumnDefinitions>
<!-- Chart left -->
<s:SciChartSurface s:HorizontalGroupHelper.HorizontalChartGroup="group">
<s:SciChartSurface.XAxis>
<s:NumericAxis
AxisAlignment="Left"
AxisTitle="x" />
</s:SciChartSurface.XAxis>
<s:SciChartSurface.YAxes>
<s:NumericAxis
Margin="0,0,0,12"
AxisAlignment="Top"
AxisTitle="Left y1"
Id="LeftY1" />
<s:NumericAxis
Margin="0,0,0,12"
AxisAlignment="Top"
AxisTitle="Left y2"
Id="Lefty2" />
<s:NumericAxis
Margin="0,0,0,12"
AxisAlignment="Top"
AxisTitle="Left y3"
Id="LeftY3" />
</s:SciChartSurface.YAxes>
</s:SciChartSurface>
<!-- Chart right -->
<s:SciChartSurface
Grid.Column="1"
s:HorizontalGroupHelper.HorizontalChartGroup="group">
<s:SciChartSurface.XAxis>
<s:NumericAxis
AxisAlignment="Left"
AxisTitle="x" />
</s:SciChartSurface.XAxis>
<s:SciChartSurface.YAxes>
<s:NumericAxis
AxisAlignment="Top"
AxisTitle="Right y1"
Id="RightY1" />
</s:SciChartSurface.YAxes>
</s:SciChartSurface>
</Grid>
- Jørgen Syvertsen asked 3 years ago
- last active 3 years ago
When I embed my view controller in a navigation controller the top of the chart is hidden behind the navigation bar. So I went to the storyboard and found the view controller attributes section called “extend edges” and turned off the option called “under top bars”. This fixes the top of the chart. Now the bottom of the chart drops off the bottom of the screen. The x-axis is completely missing. Does SciChart support this case?
- Michael Chartier asked 7 years ago
- last active 7 years ago
Have a good day!
Is there any way to make two and more axis to take place in the same position (one overlays another).
I’ve tried to do this using margin, but the surface had moved to the left border (picture 1).
<visuals:NumericAxis VisibleRange="{Binding YVisibleRange, Mode=TwoWay}"
Width="40"
DrawLabels="False"
DrawMajorBands="False"
DrawMajorTicks="False"
DrawMinorTicks="False"
DrawMinorGridLines="False"
MaxAutoTicks="6"/>
<visuals:NumericAxis DrawLabels="True"
Width="40"
Id="Chart1"
Margin="0,0,-120,0"
Visibility="Visible"
AutoTicks="True"
MaxAutoTicks="4"/>
<visuals:NumericAxis DrawLabels="True"
Width="40"
Id="Chart2"
Margin="0,0,-120,0"
Visibility="Visible"
MaxAutoTicks="4"/>
Thanks in advance!
- Egor asked 10 years ago
- last active 10 years ago