BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
template
property of the tooltip."
<SfChart >
// add additional code here
<ChartTooltipSettings Enable="true" Format="${point.tooltip}"></ChartTooltipSettings> <ChartSeriesCollection> <ChartSeries DataSource="@ChartData" TooltipMappingName="Country" Name="Users" XName="XValue" YName="YValue" Width="2" Type="ChartSeriesType.Bar"> </ChartSeries> </ChartSeriesCollection> </SfChart>
@code{
public class CategoryData { public string XValue { get; set; } public double YValue { get; set; } public string Country { get; set; } } public List<CategoryData> ChartData = new List<CategoryData> { new CategoryData { XValue = "Germany", YValue = 72, Country = "GER: 72" }, new CategoryData { XValue = "Russia", YValue = 103.1, Country = "RUS: 103.1" }, new CategoryData { XValue = "Brazil", YValue = 139.1, Country = "BRZ: 139.1" }, new CategoryData { XValue = "India", YValue = 462.1, Country = "IND: 462.1" }, new CategoryData { XValue = "China", YValue = 721.4, Country = "CHN: 721.4" }, new CategoryData { XValue = "United States<br>Of America", YValue = 286.9, Country = "USA: 286.9" }, new CategoryData { XValue = "Great Britain", YValue = 115.1, Country = "GBR: 115.1" }, new CategoryData { XValue = "Nigeria", YValue = 97.2, Country = "NGR: 97.2" } }; } |
// add your additional code here
<SfChart>
<ChartEvents TooltipRender="TooltipEvent"></ChartEvents>
<ChartPrimaryXAxis ValueType="Syncfusion.Blazor.Charts.ValueType.DateTime" LabelFormat="dddd HH:mm">
</ChartPrimaryXAxis>
<ChartSeriesCollection>
<ChartSeries DataSource="@Sales" XName="Month" YName="SalesValue" Type="ChartSeriesType.Column">
</ChartSeries>
</ChartSeriesCollection>
<ChartTooltipSettings Enable="true"></ChartTooltipSettings>
</SfChart>
// add your additional code here
|