Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Livechart2 WPF with quadrilateral cartesian plane lineSeries #1211

Open
Rkjena10 opened this issue Sep 4, 2023 · 2 comments
Open

Livechart2 WPF with quadrilateral cartesian plane lineSeries #1211

Rkjena10 opened this issue Sep 4, 2023 · 2 comments
Labels
new feature priority 2 low priority issue and maybe will take a while to be fixed.

Comments

@Rkjena10
Copy link

Rkjena10 commented Sep 4, 2023

Hi,
I have a simple wpf application with Cartesian chart , I am able to draw points . But not able to draw quadrilateral cartesian chart that can intersect both the coordinates both the axes. My codes are here.

<lvc:CartesianChart Series="{Binding SeriesCollection}" x:Name="carchart" Zoom="Xy"
LegendLocation="Bottom">
lvc:CartesianChart.AxisX
<lvc:Axis MaxValue="40"
MinValue="-40">
lvc:Axis.Separator
<lvc:Separator Step="8">
lvc:Separator.Stroke

</lvc:Separator.Stroke>
</lvc:Separator>
</lvc:Axis.Separator>
</lvc:Axis>
</lvc:CartesianChart.AxisX>
lvc:CartesianChart.AxisY
<lvc:Axis MaxValue="40" MinValue="-40">
lvc:Axis.Separator
<lvc:Separator Step="8">
lvc:Separator.Stroke

</lvc:Separator.Stroke>
</lvc:Separator>
</lvc:Axis.Separator>
</lvc:Axis>
</lvc:CartesianChart.AxisY>
</lvc:CartesianChart>
--------------------------------------- In Code behind
SeriesCollection = new SeriesCollection
{
new LineSeries
{

                Title = "Zone 1",
                Values = ListPointszone1,
                LineSmoothness = 0,
                 ScalesYAt = 0,
                ScalesXAt = 0,
                Fill = Brushes.Transparent,
                PointGeometrySize=10,

            },
            new LineSeries
            {
                Title = "Zone 2",
                Values = ListPointszone2,
                LineSmoothness = 0,
                ScalesYAt = 0,
                ScalesXAt = 0,
                Fill = Brushes.Transparent,
                PointGeometrySize = 10
            }
        };
        DataContext = this;

Its producing below results.
image

But , i want something like this.
image

Please help

@Rkjena10
Copy link
Author

Rkjena10 commented Sep 4, 2023

Now , I am able to add Two coordinates by using below code.
lvc:CartesianChart.AxisY
<lvc:Axis MaxValue="40" MinValue="-40" IsMerged="False">
lvc:Axis.Separator
<lvc:Separator Step="8">
</lvc:Separator>
</lvc:Axis.Separator>
lvc:Axis.Sections
<lvc:AxisSection Value="0"
DataLabel="True"
StrokeThickness="1"
Stroke="Gray"
DisableAnimations="False"
/>
</lvc:Axis.Sections>
</lvc:Axis>
</lvc:CartesianChart.AxisY>

And now i am getting like below image.
image

Here i want the 0 , 8 , 16 , 24 ...should come in that intersection line . That is I want that Separator step="8" in side Axis Section. How can we do that ? Hope for help

@beto-rodriguez beto-rodriguez added the priority 2 low priority issue and maybe will take a while to be fixed. label Sep 14, 2023
@Rkjena10
Copy link
Author

Hi ,

Is there any updates on the above feature implementation ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new feature priority 2 low priority issue and maybe will take a while to be fixed.
Projects
None yet
Development

No branches or pull requests

2 participants