FlexChart | ComponentOne
FlexChart / Working with FlexChart / FlexChart Elements / FlexChart Axis / Axis Origin
In This Topic
    Axis Origin
    In This Topic

    Axis origin is the point where the two axes intersect each other. By default the FlexChart places the X axis at the bottom of the plot area and the Y axis on the left. This keeps the axes outside the plot area and away from the data.

    FlexChart allows you to change the origin of the axes by using Origin property of the Axis class. The Origin property specifies the value where the axis crosses its perpendicular axis.

    If specified, origin takes precendence over position as shown in the GIF below.

    You can modify the axis origin using the following code.

    flexChart.AxisX.Origin = 62;
    //Code for numeric box
    nmbxAxisXOrigin.Value = 62;
    private void NmbxAxisXOrigin_ValueChanged(object sender, C1.WPF.PropertyChangedEventArgs<double> e)
          flexChart.AxisX.Origin = nmbxAxisXOrigin.Value;
    <c1:C1FlexChart x:Name="flexChart" Header="Tokyo Average Precipitation Report | 2019" Grid.Row="1"
             ItemsSource="{Binding DataSource.Data}" Binding="Precipitation" BindingX="Date">
        <c1:Series SeriesName="Precipitation" />
            <c1:Axis Origin="62"/>