error when add EnableBusinessHours at True to axis
Hi
I am building a financial chart with stock values.
when I insert EnableBusinessHours="True" in the primary axis,
the dates are staggered as well as the tracking of the bars.
basically, it does not take into account the deleted weekends.
see the attached image.
What can I do?
Attachment: chart_error_f6c5bbb5.zip
Hi Marco,
Thank you for your input. Based on your feedback, we checked the "EnableBusinessHours" property using a simple sample and noticed mismatches in the candle series segments. Could you please confirm if these are the mismatches you’re referring to in the bar placement, or if there’s another issue related to the trackball or crosshair that you had in mind?
Any additional details you can provide about your specific requirements would be very helpful. This will allow us to offer a more complete solution tailored to your needs.
Thank you for your cooperation.
Regards,
NitheeshKumar.
Hello,
several problems are generated.
The first is the one you highlighted. Then:
2- the double vertical tracking line is generated as in my image,
3- the time axis eliminates the last days
in my opinion, problem 2 is related to 3.
this is my xaml code.
<chart:SfChart x:Name="financialChart" Grid.Column="1" Grid.ColumnSpan="2" Grid.RowSpan="1" Margin="5" LayoutUpdated="financialChart_LayoutUpdated" MouseMove="financialChart_MouseMove">
<chart:SfChart.Header>
<TextBlock x:Name="chartTitle" TextAlignment="Center" Text="Stock Data" FontSize="17" Margin="0,10,0,0"/>
</chart:SfChart.Header>
<chart:SfChart.PrimaryAxis>
<chart:DateTimeAxis x:Name="DateTimeAxis" ShowGridLines="True" ShowTrackBallInfo="True" ActualRangeChanged="DateTimeAxis_ActualRangeChanged" LabelCreated="DateTimeAxis_LabelCreated" LabelFormat="MMM-dd" LabelRotationAngle="0" PlotOffsetEnd="30" ZoomFactor="0.1" ZoomPosition="0.9" EnableScrollBar="True" EnableAutoIntervalOnZooming="True"
AxisLineStyle="{StaticResource lineStyle}" HeaderTemplate="{StaticResource headerTemplate1}" EdgeLabelsDrawingMode="Shift" EdgeLabelsVisibilityMode="Visible" EnableBusinessHours="True" WorkingDays="Monday,Tuesday,Wednesday,Thursday,Friday">
<chart:DateTimeAxis.LabelStyle>
<chart:LabelStyle FontSize="10"/>
</chart:DateTimeAxis.LabelStyle>
</chart:DateTimeAxis>
</chart:SfChart.PrimaryAxis>
<chart:SfChart.SecondaryAxis>
<chart:NumericalAxis LabelFormat="0" ShowGridLines="True" OpposedPosition="True" ShowTrackBallInfo="True" AxisLineStyle="{StaticResource lineStyle}" HeaderTemplate="{StaticResource headerTemplate2}">
<chart:NumericalAxis.LabelStyle>
<chart:LabelStyle FontSize="12.5"/>
</chart:NumericalAxis.LabelStyle>
</chart:NumericalAxis>
</chart:SfChart.SecondaryAxis>
<chart:SfChart.Behaviors>
<chart:ChartZoomPanBehavior EnableSelectionZooming="True" ResetOnDoubleTap="True" EnableZoomingToolBar="True"/>
<chart:ChartCrossHairBehavior />
<chart:ChartTrackBallBehavior/>
</chart:SfChart.Behaviors>
</chart:SfChart>
Hi Macro,
We have taken your query into consideration. Are you referring to the trackball and crosshair as the two vertical tracking lines in provided image? We will further investigate these issues with our development team based on the scenarios you've mentioned. We will provide you with an update by September 10, 2024.
Regards,
Nitheeshkumar.
yes, i am referring to the image error. as soon as it is available, i will update the nuget package and let you know.
thanks
Hi Macro,
We apologize for the continuous delay. We want to clarify the reported issue regarding eliminating the last day of the week. In the dataset, we have removed weekends and ensured this with a Line Series instead of a Candle Series, and it does not eliminate the last day of the week.
Are you referring to the last day of the week as Friday? We might have misunderstood your scenario. Could you please confirm or provide more details about your requirement to eliminate the last day of the week? This will help us provide a better follow-up and a more effective solution.
Regards,
Nitheeshkumar.
Yes,
last day of the week as friday as usual in stock data.
in xaml,
WorkingDays="Monday,Tuesday,Wednesday,Thursday,Friday"
Hi Macro,
Thank you for your update. We are currently validating
the segment mismatches that occur when the BusinessHours property is
enabled, specifically with the last day of the week as Friday in stock data. We
will investigate this issue at the source level and will provide an update with
our findings within two business days (by September 13, 2024).
Regards,
Nitheeshkumar.
Hi Macro,
After further validation, we need additional time to continue our investigation. It seems the EnableBusinessHours property currently supports continuous series types. We will provide a complete update with our findings by September 16, 2024. Thank you for your patience.
Regards,
Nitheeshkumar.
Hi Marco,
After validating the reported issue, we have considered it as a bug that segment mismatches with DateTimeAxis enableBusinessHours. We have created a bug report for this issue, and you can track its status and progress in the following feedback portal link.
Feedback Link: Segment Mismatches and Incorrect Trackball Values with DateTimeAxis EnableBusinessHours in WPF
We will plan to include this bug fix in weekly NuGet release on October 01st, 2024.
Thank you for your patience and understanding.
Regards,
Nitheeshkumar.
OK thank you.
Hi,
any upgrade?
Hi Macro,
We apologize for the inconvenience caused. Due to pending automation, we were unable to move this fix within the promised timeline. We now plan to include this in our upcoming weekly NuGet release scheduled for October 8, 2024. Thank you for your patience and understanding.
Regards,
Nitheeshkumar.
Hi Macro,
We apologize for the continuous delays. Unfortunately, we were unable to include this fix in the recent weekly NuGet release. However, we have prepared a custom DLL addressing the issue related to candle segment mismatches when enabling the business hours property. The fix is currently in the testing phase.
Please try using the patch with the provided custom DLL and let us know whether it resolves the issue.
Note:
Before installing the patch, kindly remove bin and obj folders from all the projects of solution and clear NuGet cache: How to clear nuget cache
This fix will be included in our upcoming weekly release based on your confirmation. We will notify you once NuGet is released and appreciate your understanding and patience until that time.
Root cause: The segment mismatches occur due to incorrect handling of non-working days at the boundaries (start and end dates,not handling for partial weeks or non-working hours. This causes misalignment in calculating the total non-working hours.
Disclaimer: The inclusion of this solution in the weekly release may change due to other factors, including but not limited to QA checks and work reprioritization.
Regards,
Nitheeshkumar.
Attachment: Syncfusion.SfChart.WPF_14684009.zip
Hi Macro,
The fix for the reported issue of segment mismatches while enabling business hour in DateTimeAxis in SfChart has been included in our latest weekly Nuget release, version 27.1.53 which is available for download ( https://www.nuget.org/).
NuGet Version: 27.1.53
We thank you for your support and appreciate your patience. Please contact us if you require any further assistance.
Regards,
Nitheeshkumar.
Hello, I have installed the latest nuget package but there is still the date problem. When I set businesshour =true, it eats the latest data and the cursor is not synchronized with the date axis.
In the first picture (chart error EnableBusinessHours_False_10-2024) I set businesshour = false and the data is correctly displayed until October.
In the second picture (chart error EnableBusinessHours_True_10-2024) , I set businesshour = true and the data is truncated to April 2024 (6 months ago) and also, the date axis cursor is not synchronized with its labels.
Attachment: chart_error_EnableBusinessHours_102024_3ad75471.zip
Hi Macro,
We apologize for the inconvenience caused. We have tested most of the cases for this fix, but automation is still pending. Based on the image you provided, it seems the issue involves the Trackball or Crosshair not synchronizing values accurately along the DateTime axis in some positions, while working correctly in others, as shown in the attached demo. Could you please confirm if this is the exact issue or if you are experiencing something different?
We will review all potential causes and aim to provide a patch within two business days, by October 21, 2024.
Thank you for your continued patience and understanding.
Regards,
Nitheeshkumar.
Attachment: BusinessHour_3c25b21c.zip
Hi,
there is no rush. take your time.
There is a problem with the track-ball but, I have the impression that, when I set businesshour=true, it cuts off the last data.
Example:
I load 70 days, that is 10 weeks. removing the weekend I have 50 data left, that is 20 less. Of those 50 data, it only shows me 30 (50 -20). It removes those 20 data while it would be enough to hide the weekend from me which are empty days. The data must remain 50.
I repeat, this is the impression I have.
Hi Macro,
Thank you for your understanding. Based on the information provided about enabling BusinessHours additional data has been removed expect weekends, we attempted a similar scenario with 70 data points. After removing the weekend data's, we still observed the expected 50 data points, and did not encounter the issue of extra data being cut off. There might be some specific settings in your scenario that we're missing.
Could you please modify the provided sample to replicate the issue? This will help us give a more effective solution.
Regards,
Nitheeshkumar.
Attachment: BusinessHour_Sample_b038b145.zip
70 is an example number. I load 1600 and more and the problem I described occurs.
in fact, with 70 there seems to be no problem.
Hi Macro,
We apologize for the further delay. The fix has led to additional issues with our automation process, requiring more time for resolution. We are actively working on this and will update you once the issue is fully resolved. Thank you for your continued understanding and patience.
Regards,
Nitheesh.
Hi Marco,
The reported issue has been addressed, but we encountered another breaking issue with the fix. We need additional time to develop a stable solution. Thank you for your understanding and patience.
Best regards,
Arul Jenith B.
ok. but i want a syncfusion team t-shirt!!
^_^
Hi Marco,
Sorry, we don't have SWAGs or rewards program in place. Our team is actively working on the query and will get back with a feasible solution at the earliest.
Regards,
Preethi R
Hi Macro,
We have fixed the trackball mismatch issue that occurs when enabling the business hour functionality and generated a patch for this fix. Regarding the crosshair, we need to confirm the expected behavior based on DateTime axis ranges when EnableBusinessHours is active. With non-working days removed, the scale treats gaps as preceding dates, so values only display at the actual segment positions. Adjusting this scale is complex and requires additional time.
In the meantime, please test our patch to see if it resolves your issue.
|
HTTP Link |
|
|
HTTP Link(Assemblies) |
|
|
HTTP Link(Nuget) |
Note:
Before installing the patch, kindly remove bin and obj folders from all the projects of solution and clear NuGet cache: How to clear nuget cache
Thank you for your patience and understanding.
Regards,
Nitheeshkumar.
HI,
any update on official release?
Hi Macro,
We would inform you that we have implemented a fix for the issue you reported. This fix will be included in our upcoming weekly release, scheduled for February 18th, 2025.
We appreciate your patience and understanding.
Best regards,
Arul Jenith B.
Hi Macro,
The fix for the reported issue of the trackball displays mismatched values for points during non-business hours if the "business hours" property is enabled has been included in our latest weekly NuGet release, version 28.2.6 which is available for download ( https://www.nuget.org/).
NuGet Version: 28.2.6
We thank you for your support and appreciate your patience. Please contact us if you require any further assistance.
Thank you for your understanding and patience.
Best regards,
Arul Jenith B.
- 28 Replies
- 4 Participants
-
MS Marco Salvatori
- Sep 3, 2024 03:17 PM UTC
- Feb 20, 2025 06:13 AM UTC