How to hide the value-numbers shown on the spline-line Chart?
Hi,
Attachment: BlazorForum1_d47eea7d.zip
how can I hide the numbers shown on the line. I know that I can hide the ChartMarker with Visible="false".
How do I do that for the Values shown direcly in the drawn line? I use this Code:
<SfChart Title="My Points">
<ChartPrimaryXAxis ValueType="Syncfusion.Blazor.Charts.ValueType.Category" Title="MyStatus"></ChartPrimaryXAxis>
<ChartPrimaryYAxis Title="Total Data"></ChartPrimaryYAxis>
<ChartLegendSettings Visible="true"></ChartLegendSettings>
<ChartTooltipSettings Enable="false"></ChartTooltipSettings>
<ChartSeriesCollection>
<ChartSeries Type="ChartSeriesType.Spline" DataSource="@LstUserDataIdealPoints"
XName="DateOfEntry" YName="Value" Name="IdealPoints">
<ChartMarker Visible="false" Width="5" Height="5">
<ChartDataLabel Visible="true"> </ChartDataLabel>
</ChartMarker>
</ChartSeries>
</ChartSeriesCollection>
</SfChart>
Attachment: BlazorForum1_d47eea7d.zip
SIGN IN To post a reply.
3 Replies
1 reply marked as answer
SM
Srihari Muthukaruppan
Syncfusion Team
June 8, 2020 05:35 AM UTC
Hi Henning,
We have analyzed your query. From that, we would like to let you know that we can achieve your requirement by setting Visible property in ChartDataLabel tag to false. Based on your requirement we have prepared a sample for your reference. Please find the sample, code snippet, and screenshot.
Code Snippet:
|
<SfChart Title="My Points"> // add your additional code here
<ChartSeriesCollection> <ChartSeries Type="ChartSeriesType.Spline" DataSource="@LstUserDataIdealPoints" XName="DateOfEntry" YName="Value" Name="IdealPoints"> <ChartMarker Visible="false" Width="5" Height="5"> <ChartDataLabel Visible="false"> </ChartDataLabel> </ChartMarker> </ChartSeries> </ChartSeriesCollection> </SfChart> |
Screenshot:
If still, this is not your exact requirement. kindly revert us with more information which will be helpful for further analysis and provide you solution sooner.
Regards,
Srihari M
Marked as answer
HE
Henning
June 8, 2020 07:14 PM UTC
Thx yes everthing working:). I thought that I did try to set it to false, but I guess I thought wrong. Thx again
SM
Srihari Muthukaruppan
Syncfusion Team
June 9, 2020 05:05 AM UTC
Hi Henning,
Most welcome. Kindly get in touch with us, if you would require further assistance. We are always happy in assisting you.
Thanks,
Srihari M
SIGN IN To post a reply.