Telerik Forums
UI for WinUI Forum
0 answers
70 views

Hi,

 

  I am using the DateTimeContinuousAxis to manage a chart with a CandlestickSeries and a RangeBarSeries.  However there is a visual "bug", the candles stroke is not always centered on the candlestick, the gap is not always equal between the bars and the candle doesn't seem to be always centered over the tick.  Please see my attached image.


// horizontal axis
<tchart:RadCartesianChart.HorizontalAxis>
    <tchart:DateTimeContinuousAxis  MaximumTicks="5" PlotStretch="Uniform" 
    PlotMode="OnTicks" GapLength="0.3" FontSize="11" LastLabelVisibility="Visible"  Visibility="Visible"/>
</tchart:RadCartesianChart.HorizontalAxis>

// first serie
<tchart:CandlestickSeries x:Name="candleStickSeriesA" ItemsSource="{Binding}" ClipToPlotArea="False"  ZIndex="10"
                                                  tchart:ChartTrackBallBehavior.TrackInfoTemplate="{StaticResource EmptyTemplate}">

// second serie
<tchart:RangeBarSeries x:Name="candleVolumeSeriesA" ItemsSource="{Binding}" ZIndex="1"
                                               tchart:ChartTrackBallBehavior.TrackInfoTemplate="{StaticResource EmptyTemplate}">

 

  My guess is that this is in relation with the zoom level, probably the space cannot be divided perfectly by the candle space / gap or something like that.

  I need to use the DateTimeContinuousAxis because it's the only DateTime axis that allows for a constant max number of labels.  I really think this feature should be available on all Axis types..

Anyway to fix this?  Maybe an adaptive GapLength would be a good feature to add, unless I am missing something.

 

Thank you!

 

Rick
Top achievements
Rank 1
Iron
 asked on 27 Jul 2023
0 answers
89 views

Hi,

 

  how can I auto scale the chart on the Y axis when the plotted area changes?  I couldn't find it anywhere in the doc.  Thank you!

Rick
Top achievements
Rank 1
Iron
 asked on 01 Jul 2023
1 answer
48 views
Hi,

I have a chart that displays the temperature over a period of time.

I have 12 data:
- The first 8 is 20 degrees
- The last 4 is 20.25 degrees

I use a SplineAreaSeries to have a smoother rendering, but as you see in the chart, it gives a misrepresentation of the reality. The chart shows a temperature under 20C and over 20.25C.

Is it by design? Please see my "Expected.png" image.

Sébastien
Martin Ivanov
Telerik team
 answered on 19 May 2023
1 answer
61 views
Hi,

To repro the bug, just uncomment the 3rd data in the MainWindow.xaml.cs file.

This is the same bug as seen in UWP control 
https://www.telerik.com/forums/lineseries-requires-at-minimum-3-data-to-draw-a-line-serie.

If you fix this one, it would be great to have the same fix for UWP too.
Thank you

Sébastien
Dilyan Traykov
Telerik team
 answered on 24 Jan 2023
1 answer
175 views

Hey guys. Took a clip from your WinUI demo. Attached as simple user control. Using this version of WinUI SDK (from project file) and I get this odd error. How did you guys get that to work? If you want I can create a complete project. Demo source would help. Thanks. 

  <ItemGroup>
    <PackageReference Include="Microsoft.WindowsAppSDK" Version="1.0.0-experimental1" />
    <PackageReference Include="Microsoft.WindowsAppSDK.Foundation" Version="1.0.0-experimental1" />
    <PackageReference Include="Microsoft.WindowsAppSDK.WinUI" Version="1.0.0-experimental1" />
    <PackageReference Include="Microsoft.WindowsAppSDK.InteractiveExperiences" Version="1.0.0-experimental1" />
    <Manifest Include="$(ApplicationManifest)" />
  </ItemGroup>

  <ItemGroup>
    <PackageReference Include="Telerik.WinUI.Controls.Trial" Version="0.4.0" />
    <Manifest Include="$(ApplicationManifest)" />
  </ItemGroup>
Dilyan Traykov
Telerik team
 answered on 02 Sep 2021
Top users last month
Dominik
Top achievements
Rank 1
Giuliano
Top achievements
Rank 1
Dominic
Top achievements
Rank 1
Glendys
Top achievements
Rank 1
NoobMaster
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?