StockChartStockEvents text positioning

Hi, I'm trying to place some text above and under specific candles in SfStockChart like shwon in this photo.


The only way I could find doing it in Syncfusion.SfStockChart is using StockChartStockEvents. First of all please let me know if there is any other way to achieve this smoother.


using the code:

"

<SfStockChart>

    <StockChartSeriesCollection>

        <StockChartSeries DataSource="@StockDetails" Type="ChartSeriesType.Candle" XName="Date" YName="Close" High="High" Low="Low" Open="Open" Close="Close" Volume="Volume"></StockChartSeries>

    </StockChartSeriesCollection>

    <StockChartStockEvents>

        @foreach (var d in StockDetails)

        {

        <StockChartStockEvent [email protected] Text="txt" Description="desc" Type=FlagType.Text PlaceAt="Open">

            <StockChartStockEventsBorder Color="#f48a21"></StockChartStockEventsBorder>

            <StockChartStockEventsTextStyle Color="#f48a21"></StockChartStockEventsTextStyle>

        </StockChartStockEvent>

        }

    </StockChartStockEvents>

</SfStockChart>

"


This is what I get so far:



The problems I find here are:

  1. It seems the "PlaceAt" attribute is not consistent. No matter what it's set (High, Low, Open), they seem to be shown on Close of the candle. I would like to the text above the high point and below the low point of candle lines.
  2. I cannot show text under the candles. Is there any way to do this?


Thanks in advance for any help.


7 Replies

SB Swetha Babu Syncfusion Team August 1, 2022 10:12 AM UTC

Hi CageE,


Greetings from Syncfusion.


We have considered the reported scenario as a bug and logged a defect report for the same. The fix for the reported scenario will be included in our weekly patch release which is expected to be rolled out on 16th August, 2022. Please find the below feedback link to keep track of the reported scenario.


Feedback link: https://www.syncfusion.com/feedback/36726/stock-chart-text-is-not-positioned-properly


If you have any more specifications/precise replication procedure to be tested, you can post it as a comment in the portal.


Regards,

Swetha



CA CageE August 1, 2022 06:08 PM UTC

Thanks for the reply, 

It's nice to see that the fix will rolled out so quickly. 

Did you have thoughts or solution on the 2nd question I had posted?

Is there a way to position the text below the Low point? I guess even if this bug is fixed, the text will still be positioned above the Low point which will end up on the lower shadow or body of the candle.  



DG Durga Gopalakrishnan Syncfusion Team August 3, 2022 02:47 PM UTC

Hi Cage,


Sorry for the inconvenience. As of now, we don’t have support to place the text below the candle. Please let us know if you have any other concerns.


Regards,

Durga Gopalakrishnan.



SB Swetha Babu Syncfusion Team August 17, 2022 07:05 AM UTC

Hi CageE,


Thank you for your patience.


We have included the fix for the reported issue in our weekly patch release(v20.2.44). You can download the package from the following link.


https://www.nuget.org/packages/Syncfusion.Blazor


Please upgrade the Syncfusion.Blazor package to the latest version to resolve the reported issue. Please get back to us if you need further assistance.


Regards,

Swetha



CA CageE August 17, 2022 10:59 AM UTC

Thank you for the update but I had to choose other solution as you don’t have support to place the text below the candle at the moment, which was important requirement for me. 

Cheers!



SB Swetha Babu Syncfusion Team August 19, 2022 04:45 AM UTC

Hi CageE,


We have considered the reported scenario as an improvement and logged a feature request for the same. This improvement will be included in our Volume 3 SP release which is expected to be rolled out at the mid of October 2022. Please find the below feedback link to keep track of the reported scenario.


Feedback link: https://www.syncfusion.com/feedback/37124/support-to-place-the-text-below-the-candle


If you have any more specification/precise replication procedure to be tested, please add it as a comment in the portal. Please get back to us if you need further assistance.


Regards,

Swetha



SB Swetha Babu Syncfusion Team December 2, 2022 03:33 AM UTC

Hi CageE,


Thank you for your patience.


We have included the fix for the reported scenario in our Volume 3 SP release(v20.3.58). You can download the latest package from the below link.


https://www.nuget.org/packages/Syncfusion.Blazor


You can upgrade the Syncfusion.Blazor package to the latest version to resolve the reported scenario. Please get back to us if you need further assistance.


Loader.
Up arrow icon