How may I create the fixed line showing in this example?
Thinking of daily average and today lines in the picture below.
Is is possible to share the code behind the entire "health stat" demo?
Hi Art Vandelay,
We have analyzed your query regarding fixed lines with no data points in the chart. You can render the fixed lines with text using ChartStripline. Additionally, we have also shared the code behind for the health stats demo. You can refer to the code sample through the GitHub repository provided below. We have attached a sample and screenshot for your reference. Please check the following code snippet.
GitHub repository: https://github.com/syncfusion/blazor-showcase-healthtracker
|
<ChartPrimaryYAxis Minimum="0" Maximum="3.5" Interval="0.5"> <ChartStriplines> <ChartStripline DashArray="20,20" SizeType="SizeType.Pixel" Text="2.5 avg. hours" HorizontalAlignment="Anchor.Start" VerticalAlignment="Anchor.End" Start="2.5" Color="#3a69d3"> <ChartStriplineTextStyle Size="15px" Color="#3a69d3" /> </ChartStripline> <ChartStripline DashArray="20,20" SizeType="SizeType.Pixel" Text="1.5 hours" HorizontalAlignment="Anchor.Start" VerticalAlignment="Anchor.End" Start="1.5" Color="brown"> <ChartStriplineTextStyle Size="15px" Color="#3a69d3" /> </ChartStripline> </ChartStriplines> </ChartPrimaryYAxis> |
Sample: https://www.syncfusion.com/downloads/support/directtrac/general/ze/BLA15F~11124328798.zip
Screenshot:
UG for Stripline: https://blazor.syncfusion.com/documentation/chart/strip-line#horizontal-striplines
Kindly revert us if you have any concerns.
Regards,
Gopalakrishnan Veeraraghavan
Thank you, Gopalakrishnan Veeraraghavan,
Most appreciated
Hi Art Vandelay,
Most welcome. Please get back to us if you need any further assistance. We are always happy in assisting you.
Regards,
Gopalakrishnan Veeraraghavan